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

Commit

Permalink
Merge pull request #159 from GoldenRetro/master
Browse files Browse the repository at this point in the history
Some updates
  • Loading branch information
KevinX8 committed Sep 11, 2021
2 parents 020b789 + ae3feaa commit 2a4c735
Show file tree
Hide file tree
Showing 40 changed files with 204 additions and 176 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: JDK 8 Setup
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11.0.8

- name: Install NDK
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.0.6113669"
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "com.squareup.wire:wire-gradle-plugin:$wireVersion"
}
Expand All @@ -46,8 +46,8 @@ allprojects {
apply plugin: 'idea'

group = 'org.microg.gms'
version = "0.2.21.212417"
ext.appVersionCode = 212417001
version = "0.2.22.212658"
ext.appVersionCode = 212658001
ext.isReleaseVersion = false
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Jul 03 09:49:43 CEST 2021
#Sat Sep 11 09:04:01 CEST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
1 change: 0 additions & 1 deletion play-services-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ android {
buildToolsVersion "$androidBuildVersionTools"

defaultConfig {
versionName version
minSdkVersion androidMinSdk
targetSdkVersion androidTargetSdk
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package com.google.android.gms.clearcut.internal;
import com.google.android.gms.common.api.Status;

interface IClearcutLoggerCallbacks {
void onStatus(in Status status) = 0;
oneway void onStatus(in Status status) = 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import com.google.android.gms.common.api.Status;
import com.mgoogle.android.gms.phenotype.Configurations;

interface IPhenotypeCallbacks {
void onRegister(in Status status) = 0;
void onConfigurations(in Status status, in Configurations configurations) = 3;
oneway void onRegister(in Status status) = 0;
oneway void onConfigurations(in Status status, in Configurations configurations) = 3;
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

import android.util.Base64;

import com.google.android.gms.phenotype.ExperimentToken;
import com.google.android.gms.phenotype.GenericDimension;
import com.google.android.gms.playlog.internal.PlayLoggerContext;

import org.microg.safeparcel.AutoSafeParcelable;
Expand All @@ -30,37 +32,45 @@
import java.util.Arrays;

public class LogEventParcelable extends AutoSafeParcelable {
@SafeParceled(1)
@Field(1)
private int versionCode = 1;

@SafeParceled(2)
@Field(2)
public final PlayLoggerContext context;

@SafeParceled(3)
@Field(3)
public final byte[] bytes;

@SafeParceled(4)
@Field(4)
public final int[] testCodes;

@SafeParceled(5)
@Field(5)
public final String[] mendelPackages;

@SafeParceled(6)
@Field(6)
public final int[] experimentIds;

@SafeParceled(7)
@Field(7)
public final byte[][] experimentTokens;

@SafeParceled(8)
@Field(8)
public final boolean addPhenotypeExperimentTokens;

@Field(9)
public final ExperimentToken[] experimentTokenParcelables;

@Field(10)
public final GenericDimension[] genericDimensions;

private LogEventParcelable() {
context = null;
bytes = null;
testCodes = experimentIds = null;
mendelPackages = null;
experimentTokens = null;
addPhenotypeExperimentTokens = false;
experimentTokenParcelables = null;
genericDimensions = null;
}

public LogEventParcelable(PlayLoggerContext context, byte[] bytes, int[] testCodes, String[] mendelPackages, int[] experimentIds, byte[][] experimentTokens, boolean addPhenotypeExperimentTokens) {
Expand All @@ -71,6 +81,8 @@ public LogEventParcelable(PlayLoggerContext context, byte[] bytes, int[] testCod
this.experimentIds = experimentIds;
this.experimentTokens = experimentTokens;
this.addPhenotypeExperimentTokens = addPhenotypeExperimentTokens;
experimentTokenParcelables = null;
genericDimensions = null;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,55 +21,49 @@

public class PlayLoggerContext extends AutoSafeParcelable {

@SafeParceled(1)
@Field(1)
private int versionCode = 1;

@SafeParceled(2)
@Field(2)
public final String packageName;

@SafeParceled(3)
@Field(3)
public final int packageVersionCode;

@SafeParceled(4)
@Field(4)
public final int logSource;

@SafeParceled(5)
@Field(8)
public final String logSourceName;

@Field(5)
public final String uploadAccount;

@SafeParceled(6)
public final int loggingId;
@Field(6)
public final String loggingId;

@SafeParceled(7)
@Field(7)
public final boolean logAndroidId;

@SafeParceled(8)
public final String logSourceName;

@SafeParceled(9)
@Field(9)
public final boolean isAnonymous;

@SafeParceled(10)
@Field(10)
public final int qosTier;

private PlayLoggerContext() {
packageName = uploadAccount = logSourceName = null;
qosTier = packageVersionCode = logSource = loggingId = -1;
isAnonymous = logAndroidId = false;
}
@Field(11)
public final Integer appMobileSpecId;

public PlayLoggerContext(String packageName, int packageVersionCode, int logSource, String uploadAccount, int loggingId, boolean logAndroidId) {
this.packageName = packageName;
this.packageVersionCode = packageVersionCode;
this.logSource = logSource;
this.logSourceName = null;
this.uploadAccount = uploadAccount;
this.loggingId = loggingId;
this.logAndroidId = logAndroidId;
this.isAnonymous = false;
this.qosTier = 0;
@Field(12)
public final boolean scrubMccMnc;

private PlayLoggerContext() {
packageName = uploadAccount = logSourceName = loggingId = null;
qosTier = packageVersionCode = logSource = appMobileSpecId = -1;
isAnonymous = logAndroidId = scrubMccMnc = false;
}

public PlayLoggerContext(String packageName, int packageVersionCode, int logSource, String logSourceName, String uploadAccount, int loggingId, boolean isAnonymous, int qosTier) {
public PlayLoggerContext(String packageName, int packageVersionCode, int logSource, String logSourceName, String uploadAccount, String loggingId, boolean isAnonymous, int qosTier, boolean scrubMccMnc) {
this.packageName = packageName;
this.packageVersionCode = packageVersionCode;
this.logSource = logSource;
Expand All @@ -79,22 +73,25 @@ public PlayLoggerContext(String packageName, int packageVersionCode, int logSour
this.logAndroidId = !isAnonymous;
this.isAnonymous = isAnonymous;
this.qosTier = qosTier;
this.appMobileSpecId = null;
this.scrubMccMnc = scrubMccMnc;
}

@Override
public String toString() {
return "PlayLoggerContext[" + versionCode +
", package=" + packageName +
", packageVersionCode=" + packageVersionCode +
", logSource=" + logSource +
", uploadAccount=" + uploadAccount +
", loggingId=" + loggingId +
", logAndroidId=" + logAndroidId +
", logSourceName=" + logSourceName +
", isAnonymous=" + isAnonymous +
", qosTier=" + qosTier +
']';
final StringBuilder sb = new StringBuilder("PlayLoggerContext[").append(versionCode);
sb.append(", package=").append(packageName);
sb.append(", packageVersionCode=").append(packageVersionCode);
sb.append(", logSource=").append(logSource);
sb.append(", uploadAccount=").append(uploadAccount);
sb.append(", loggingId=").append(loggingId);
sb.append(", logAndroidId=").append(logAndroidId);
sb.append(", logSourceName=").append(logSourceName);
sb.append(", isAnonymous=").append(isAnonymous);
sb.append(", qosTier=").append(qosTier);
sb.append(']');
return sb.toString();
}

public static Creator<PlayLoggerContext> CREATOR = new AutoCreator<>(PlayLoggerContext.class);
}
public static Creator<PlayLoggerContext> CREATOR = new AutoCreator<PlayLoggerContext>(PlayLoggerContext.class);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* SPDX-FileCopyrightText: 2020, microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/

package com.google.android.gms.phenotype;

import org.microg.safeparcel.AutoSafeParcelable;

public class ExperimentToken extends AutoSafeParcelable {
public static final Creator<ExperimentToken> CREATOR = new AutoCreator<>(ExperimentToken.class);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* SPDX-FileCopyrightText: 2020, microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/

package com.google.android.gms.phenotype;

import org.microg.safeparcel.AutoSafeParcelable;

public class GenericDimension extends AutoSafeParcelable {
@Field(1)
public int a;
@Field(2)
public int b;

public static final Creator<GenericDimension> CREATOR = new AutoCreator<>(GenericDimension.class);
}
1 change: 0 additions & 1 deletion play-services-base-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ android {
aidlPackageWhiteList "com/google/android/gms/common/images/WebImage.aidl"

defaultConfig {
versionName version
minSdkVersion androidMinSdk
targetSdkVersion androidTargetSdk
}
Expand Down
3 changes: 1 addition & 2 deletions play-services-base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ android {
buildToolsVersion "$androidBuildVersionTools"

defaultConfig {
versionName version
minSdkVersion androidMinSdk
targetSdkVersion androidTargetSdk
}
Expand All @@ -39,6 +38,6 @@ dependencies {
api project(':play-services-tasks')
api project(':play-services-base-api')

implementation 'androidx.fragment:fragment:1.3.5'
implementation 'androidx.fragment:fragment:1.3.6'
implementation 'com.google.android.gms:play-services-base:17.6.0'
}
3 changes: 1 addition & 2 deletions play-services-basement/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies {
api "org.microg:safe-parcel:1.7.0"

implementation "androidx.annotation:annotation:1.2.0"
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.32'
}

android {
Expand All @@ -34,7 +34,6 @@ android {
aidlPackageWhiteList "com/google/android/gms/dynamic/IObjectWrapper.aidl"

defaultConfig {
versionName version
minSdkVersion androidMinSdk
targetSdkVersion androidTargetSdk
buildConfigField "int", "VERSION_CODE", "$appVersionCode"
Expand Down
1 change: 0 additions & 1 deletion play-services-cast-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ android {
aidlPackageWhiteList "com/google/android/gms/cast/LaunchOptions.aidl"

defaultConfig {
versionName version
minSdkVersion androidMinSdk
targetSdkVersion androidTargetSdk
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import com.google.android.gms.cast.LaunchOptions;
import com.google.android.gms.cast.JoinOptions;

interface ICastDeviceController {
void disconnect() = 0;
void stopApplication(String sessionId) = 4;
void sendMessage(String namespace, String message, long requestId) = 8;
void registerNamespace(String namespace) = 10;
void unregisterNamespace(String namespace) = 11;
void launchApplication(String applicationId, in LaunchOptions launchOptions) = 12;
void joinApplication(String applicationId, String sessionId, in JoinOptions joinOptions) = 13;
oneway void disconnect() = 0;
oneway void stopApplication(String sessionId) = 4;
oneway void sendMessage(String namespace, String message, long requestId) = 8;
oneway void registerNamespace(String namespace) = 10;
oneway void unregisterNamespace(String namespace) = 11;
oneway void launchApplication(String applicationId, in LaunchOptions launchOptions) = 12;
oneway void joinApplication(String applicationId, String sessionId, in JoinOptions joinOptions) = 13;
}
1 change: 0 additions & 1 deletion play-services-cast-framework-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ android {
buildToolsVersion "$androidBuildVersionTools"

defaultConfig {
versionName version
minSdkVersion androidMinSdk
targetSdkVersion androidTargetSdk
}
Expand Down
1 change: 0 additions & 1 deletion play-services-cast/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ android {
buildToolsVersion "$androidBuildVersionTools"

defaultConfig {
versionName version
minSdkVersion androidMinSdk
targetSdkVersion androidTargetSdk
}
Expand Down
7 changes: 2 additions & 5 deletions play-services-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ apply plugin: 'kotlin-kapt'
dependencies {
implementation 'com.squareup.wire:wire-runtime:3.6.1'
implementation 'de.hdodenhof:circleimageview:3.1.0'
// TODO: Switch to upstream once raw requests are merged
// https://github.com/vitalidze/chromecast-java-api-v2/pull/99
// implementation "su.litvak.chromecast:api-v2:0.10.4"
implementation "info.armills.chromecast-java-api-v2:api-v2-raw-request:0.10.4-raw-request-1"

implementation project(':play-services-cronet-core')
Expand All @@ -33,8 +30,8 @@ dependencies {
implementation project(':play-services-cast-api')

// AndroidX UI
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.mediarouter:mediarouter:1.2.4'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.mediarouter:mediarouter:1.2.5'
implementation "androidx.preference:preference-ktx:$preferenceVersion"

implementation "org.microg.gms:conscrypt-gmscore:2.5.1"
Expand Down
Loading

0 comments on commit 2a4c735

Please sign in to comment.