Skip to content
This repository was archived by the owner on Apr 6, 2024. It is now read-only.

Commit 42cde92

Browse files
authored
Merge pull request #152 from Oizaro/master
Update to latest upstream
2 parents e519443 + 64bd3ef commit 42cde92

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ buildscript {
3636
}
3737

3838
dependencies {
39-
classpath 'com.android.tools.build:gradle:4.2.1'
39+
classpath 'com.android.tools.build:gradle:4.2.2'
4040
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
4141
classpath "com.squareup.wire:wire-gradle-plugin:$wireVersion"
4242
}
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri May 14 01:45:11 CEST 2021
1+
#Sat Jul 03 09:49:43 CEST 2021
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

play-services-core/src/main/java/org/microg/gms/ui/AboutFragment.java

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ protected void collectLibraries(List<AbstractAboutFragment.Library> libraries) {
3030
libraries.add(new AbstractAboutFragment.Library("de.hdodenhof.circleimageview", "CircleImageView", "Apache License 2.0, Henning Dodenhof"));
3131
libraries.add(new AbstractAboutFragment.Library("su.litvak.chromecast.api.v2", "ChromeCast Java API v2", "Apache License 2.0, Vitaly Litvak"));
3232
libraries.add(new AbstractAboutFragment.Library("org.conscrypt", "Conscrypt", "Apache License 2.0, The Android Open Source Project"));
33+
libraries.add(new AbstractAboutFragment.Library("org.chromium.net", "Cronet", "BSD-style License, The Chromium Authors"));
3334
libraries.add(new AbstractAboutFragment.Library("org.microg.safeparcel", "SafeParcel", "Apache License 2.0, microG Team"));
3435
libraries.add(new AbstractAboutFragment.Library("com.squareup.wire", "Wire Protocol Buffers", "Apache License 2.0, Square Inc."));
3536
}

play-services-core/src/main/kotlin/org/microg/gms/settings/SettingsProvider.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ class SettingsProvider : ContentProvider() {
134134
Gcm.NETWORK_ROAMING -> Integer.parseInt(preferences.getString(key, "0") ?: "0")
135135
Gcm.NETWORK_OTHER -> Integer.parseInt(preferences.getString(key, "0") ?: "0")
136136

137-
Gcm.LEARNT_MOBILE -> preferences.getInt(key, 300000)
138-
Gcm.LEARNT_WIFI -> preferences.getInt(key, 300000)
139-
Gcm.LEARNT_OTHER -> preferences.getInt(key, 300000)
137+
Gcm.LEARNT_MOBILE -> preferences.getInt(key, 60000)
138+
Gcm.LEARNT_WIFI -> preferences.getInt(key, 60000)
139+
Gcm.LEARNT_OTHER -> preferences.getInt(key, 60000)
140140

141141
else -> throw IllegalArgumentException("Unknown key: $key")
142142
}

play-services-cronet-core/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ apply plugin: 'maven-publish'
88
apply plugin: 'signing'
99

1010
dependencies {
11-
implementation("org.microg:cronet-api:$cronetVersion")
11+
// TODO: Embedding the API causes random crashes as the Android AOT compiler will link the native implementation to
12+
// out API classes even if embedded by a third-party app that comes with their own API classes.
13+
// Need to find a better way to disable AOT for Cronet. Could be by packaging cronet as it's own apk that is
14+
// embedded in the main APK but only loaded at runtime so that the AOT compiler has no way to become active.
15+
// implementation("org.microg:cronet-api:$cronetVersion")
1216
implementation("org.microg:cronet-common:$cronetVersion")
1317
implementation("org.microg:cronet-native:$cronetVersion")
1418
}

0 commit comments

Comments
 (0)