1+ // This file was added to implicitly specify the gradle version.
2+ // Unity fails to build the project using the default gradle version,
3+ // as it's unable to recognize the attribute "<queries>" in AndroidManifest added to support Android 11.
4+ // Read more here: https://developers.google.com/ar/develop/unity/android-11-build
5+ // Impacting commit: https://github.com/microsoft/appcenter-sdk-android/commit/67855dd9255e74fa75e5751226870a7466343619
6+
7+ buildscript {
8+ repositories {** ARTIFACTORYREPOSITORY **
9+ mavenCentral()
10+ google()
11+ jcenter()
12+ }
13+
14+ dependencies {
15+ classpath ' com.android.tools.build:gradle:3.4.3'
16+ ** BUILD_SCRIPT_DEPS ** }
17+ }
18+
19+ allprojects {
20+ repositories {** ARTIFACTORYREPOSITORY **
21+ mavenCentral()
22+ google()
23+ jcenter()
24+ flatDir {
25+ dirs ' libs'
26+ }
27+ }
28+ }
29+
30+ apply plugin : ' com.android.application'
31+ ** APPLY_PLUGINS **
32+
33+ dependencies {
34+ implementation fileTree(dir : ' libs' , include : [' *.jar' ])
35+ ** DEPS ** }
36+
37+ android {
38+ compileSdkVersion ** APIVERSION **
39+ buildToolsVersion ' **BUILDTOOLS**'
40+
41+ compileOptions {
42+ sourceCompatibility JavaVersion . VERSION_1_8
43+ targetCompatibility JavaVersion . VERSION_1_8
44+ }
45+
46+ defaultConfig {
47+ minSdkVersion ** MINSDKVERSION **
48+ targetSdkVersion ** TARGETSDKVERSION **
49+ applicationId ' **APPLICATIONID**'
50+ ndk {
51+ abiFilters ** ABIFILTERS **
52+ }
53+ versionCode ** VERSIONCODE **
54+ versionName ' **VERSIONNAME**'
55+ }
56+
57+ lintOptions {
58+ abortOnError false
59+ }
60+
61+ aaptOptions {
62+ noCompress = [' .unity3d' , ' .ress' , ' .resource' , ' .obb' ** STREAMING_ASSETS ** ]
63+ }** SIGN **
64+
65+ buildTypes {
66+ debug {
67+ minifyEnabled ** MINIFY_DEBUG **
68+ useProguard ** PROGUARD_DEBUG **
69+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-unity.txt' ** USER_PROGUARD **
70+ jniDebuggable true
71+ }
72+ release {
73+ minifyEnabled ** MINIFY_RELEASE **
74+ useProguard ** PROGUARD_RELEASE **
75+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-unity.txt' ** USER_PROGUARD **** SIGNCONFIG **
76+ }
77+ }** PACKAGING_OPTIONS **** SPLITS **
78+ ** BUILT_APK_LOCATION **
79+ bundle {
80+ language {
81+ enableSplit = false
82+ }
83+ density {
84+ enableSplit = false
85+ }
86+ abi {
87+ enableSplit = true
88+ }
89+ }
90+ }** SPLITS_VERSION_CODE **** REPOSITORIES **** SOURCE_BUILD_SETUP **
0 commit comments