91 lines
3.5 KiB
Groovy
91 lines
3.5 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'androidx.navigation.safeargs' // To generate Java code for nav_graph
|
|
|
|
android {
|
|
signingConfigs {
|
|
config {
|
|
storeFile file('C:\\Users\\Aneta\\Desktop\\FaceBlit\\keystores\\upload-keystore.jks')
|
|
storePassword 'faceblit'
|
|
keyAlias 'upload'
|
|
keyPassword 'faceblit'
|
|
}
|
|
}
|
|
compileSdkVersion 29
|
|
defaultConfig {
|
|
applicationId "texler.faceblit"
|
|
minSdkVersion 28
|
|
targetSdkVersion 29
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
externalNativeBuild {
|
|
cmake {
|
|
cppFlags "-frtti -fexceptions -std=c++11"
|
|
arguments "-DANDROID_STL=c++_shared" // It is needed if OpenCV4 is built with libc++_shared.so, try to build OpenCV4 with this library
|
|
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
|
|
}
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.config
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
path "CMakeLists.txt"
|
|
}
|
|
}
|
|
packagingOptions {
|
|
pickFirst '**/*.so' // To suppress error: More than one file was found with OS independent path 'lib/x86_64/libopencv_java4.so'
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
|
|
// Navigation library
|
|
def nav_version = "2.3.2"
|
|
implementation "androidx.navigation:navigation-fragment:$nav_version"
|
|
implementation "androidx.navigation:navigation-ui:$nav_version"
|
|
implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
|
|
|
|
// CameraX core library using the camera2 implementation
|
|
def camerax_version = "1.0.0-rc01"
|
|
// The following line is optional, as the core library is included indirectly by camera-camera2
|
|
implementation "androidx.camera:camera-core:$camerax_version"
|
|
implementation "androidx.camera:camera-camera2:$camerax_version"
|
|
// If you want to additionally use the CameraX Lifecycle library
|
|
implementation "androidx.camera:camera-lifecycle:$camerax_version"
|
|
// If you want to additionally use the CameraX View class
|
|
implementation "androidx.camera:camera-view:1.0.0-alpha20"
|
|
// If you want to additionally use the CameraX Extensions library
|
|
implementation "androidx.camera:camera-extensions:1.0.0-alpha20"
|
|
|
|
// Glide
|
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
|
|
|
|
// Recycler View
|
|
implementation "androidx.recyclerview:recyclerview:1.1.0"
|
|
implementation "androidx.recyclerview:recyclerview-selection:1.1.0-rc03" // For control over item selection of both touch and mouse driven selection
|
|
|
|
// Card View
|
|
implementation "androidx.cardview:cardview:1.0.0"
|
|
|
|
|
|
}
|