75 lines
2.2 KiB
Groovy
75 lines
2.2 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
compileSdk 32
|
|
|
|
defaultConfig {
|
|
applicationId "com.lveyou.dltest"
|
|
minSdk 25
|
|
targetSdk 32
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
externalNativeBuild {
|
|
cmake {
|
|
// Passes optional arguments to CMake.
|
|
arguments "-DANDROID_ARM_NEON=TRUE -DANDROID_TOOLCHAIN=clang -DANDROID_STL=c++_shared"
|
|
|
|
// Sets a flag to enable format macro constants for the C compiler.
|
|
cFlags "-D__STDC_FORMAT_MACROS"
|
|
|
|
// Sets optional flags for the C++ compiler.
|
|
cppFlags "-std=c++2a -stdlib=libc++ -fexceptions -frtti"
|
|
|
|
// Specifies the library and executable targets from your CMake project
|
|
// that Gradle should build.
|
|
targets "dltest"
|
|
}
|
|
}
|
|
ndk {
|
|
abiFilters = []
|
|
abiFilters.addAll(PROP_APP_ABI.split(':').collect{it as String})
|
|
}
|
|
}
|
|
sourceSets.main {
|
|
//java.srcDir "src"
|
|
//res.srcDir "res"
|
|
//manifest.srcFile "AndroidManifest.xml"
|
|
//assets.srcDir "../../Resources"
|
|
assets.srcDir ASSETS_DIR
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
path file('../../../CMakeLists.txt')
|
|
version '3.22.1'
|
|
}
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
buildToolsVersion '30.0.2'
|
|
ndkVersion '25.2.9519653'
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
implementation 'com.google.android.material:material:1.4.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
} |