48 lines
1.1 KiB
Groovy
48 lines
1.1 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
}
|
|
|
|
android {
|
|
ndkPath "C:/Program Files/Unity/Hub/Editor/2022.3.4f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK"
|
|
|
|
compileSdkVersion 32
|
|
buildToolsVersion '32.0.0'
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdkVersion 22
|
|
targetSdkVersion 32
|
|
ndk {
|
|
abiFilters 'armeabi-v7a', 'arm64-v8a'
|
|
}
|
|
versionCode 1
|
|
versionName '0.1'
|
|
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'
|
|
}
|
|
}
|
|
|
|
|
|
|