You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PlumberUltimateAds/Assets/Plugins/Android/mainTemplate.gradle

87 lines
2.9 KiB
Groovy

apply plugin: 'com.android.library'
**APPLY_PLUGINS**
ext {
compileSdk = 35
targetSdk = 35
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' // GoogleMobileAds
implementation 'com.google.android.gms:play-services-ads:23.2.0' // AdMob
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' // IronSource
implementation 'com.google.android.gms:play-services-auth:20.7.0' // Updated from old version
implementation 'com.google.android.gms:play-services-base:18.2.0' // Updated to match SignIn
implementation 'com.google.android.gms:play-services-basement:18.1.0'
implementation 'com.google.android.ump:user-messaging-platform:2.2.0'
// Firebase - use only ONE version per package
implementation 'com.google.firebase:firebase-analytics:22.4.0'
implementation 'com.google.firebase:firebase-app-unity:12.8.0'
implementation 'com.google.firebase:firebase-common:21.0.0'
implementation 'com.google.firebase:firebase-iid:21.1.0'
implementation 'com.google.firebase:firebase-messaging:24.1.1'
implementation 'com.google.firebase:firebase-messaging-unity:12.8.0'
implementation 'com.google.flatbuffers:flatbuffers-java:1.12.0'
// IronSource
implementation 'com.ironsource.sdk:mediationsdk:7.3.1.1'
// Core desugaring (to fix dexing errors)
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
// Android Resolver Dependencies End
**DEPS**
}
// Android Resolver Exclusions Start
android {
packagingOptions {
exclude ('/lib/armeabi/*' + '*')
exclude ('/lib/mips/*' + '*')
exclude ('/lib/mips64/*' + '*')
exclude ('/lib/x86/*' + '*')
exclude ('/lib/x86_64/*' + '*')
}
}
// Android Resolver Exclusions End
android {
namespace "com.unity3d.player"
ndkPath "**NDKPATH**"
compileSdkVersion rootProject.ext.has("compileSdk") ? rootProject.ext.compileSdk : **APIVERSION**
buildToolsVersion '**BUILDTOOLS**'
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
defaultConfig {
minSdkVersion **MINSDKVERSION**
targetSdkVersion rootProject.ext.has("targetSdk") ? rootProject.ext.targetSdk : 35
ndk {
abiFilters **ABIFILTERS**
}
versionCode **VERSIONCODE**
versionName '**VERSIONNAME**'
consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
}
lintOptions {
abortOnError false
}
aaptOptions {
noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
}**PACKAGING_OPTIONS**
}
**IL_CPP_BUILD_SETUP**
**SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**