Skip to content

Commit 150bd75

Browse files
committed
chore: move build.gradle to root
1 parent 0a6c06e commit 150bd75

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

build.gradle

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
plugins {
2+
id 'com.android.library'
3+
}
4+
5+
android {
6+
compileSdk 31
7+
8+
defaultConfig {
9+
minSdk 21
10+
targetSdk 31
11+
12+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
13+
consumerProguardFiles "consumer-rules.pro"
14+
15+
ndkVersion '21.4.7075529'
16+
externalNativeBuild {
17+
cmake {
18+
cppFlags '-std=c++17'
19+
abiFilters 'armeabi-v7a', 'arm64-v8a'
20+
}
21+
}
22+
}
23+
24+
buildTypes {
25+
release {
26+
minifyEnabled false
27+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
28+
}
29+
}
30+
compileOptions {
31+
sourceCompatibility JavaVersion.VERSION_1_8
32+
targetCompatibility JavaVersion.VERSION_1_8
33+
}
34+
externalNativeBuild {
35+
cmake {
36+
path file('../../../CMakeLists.txt')
37+
version '3.18.1'
38+
}
39+
}
40+
41+
splits {
42+
abi {
43+
enable true
44+
45+
reset()
46+
47+
include "armeabi-v7a", "arm64-v8a"
48+
49+
universalApk true
50+
}
51+
}
52+
}
53+
54+
dependencies {
55+
implementation 'androidx.appcompat:appcompat:1.4.0'
56+
implementation 'com.google.android.material:material:1.4.0'
57+
testImplementation 'junit:junit:4.+'
58+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
59+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
60+
}

0 commit comments

Comments
 (0)