/
build.gradle
98 lines (86 loc) · 3.5 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
/*
* Copyright 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
resourcePrefix 'legacy_'
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
minSdkVersion 19
//noinspection ExpiredTargetSdkVersion
targetSdkVersion 25
versionName '1.0.0'
versionCode 1
def legacyAuthorityValue = "com.google.android.apps.muzei.legacy"
manifestPlaceholders = [legacyAuthority: legacyAuthorityValue]
buildConfigField "String", "LEGACY_AUTHORITY", "\"${legacyAuthorityValue}\""
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation":
"$projectDir/schemas".toString()]
}
}
}
signingConfigs {
release {
Properties localProps = new Properties()
localProps.load(new FileInputStream(file('../local.properties')))
Properties keyProps = new Properties()
if (localProps['keystore.props.file'] != null) {
keyProps.load(new FileInputStream(file(localProps['keystore.props.file'])))
}
storeFile keyProps["store"] != null ? file(keyProps["store"]) : null
keyAlias keyProps["alias"] ?: ""
storePassword keyProps["storePass"] ?: ""
keyPassword keyProps["pass"] ?: ""
}
}
buildTypes {
debug {
versionNameSuffix " Debug"
}
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), file('proguard-project.txt')
signingConfig signingConfigs.release
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
implementation "androidx.core:core-ktx:$coreVersion"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
implementation "androidx.room:room-ktx:$roomVersion"
kapt "androidx.room:room-compiler:$roomVersion"
implementation "com.google.android.material:material:$materialVersion"
implementation("com.google.firebase:firebase-core:$firebaseCoreVersion") {
exclude module: 'support-v4'
}
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
implementation project(':muzei-api')
implementation project(':extensions')
implementation project(':legacy-common')
}