blob: 00005685e316c6aca4f41b37f43a9b905b6557dd (
plain)
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
|
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
def privateProperties = new Properties()
def conf = project.file("private.properties")
if (conf.exists()) privateProperties.load(conf.newDataInputStream())
if (privateProperties['fabric.key'] != null || System.getenv("FABRIC_KEY") != null) {
apply plugin: 'io.fabric'
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "moe.yuuta.workmode"
minSdkVersion 28
targetSdkVersion 28
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
// Fabric
def fabricKey = privateProperties['fabric.key']
if (fabricKey == null) fabricKey = System.getenv("FABRIC_KEY")
if (fabricKey == null) fabricKey = "disabled"
buildConfigField "String", "FABRIC_KEY", "\"" + fabricKey + "\""
manifestPlaceholders.fabricKey = fabricKey
// Google Play Licensing
def googlePlayLicensingKey = privateProperties['google.play.licensing.key']
if (googlePlayLicensingKey == null) googlePlayLicensingKey = System.getenv("GOOGLE_PLAY_LICENSING_KEY")
if (googlePlayLicensingKey == null) googlePlayLicensingKey = "disabled"
buildConfigField "String", "GOOGLE_PLAY_LICENSING_KEY", "\"" + googlePlayLicensingKey + "\""
}
signingConfigs {
general {
def locate = privateProperties['key.locate']
def keystorePwd = privateProperties['key.store.pwd']
def alias = privateProperties['key.alias']
def pwd = privateProperties['key.pwd']
storeFile file(locate != null ? locate : project.rootProject.file(".yuuta.jks"))
storePassword keystorePwd != null ?
keystorePwd : System.getenv("KEYSTORE_PASS")
keyAlias alias != null ?
alias : System.getenv("ALIAS_NAME")
keyPassword pwd != null ?
pwd : System.getenv("ALIAS_PASS")
v2SigningEnabled true
}
}
buildTypes {
debug {
signingConfig signingConfigs.general
}
release {
signingConfig signingConfigs.general
minifyEnabled true
proguardFiles 'proguard-android-optimize.txt', 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
kapt {
generateStubs = true
}
sourceSets {
main {
java.srcDirs += 'src/main/kotlin'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.core:core-ktx:1.0.1'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation 'eu.chainfire:librootjava:1.2.0'
implementation 'com.elvishew:xlog:1.6.1'
implementation 'eu.chainfire:libsuperuser:1.0.0.201811281328'
implementation 'com.google.android.material:material:1.1.0-alpha03'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.google.android.gms:play-services-oss-licenses:16.0.2'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.8'
def lifecycle_version = "2.0.0"
implementation "androidx.lifecycle:lifecycle-runtime:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
}
|