-
Notifications
You must be signed in to change notification settings - Fork 284
/
build.gradle
executable file
路42 lines (34 loc) 路 1.34 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
42
apply plugin: 'com.android.application'
def superpowered_sdk_path = new File(projectDir, '../../../Superpowered')
android { // main settings for your application
compileSdkVersion = 34
defaultConfig {
applicationId "com.superpowered.recorder"
minSdkVersion 26
targetSdkVersion 34
versionCode 1
versionName "1.0"
ndk { // these platforms cover 99% 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 "CMakeLists.txt"
}
}
ndkVersion '25.1.8937393'
namespace 'com.superpowered.recorder'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
}