-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
111 lines (89 loc) · 3.56 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
apply from: "$rootDir/buildscripts/versions.gradle"
ext.agp_version = depVersions.agp()
ext.kotlin_version = depVersions.kotlin()
ext.kotlin_compiler_ext_version = depVersions.kotlinCompilerExtension()
ext.ksp_version = depVersions.ksp()
ext.compose_version = depVersions.compose()
ext.nav_version = depVersions.navigation()
ext.coil_version = depVersions.coil()
ext.devkit_version = "${versions.devBricksXVersion()}-${depVersions.devKit()}"
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$agp_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
tasks.withType(Exec) {
doFirst {
println commandLine
}
}
apply from: "$rootDir/buildscripts/versions.gradle"
}
ext {
ROOM_VERSION = depVersions.room()
// publish credentials
if (file("private.properties").exists()) {
Properties props = new Properties()
props.load(new FileInputStream(file("private.properties")))
NEXUS_USER = props.getProperty('NEXUS_USER')
NEXUS_PASS = props.getProperty('NEXUS_PASS')
GPG_KEY_ID = props.getProperty('GPG_KEY_ID')
GPG_KEY_PASS = props.getProperty('GPG_KEY_PASS')
GPG_KEY_FILE = props.getProperty('GPG_KEY_FILE')
} else {
NEXUS_USER = System.getenv('NEXUS_USER')
NEXUS_PASS = System.getenv('NEXUS_PASS')
GPG_KEY_ID = System.getenv('GPG_KEY_ID')
GPG_KEY_PASS = System.getenv('GPG_KEY_PASS')
GPG_KEY_FILE = System.getenv('GPG_KEY_FILE')
}
// Unsplash.com API
if (file("sample-gallery-core/apikey.unsplash").exists()) {
Properties props = new Properties()
props.load(new FileInputStream(file("sample-gallery-core/apikey.unsplash")))
UNSPLASH_API_KEY = props.getProperty('API_KEY')
} else {
UNSPLASH_API_KEY = ""
}
// Compile Settings
COMPILE_SDK = 34
TARGET_SDK = 34
MINI_SDK = 21
BUILD_TOOLS = '34.0.0'
VERSION_NAME = versions.devBricksXVersion()
VERSION_CODE = versions.devBricksXVersionCode().toInteger()
// Java Compiler
JAVA_VERSION = JavaVersion.toVersion(depVersions.java().toInteger())
JVM_TARGET = depVersions.java()
JVM_TARGET_INT = depVersions.java().toInteger()
// Publishing Parameters
SITE_URL = 'https://github.com/dailystudio/devbricksx-android'
SCM_URL = 'https://github.com/dailystudio/devbricksx-android.git'
SCM_CONNECTION = 'scm:[email protected]:dailystudio/devbricksx-android.git'
SCM_DEV_CONNECTION = 'scm:[email protected]:dailystudio/devbricksx-android.git'
GROUP_NAME = 'cn.dailystudio'
DESCRIPTION = 'Provide utils classes commonly used in Android application development.'
DEVELOPER_ID = 'dailystudio'
DEVELOPER_NAME = 'dailystudio'
DEVELOPER_EMAIL = '[email protected]'
LICENCE_NAME = 'The Apache Software License, Version 2.0'
LICENCE_URL = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
RELEASE_REPOSITORY_URL = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
versions.dumpVersions()
depVersions.dumpVersions()
}
apply from: './buildscripts/timepertask.gradle'