11apply plugin : ' com.android.library'
2- apply plugin : ' maven'
32apply plugin : ' maven-publish'
4- apply plugin : ' com.github.dcendents.android-maven'
53group= ' com.github.antvis'
64
75android {
86
9- compileSdkVersion rootProject.extensions.sdks.CompileSDK
10- buildToolsVersion rootProject.extensions.sdks.BuildTool
7+ compileSdk rootProject.extensions.sdks.CompileSDK
8+ ndkVersion rootProject. extensions. sdks. ndkVersion
119
1210 defaultConfig {
11+ namespace " com.antgroup.antv.f2"
1312 minSdkVersion rootProject.extensions.sdks.MinSDK
1413 targetSdkVersion rootProject.extensions.sdks.TargetSDK
1514 versionCode 1
1615 versionName " 1.0"
17-
18- testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
16+ multiDexEnabled false
1917
2018 externalNativeBuild {
2119 cmake {
22- cppFlags " -DTARGET_ALIPAY "
23- cFlags " -ffunction-sections -fdata-sections "
24- arguments " -DANDROID_STL=c++_shared " , ' -DTARGET_ALIPAY=1 '
20+ cppFlags rootProject . extensions . externalNativeCmake . cppFlags
21+ arguments = []
22+ arguments. addAll(rootProject . extensions . externalNativeCmake . arguments)
2523 }
2624 }
2725 ndk {
@@ -30,22 +28,40 @@ android {
3028 }
3129 }
3230
31+ lintOptions {
32+ checkReleaseBuilds false
33+ abortOnError false
34+ }
35+
3336 buildTypes {
3437 release {
3538 minifyEnabled false
3639 }
3740 }
3841
42+ compileOptions {
43+ targetCompatibility rootProject. extensions. compileOptions. targetCompatibility
44+ sourceCompatibility rootProject. extensions. compileOptions. sourceCompatibility
45+ }
46+
3947 externalNativeBuild {
4048 cmake {
4149 path " ../../CMakeLists.txt"
4250 }
4351 }
52+
53+ packagingOptions {
54+ exclude ' **/libc++_shared.so'
55+ exclude ' **/**/libc++_shared.so'
56+ }
57+
58+ sourceSets {
59+ main. manifest. srcFile ' src/main/AndroidManifest.xml'
60+ main. java. srcDirs = [' src/main/java' ]
61+ main. res. srcDirs = [' src/main/res' ]
62+ }
4463}
4564
4665dependencies {
47- implementation fileTree(dir : ' libs' , include : [' *.jar' ])
48- testImplementation ' junit:junit:4.+'
49- androidTestImplementation ' androidx.test.ext:junit:1.1.3'
50- androidTestImplementation ' androidx.test.espresso:espresso-core:3.2.0'
51- }
66+ compileOnly rootProject. extensions. dependencies. fastjson
67+ }
0 commit comments