Skip to content

Commit

Permalink
chore: move build.gradle to root
Browse files Browse the repository at this point in the history
  • Loading branch information
lambiengcode committed May 28, 2024
1 parent 0a6c06e commit 150bd75
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
plugins {
id 'com.android.library'
}

android {
compileSdk 31

defaultConfig {
minSdk 21
targetSdk 31

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"

ndkVersion '21.4.7075529'
externalNativeBuild {
cmake {
cppFlags '-std=c++17'
abiFilters 'armeabi-v7a', '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
}
externalNativeBuild {
cmake {
path file('../../../CMakeLists.txt')
version '3.18.1'
}
}

splits {
abi {
enable true

reset()

include "armeabi-v7a", "arm64-v8a"

universalApk true
}
}
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

0 comments on commit 150bd75

Please sign in to comment.