Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
circles-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Circles
circles-android
Commits
1ad41a63
Commit
1ad41a63
authored
2 years ago
by
Taras
Browse files
Options
Downloads
Patches
Plain Diff
Add playServiceEnabled to gradle
parent
81ffd0d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/build.gradle
+11
-12
11 additions, 12 deletions
app/build.gradle
with
11 additions
and
12 deletions
app/build.gradle
+
11
−
12
View file @
1ad41a63
...
@@ -2,13 +2,8 @@ apply plugin: 'com.android.application'
...
@@ -2,13 +2,8 @@ apply plugin: 'com.android.application'
apply
plugin:
'org.jetbrains.kotlin.android'
apply
plugin:
'org.jetbrains.kotlin.android'
apply
plugin:
'androidx.navigation.safeargs.kotlin'
apply
plugin:
'androidx.navigation.safeargs.kotlin'
apply
plugin:
'kotlin-kapt'
apply
plugin:
'kotlin-kapt'
apply
plugin:
'com.google.gms.google-services'
android
.
applicationVariants
.
all
{
variant
->
def
playServiceEnabled
if
(
variant
.
name
.
contains
(
'fdroid'
))
{
project
.
tasks
.
matching
{
it
.
name
.
contains
(
"GoogleServices"
)
}*.
enabled
=
false
}
}
apply
plugin:
'com.google.firebase.crashlytics'
android
{
android
{
compileSdk
rootProject
.
ext
.
sdkVersion
compileSdk
rootProject
.
ext
.
sdkVersion
...
@@ -54,13 +49,12 @@ android {
...
@@ -54,13 +49,12 @@ android {
gplay
{
gplay
{
dimension
flavor_dimension_name
dimension
flavor_dimension_name
buildConfigField
(
"boolean"
,
"IS_SUBSCRIPTIONS_ENABLED"
,
"true"
)
buildConfigField
(
"boolean"
,
"IS_SUBSCRIPTIONS_ENABLED"
,
"true"
)
playServiceEnabled
=
true
}
}
fdroid
{
fdroid
{
dimension
flavor_dimension_name
dimension
flavor_dimension_name
buildConfigField
(
"boolean"
,
"IS_SUBSCRIPTIONS_ENABLED"
,
"false"
)
buildConfigField
(
"boolean"
,
"IS_SUBSCRIPTIONS_ENABLED"
,
"false"
)
firebaseCrashlytics
{
playServiceEnabled
=
false
mappingFileUploadEnabled
false
}
}
}
}
}
...
@@ -123,8 +117,8 @@ dependencies {
...
@@ -123,8 +117,8 @@ dependencies {
implementation
'com.google.android.exoplayer:exoplayer:2.18.1'
implementation
'com.google.android.exoplayer:exoplayer:2.18.1'
//Firebase crash reports
//Firebase crash reports
gplayImplementation
'com.google.firebase:firebase-crashlytics-ktx:18.2.1
2
'
gplayImplementation
'com.google.firebase:firebase-crashlytics-ktx:18.2.1
3
'
gplayImplementation
'com.google.firebase:firebase-analytics-ktx:21.1.
0
'
gplayImplementation
'com.google.firebase:firebase-analytics-ktx:21.1.
1
'
//Subscriptions
//Subscriptions
gplayImplementation
'com.android.billingclient:billing-ktx:5.0.0'
gplayImplementation
'com.android.billingclient:billing-ktx:5.0.0'
...
@@ -136,4 +130,9 @@ dependencies {
...
@@ -136,4 +130,9 @@ dependencies {
testImplementation
'junit:junit:4.13.2'
testImplementation
'junit:junit:4.13.2'
androidTestImplementation
'androidx.test.ext:junit:1.1.3'
androidTestImplementation
'androidx.test.ext:junit:1.1.3'
androidTestImplementation
'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation
'androidx.test.espresso:espresso-core:3.4.0'
}
if
(
playServiceEnabled
)
{
apply
plugin:
'com.google.gms.google-services'
apply
plugin:
'com.google.firebase.crashlytics'
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment