blob: eccbd5e3e70b6b3952bd5d1ff48ecdd18337753b (
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
|
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "jp.rhe.smileessence4"
minSdkVersion 21
targetSdkVersion 28
versionName "git -C $rootDir describe --tags --long --dirty --always".execute().text.trim()
versionCode "git -C $rootDir rev-list HEAD --count".execute().text.trim().toInteger()
println "-----------VERSION----------"
println "- CODE: " + getVersionCode()
println "- NAME: " + getVersionName()
println "----------------------------"
}
signingConfigs {
def keystorePropertiesFile = project.file('keystore.properties')
if (keystorePropertiesFile.exists()) {
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
release {
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
}
}
}
buildTypes {
debug {
applicationIdSuffix ".debug"
}
release {
applicationIdSuffix ".release"
if (signingConfigs.contains(release)) {
signingConfig signingConfigs.release
}
}
}
androidExtensions {
experimental = true
}
}
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.1'
implementation 'androidx.legacy:legacy-support-core-ui:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.palette:palette:1.0.0'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
// Glide
implementation 'com.github.bumptech.glide:glide:4.9.0'
// SwipyRefreshLayout
implementation 'com.github.omadahealth:swipy:1.2.3@aar'
// RecyclerView-FastScroll; the default FastScroller in support v26 becomes too small to use
implementation 'com.simplecityapps:recyclerview-fastscroll:2.0.0'
// twitter4j
implementation 'org.twitter4j:twitter4j-core:4.0.7'
implementation 'org.twitter4j:twitter4j-stream:4.0.7'
// Klaxon
implementation 'com.beust:klaxon:5.0.5'
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
// LeakCanary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
}
apply plugin: 'com.cookpad.android.licensetools'
preBuild.dependsOn generateLicensePage
|