Hi, recently I migrated from deprecated Unity Analytics to brand new Game Services Analytics.
I noticed this upgrade added 5Mb to my release Android build, which is quite a lot for the Analytics.
After migrating my manifest.json gets1 new item:
“com.unity.services.analytics”: “4.1.0”,
And manifet-lock.json get several new items:
“com.unity.nuget.newtonsoft-json”: {
“version”: “3.0.2”,
“depth”: 2,
“source”: “registry”,
“dependencies”: {},
“url”: “https://packages.unity.com”
},
“com.unity.services.analytics”: {
“version”: “4.1.0”,
“depth”: 0,
“source”: “registry”,
“dependencies”: {
“com.unity.ugui”: “1.0.0”,
“com.unity.services.core”: “1.4.0”
},
“url”: “https://packages.unity.com”
},
“com.unity.services.core”: {
“version”: “1.4.0”,
“depth”: 1,
“source”: “registry”,
“dependencies”: {
“com.unity.modules.unitywebrequest”: “1.0.0”,
“com.unity.nuget.newtonsoft-json”: “3.0.2”,
“com.unity.modules.androidjni”: “1.0.0”
},
“url”: “https://packages.unity.com”
},
When I compared Build Reports from both builds (old and new), I found the difference in next types of items:
Scripts 2.5 mb / 3.4 mb
Included DLLs 9.5 mb / 13.4 mb
Total User Assets 23.0 mb / 27.9 mb
Complete build size 144.4 mb / 171.6 mb
I use Unity 2020.3.38f1with Managed Stripping Level: High
Any thoughts, how to reduce this size?