51 lines
1.1 KiB
Groovy
51 lines
1.1 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
}
|
|
|
|
android {
|
|
namespace "com.unity3d.player"
|
|
ndkPath "D:/Unity/2022.3.62f3/Editor/Data/PlaybackEngines/AndroidPlayer/NDK"
|
|
compileSdkVersion 36
|
|
buildToolsVersion '34.0.0'
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdkVersion 22
|
|
targetSdkVersion 36
|
|
ndk {
|
|
abiFilters 'armeabi-v7a', 'arm64-v8a'
|
|
}
|
|
versionCode 1
|
|
versionName '1.0'
|
|
consumerProguardFiles 'proguard-unity.txt'
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
aaptOptions {
|
|
noCompress = ['.unity3d', '.ress', '.resource', '.obb', '.bundle', '.unityexp'] + unityStreamingAssets.tokenize(', ')
|
|
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
|
|
}
|
|
|
|
packagingOptions {
|
|
doNotStrip '*/armeabi-v7a/*.so'
|
|
doNotStrip '*/arm64-v8a/*.so'
|
|
jniLibs {
|
|
useLegacyPackaging true
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|