apply plugin: 'com.android.library' apply from: '../shared/keepUnitySymbols.gradle' dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation(name: 'NativeGallery', ext:'aar') implementation(name: 'install-debug', ext:'aar') 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 { namespace "com.unity3d.player" ndkPath "D:/Unity/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 'none' } versionCode 28 versionName '1.0.9' 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 }