apply plugin: 'com.android.library' apply from: '../shared/keepUnitySymbols.gradle' dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) // Android Resolver Dependencies Start implementation 'com.google.android.gms:play-services-ads:22.6.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7 implementation 'com.google.android.ump:user-messaging-platform:2.1.0' // Assets/GoogleMobileAds/Editor/GoogleUmpDependencies.xml:7 // Android Resolver Dependencies End implementation(name: 'googlemobileads-unity', ext:'aar') implementation project(':unityLibrary:GoogleMobileAdsPlugin.androidlib') implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.core:core:1.9.0' implementation 'androidx.games:games-activity:3.0.3' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.games:games-frame-pacing:1.10.0' } // Android Resolver Exclusions Start android { packaging { 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 "D:/6000.0.9f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" ndkVersion "23.1.7779620" compileSdk 34 buildToolsVersion = "34.0.0" compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } defaultConfig { minSdk 23 targetSdk 34 ndk { abiFilters 'armeabi-v7a', 'arm64-v8a' debugSymbolLevel 'full' } versionCode 2 versionName '1.0' consumerProguardFiles 'proguard-unity.txt' externalNativeBuild { cmake { arguments "-DANDROID_STL=c++_shared" } } } lint { abortOnError false } androidResources { noCompress = ['.unity3d', '.ress', '.resource', '.obb', '.bundle', '.unityexp'] + unityStreamingAssets.tokenize(', ') ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~" } packaging { jniLibs { useLegacyPackaging true } } } android.externalNativeBuild { cmake { version "3.22.1" // Workaround for CMake long path issue on Windows, place CMake intermediate files next to Unity project buildStagingDirectory "${unityProjectPath}/.utmp" path "src/main/cpp/CMakeLists.txt" } } android.buildFeatures { prefab true } apply from: 'GoogleMobileAdsPlugin.androidlib\\packaging_options.gradle'