Skip to content

Commit baf890c

Browse files
committed
Bump version
1 parent b0fae31 commit baf890c

File tree

13 files changed

+21
-16
lines changed

13 files changed

+21
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="http://i.imgur.com/hXY4lcC.png" height="42px" alt="microG" /> Services Core (GmsCore)
22
=======
3-
[![Build Status](https://travis-ci.com/microg/GmsCore.svg?branch=master)](https://travis-ci.com/microg/GmsCore)
3+
[![Build Status](https://github.com/microg/GmsCore/workflows/Build/badge.svg)](https://travis-ci.com/microg/GmsCore)
44

55
microG GmsCore is a FLOSS (Free/Libre Open Source Software) framework to allow applications designed for Google Play Services to run on systems, where Play Services is not available.
66

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def execResult(...args) {
5757
return stdout.toString().trim()
5858
}
5959

60-
def gmsVersion = "20.47.13"
60+
def gmsVersion = "20.47.14"
6161
def gmsVersionCode = Integer.parseInt(gmsVersion.replaceAll('\\.', ''))
6262
def gitVersionBase = execResult('git', 'describe', '--tags', '--abbrev=0', '--match=v[0-9]*').substring(1)
6363
def gitCommitCount = Integer.parseInt(execResult('git', 'rev-list', '--count', "v$gitVersionBase..HEAD"))

play-services-base/src/main/java/com/google/android/gms/common/GoogleApiAvailability.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class GoogleApiAvailability {
5555
/**
5656
* Google Play services client library version (declared in library's AndroidManifest.xml android:versionCode).
5757
*/
58-
public static final int GOOGLE_PLAY_SERVICES_VERSION_CODE = Constants.MAX_REFERENCE_VERSION;
58+
public static final int GOOGLE_PLAY_SERVICES_VERSION_CODE = Constants.GMS_VERSION_CODE;
5959

6060
private static GoogleApiAvailability instance;
6161

play-services-base/src/main/java/com/google/android/gms/common/GooglePlayServicesUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class GooglePlayServicesUtil {
5252
* Google Play services client library version (declared in library's AndroidManifest.xml android:versionCode).
5353
*/
5454
@Deprecated
55-
public static final int GOOGLE_PLAY_SERVICES_VERSION_CODE = Constants.MAX_REFERENCE_VERSION;
55+
public static final int GOOGLE_PLAY_SERVICES_VERSION_CODE = Constants.GMS_VERSION_CODE;
5656

5757
/**
5858
* Package name for Google Play Store.

play-services-basement/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ android {
4040
versionName version
4141
minSdkVersion androidMinSdk
4242
targetSdkVersion androidTargetSdk
43+
buildConfigField "int", "VERSION_CODE", "$appVersionCode"
4344
}
4445

4546
sourceSets {

play-services-basement/src/main/java/com/google/android/gms/common/internal/GetServiceRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ public class GetServiceRequest extends AutoSafeParcelable {
6060

6161
private GetServiceRequest() {
6262
serviceId = -1;
63-
gmsVersion = Constants.MAX_REFERENCE_VERSION;
63+
gmsVersion = Constants.GMS_VERSION_CODE;
6464
}
6565

6666
public GetServiceRequest(int serviceId) {
6767
this.serviceId = serviceId;
68-
this.gmsVersion = Constants.MAX_REFERENCE_VERSION;
68+
this.gmsVersion = Constants.GMS_VERSION_CODE;
6969
this.field12 = true;
7070
}
7171

play-services-basement/src/main/java/org/microg/gms/common/Constants.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@
1616

1717
package org.microg.gms.common;
1818

19+
import org.microg.gms.basement.BuildConfig;
20+
1921
public class Constants {
20-
public static final int MAX_REFERENCE_VERSION = 204713 * 1000;
22+
public static final int GMS_VERSION_CODE = (BuildConfig.VERSION_CODE / 1000) * 1000;
2123
public static final String GMS_PACKAGE_NAME = "com.google.android.gms";
2224
public static final String GSF_PACKAGE_NAME = "com.google.android.gsf";
2325
public static final String GMS_PACKAGE_SIGNATURE_SHA1 = "38918a453d07199354f8b19af05ec6562ced5788";
26+
@Deprecated
27+
public static final int MAX_REFERENCE_VERSION = GMS_VERSION_CODE;
2428
}

play-services-core/src/main/java/org/microg/gms/auth/AuthRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class AuthRequest extends HttpFormClient.Request {
5858
@RequestContent("lang")
5959
public String locale;
6060
@RequestContent("google_play_services_version")
61-
public int gmsVersion = Constants.MAX_REFERENCE_VERSION;
61+
public int gmsVersion = Constants.GMS_VERSION_CODE;
6262
@RequestContent("accountType")
6363
public String accountType;
6464
@RequestContent("Email")

play-services-core/src/main/java/org/microg/gms/auth/login/LoginActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
import static android.view.View.VISIBLE;
7474
import static android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT;
7575
import static org.microg.gms.common.Constants.GMS_PACKAGE_NAME;
76-
import static org.microg.gms.common.Constants.MAX_REFERENCE_VERSION;
76+
import static org.microg.gms.common.Constants.GMS_VERSION_CODE;
7777

7878
public class LoginActivity extends AssistantActivity {
7979
public static final String TMPL_NEW_ACCOUNT = "new_account";
@@ -463,7 +463,7 @@ public final String getPhoneNumber() {
463463

464464
@JavascriptInterface
465465
public final int getPlayServicesVersionCode() {
466-
return MAX_REFERENCE_VERSION;
466+
return GMS_VERSION_CODE;
467467
}
468468

469469
@JavascriptInterface

play-services-core/src/main/java/org/microg/gms/snet/Attestation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public byte[] buildPayload(byte[] nonce) {
7676
.packageName(packageName)
7777
.fileDigest(getPackageFileDigest())
7878
.signatureDigest(getPackageSignatures())
79-
.gmsVersionCode(Constants.MAX_REFERENCE_VERSION)
79+
.gmsVersionCode(Constants.GMS_VERSION_CODE)
8080
//.googleCn(false)
8181
.seLinuxState(new SELinuxState.Builder().enabled(true).supported(true).build())
8282
.suCandidates(Collections.<FileState>emptyList())
@@ -155,7 +155,7 @@ private AttestResponse attest(AttestRequest request, String apiKey) throws IOExc
155155
connection.setRequestProperty("content-type", "application/x-protobuf");
156156
connection.setRequestProperty("Accept-Encoding", "gzip");
157157
Build build = Utils.getBuild(context);
158-
connection.setRequestProperty("User-Agent", "SafetyNet/" + Constants.MAX_REFERENCE_VERSION + " (" + build.device + " " + build.id + "); gzip");
158+
connection.setRequestProperty("User-Agent", "SafetyNet/" + Constants.GMS_VERSION_CODE + " (" + build.device + " " + build.id + "); gzip");
159159

160160
OutputStream os = connection.getOutputStream();
161161
os.write(request.encode());

0 commit comments

Comments
 (0)