-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
58 lines (50 loc) · 1.62 KB
/
build.gradle.kts
File metadata and controls
58 lines (50 loc) · 1.62 KB
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
import info.git.versionHelper.getGitCommitCount
import info.git.versionHelper.getGitOriginRemote
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
id("com.android.application")
}
android {
namespace = "info.hannes.github.sample"
compileSdk = 36
defaultConfig {
versionCode = getGitCommitCount()
versionName = "1.0"
minSdk = 23
buildConfigField("String", "GIT_REPOSITORY", "\"" + getGitOriginRemote() + "\"")
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments.putAll(
mapOf(
"useTestStorageService" to "true",
),
)
}
packaging {
resources {
pickFirsts += setOf("META-INF/atomicfu.kotlin_module")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
}
}
buildFeatures {
viewBinding = true
buildConfig = true
}
}
dependencies {
implementation(project(":githubAppUpdate"))
implementation("androidx.legacy:legacy-support-v4:1.0.0")
implementation("androidx.appcompat:appcompat:1.7.1")
implementation("com.google.android.material:material:1.13.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.3.20")
androidTestImplementation("androidx.test.ext:junit-ktx:1.2.1")
androidTestUtil("androidx.test.services:test-services:1.6.0")
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
}