-
Notifications
You must be signed in to change notification settings - Fork 284
/
build.gradle
executable file
路43 lines (33 loc) 路 1.25 KB
/
build.gradle
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
apply plugin: 'com.android.application'
def superpowered_sdk_path = new File(projectDir, '../../../Superpowered')
android { // main settings for your application
compileSdkVersion = 33
defaultConfig {
applicationId "com.superpowered.simpleusb"
minSdkVersion 26
targetSdkVersion 33
versionCode 1
versionName "1.0"
ndk { // these platforms cover 99.9% percent of all Android devices
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
externalNativeBuild {
cmake {
arguments '-DANDROID_PLATFORM=android-26', '-DANDROID_TOOLCHAIN=clang', '-DANDROID_ARM_NEON=TRUE', '-DANDROID_STL=c++_static', "-DPATH_TO_SUPERPOWERED:STRING=${superpowered_sdk_path}"
cFlags '-O3', '-fsigned-char' // full optimization, char data type is signed
cppFlags '-fsigned-char', "-I${superpowered_sdk_path}"
}
}
}
externalNativeBuild {
cmake {
path 'src/main/jni/CMakeLists.txt'
}
}
ndkVersion '25.1.8937393'
namespace 'com.superpowered.simpleusb'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.6.1'
}