lzw
2024-11-04 dd257d5d6ab766917c1fea03cf109b07797169c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
plugins {
    id 'com.android.application'
}
 
android {
    compileSdkVersion 33
    defaultConfig {
        applicationId "com.yw.sdkdemo"
        minSdkVersion 21
        targetSdkVersion 33
        versionCode 1
        versionName "1.0"
 
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
 
        externalNativeBuild {
            cmake {
                // arguments "-DCMAKE_VERBOSE_MAKEFILE=1"
                cppFlags "-frtti -fexceptions -std=c++11"
                arguments '-DANDROID_STL=c++_shared'
            }
        }
 
        ndk {
            abiFilters "armeabi-v7a"
            ldLibs "log", "z", "m"
            //, " "arm64-v8a"
        }
    }
 
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
 
    sourceSets {
        main {
            jniLibs.srcDirs = ['jniLibs']
        }
    }
 
    packagingOptions {
        exclude 'lib/armeabi-v7a/libc++_shared.so'
    }
}
 
dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar","*.aar"])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
//    implementation project(path: ':sdk')
//    implementation project(path: ':libCamera')
//    implementation project(path: ':libIMU')
}