forked from Automattic/pocket-casts-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (84 loc) · 3.13 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
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-parcelize'
id 'io.sentry.android.gradle'
id 'com.mikepenz.aboutlibraries.plugin'
}
apply from: "../base.gradle"
android {
namespace 'au.com.shiftyjelly.pocketcasts'
defaultConfig {
applicationId project.applicationId
minSdkVersion 28
}
buildFeatures {
viewBinding true
compose true
}
buildTypes {
debug {
applicationIdSuffix '.debug'
manifestPlaceholders = [
sentryDsn: ""
]
}
debugProd {
initWith debug
debuggable true
}
release {
manifestPlaceholders = [
gitHash: "",
sentryDsn: project.pocketcastsSentryDsn
]
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Commented out the Automotive library as it clashes with the Material library and we don't use it. Duplicate value for resource attr/navigationIconTint.
//implementation 'androidx.car:car:1.0.0-alpha7'
implementation androidLibs.appCompat
implementation androidLibs.ktx
implementation androidLibs.design
implementation androidLibs.constraintLayout
implementation libs.aboutLibrariesCore
implementation libs.aboutLibrariesCompose
testImplementation libs.junit
androidTestImplementation androidLibs.junitExt
androidTestImplementation androidLibs.testEspressoCore
implementation project(':modules:services:localization')
implementation project(':modules:services:preferences')
implementation project(':modules:services:utils')
implementation project(':modules:services:model')
implementation project(':modules:services:ui')
implementation project(':modules:services:views')
implementation project(':modules:services:compose')
implementation project(':modules:services:repositories')
implementation project(':modules:services:servers')
implementation project(':modules:services:analytics')
implementation project(':modules:features:profile')
implementation project(':modules:features:podcasts')
implementation project(':modules:features:settings')
implementation project(':modules:features:discover')
implementation project(':modules:features:account')
}
apply plugin: 'com.google.gms.google-services'
task useGoogleServicesDebugFile {
description 'Copies the debug google-services.json file if file is missing.'
doLast {
def googleServicesFile = "google-services.json"
if (!file("${project.projectDir}/$googleServicesFile").exists()) {
def debugOnlyFile = "google-services.json_debug-only"
println "$googleServicesFile file is missing. Copying $debugOnlyFile"
copy {
from "${project.projectDir}/$debugOnlyFile"
into project.projectDir
rename { googleServicesFile }
}
}
}
}
preBuild.dependsOn(useGoogleServicesDebugFile)