-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (50 loc) · 1.68 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
ext.getVersionCode = { base ->
try {
providers.exec {
commandLine 'git', 'rev-list', '--count', base + '..HEAD'
}.standardOutput.asText.get().toInteger()
} catch(ignored) {
10
}
}
android {
namespace 'pro.archiemeng.waifu2x'
compileSdkVersion 34
ndkVersion '25.1.8937393'
defaultConfig {
applicationId "pro.archiemeng.waifu2x"
archivesBaseName = "$applicationId"
ndk {
moduleName "ncnn"
abiFilters "armeabi-v7a", "arm64-v8a", "x86_64"
}
// Change here to choose the type of ncnn integration
externalNativeBuild {
cmake {
arguments "-DUSE_PREBUILT_NCNN=OFF", "-DUSE_SHARED_NCNN=OFF", "-DNCNN_VULKAN=ON"
}
}
// calculate commits number from initial commit
versionCode project.getVersionCode('665576c24caee5bca1bf4d8149223dccacbdd979')
// calculate commits number from version 1.1 commit
versionName '0.0.' + project.getVersionCode('665576c24caee5bca1bf4d8149223dccacbdd979')
minSdkVersion 24
}
externalNativeBuild {
cmake {
path file('src/main/jni/CMakeLists.txt')
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9"
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
}