Repo Created
This commit is contained in:
parent
eb305e2886
commit
a8c22c65db
4784 changed files with 329907 additions and 2 deletions
41
play-services-measurement-base/build.gradle
Normal file
41
play-services-measurement-base/build.gradle
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'signing'
|
||||
|
||||
android {
|
||||
namespace "com.google.android.gms.measurement_base"
|
||||
|
||||
compileSdkVersion androidCompileSdk
|
||||
buildToolsVersion "$androidBuildVersionTools"
|
||||
|
||||
buildFeatures {
|
||||
aidl = true
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
versionName version
|
||||
minSdkVersion androidMinSdk
|
||||
targetSdkVersion androidTargetSdk
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
}
|
||||
}
|
||||
|
||||
apply from: '../gradle/publish-android.gradle'
|
||||
|
||||
description = 'microG implementation of play-services-clearcut'
|
||||
|
||||
dependencies {
|
||||
// Dependencies from play-services-measurement-base:21.2.0
|
||||
api project(':play-services-basement')
|
||||
|
||||
annotationProcessor project(":safe-parcel-processor")
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ SPDX-FileCopyrightText: 2022 microG Project Team
|
||||
~ SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<manifest />
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
import com.google.android.gms.measurement.api.internal.IBundleReceiver;
|
||||
import com.google.android.gms.measurement.api.internal.IDynamiteUploadBatchesCallback;
|
||||
import com.google.android.gms.measurement.api.internal.IEventHandlerProxy;
|
||||
import com.google.android.gms.measurement.api.internal.IStringProvider;
|
||||
import com.google.android.gms.measurement.api.internal.InitializationParams;
|
||||
import com.google.android.gms.measurement.api.internal.ScionActivityInfo;
|
||||
|
||||
interface IAppMeasurementDynamiteService {
|
||||
void initialize(in IObjectWrapper context, in InitializationParams params, long eventTimeMillis) = 0;
|
||||
void logEvent(String origin, String name, in Bundle params, boolean z, boolean z2, long eventTimeMillis) = 1;
|
||||
void logEventAndBundle(String origin, String name, in Bundle params, IBundleReceiver receiver, long eventTimeMillis) = 2;
|
||||
void setUserProperty(String origin, String name, in IObjectWrapper value, boolean z, long eventTimeMillis) = 3;
|
||||
void getUserProperties(String origin, String propertyNamePrefix, boolean includeInternal, IBundleReceiver receiver) = 4;
|
||||
void getMaxUserProperties(String origin, IBundleReceiver receiver) = 5;
|
||||
void setUserId(String userId, long eventTimeMillis) = 6;
|
||||
void setConditionalUserProperty(in Bundle bundle, long eventTimeMillis) = 7;
|
||||
void clearConditionalUserProperty(String name, String eventName, in Bundle bundle) = 8;
|
||||
void getConditionalUserProperties(String origin, String propertyNamePrefix, IBundleReceiver receiver) = 9;
|
||||
void setMeasurementEnabled(boolean measurementEnabled, long eventTimeMillis) = 10;
|
||||
void resetAnalyticsData(long eventTimeMillis) = 11;
|
||||
void setMinimumSessionDuration(long minimumSessionDuration) = 12;
|
||||
void setSessionTimeoutDuration(long sessionTimeoutDuration) = 13;
|
||||
void setCurrentScreen(in IObjectWrapper obj, String screenName, String className, long eventTimeMillis) = 14;
|
||||
void getCurrentScreenName(IBundleReceiver receiver) = 15;
|
||||
void getCurrentScreenClass(IBundleReceiver receiver) = 16;
|
||||
void setInstanceIdProvider(IStringProvider provider) = 17;
|
||||
void getCachedAppInstanceId(IBundleReceiver receiver) = 18;
|
||||
void getAppInstanceId(IBundleReceiver receiver) = 19;
|
||||
void getGmpAppId(IBundleReceiver receiver) = 20;
|
||||
void generateEventId(IBundleReceiver receiver) = 21;
|
||||
void beginAdUnitExposure(String adUnitId, long eventElapsedRealtime) = 22;
|
||||
void endAdUnitExposure(String adUnitId, long eventElapsedRealtime) = 23;
|
||||
void onActivityStarted(in IObjectWrapper activity, long eventElapsedRealtime) = 24;
|
||||
void onActivityStopped(in IObjectWrapper activity, long eventElapsedRealtime) = 25;
|
||||
void onActivityCreated(in IObjectWrapper activity, in Bundle savedInstanceState, long eventElapsedRealtime) = 26;
|
||||
void onActivityDestroyed(in IObjectWrapper activity, long eventElapsedRealtime) = 27;
|
||||
void onActivityPaused(in IObjectWrapper activity, long eventElapsedRealtime) = 28;
|
||||
void onActivityResumed(in IObjectWrapper activity, long eventElapsedRealtime) = 29;
|
||||
void onActivitySaveInstanceState(in IObjectWrapper activity, IBundleReceiver receiver, long eventElapsedRealtime) = 30;
|
||||
void performAction(in Bundle bundle, IBundleReceiver receiver, long eventTimeMillis) = 31;
|
||||
void logHealthData(int i, String str, in IObjectWrapper obj, in IObjectWrapper obj2, in IObjectWrapper obj3) = 32;
|
||||
void setEventInterceptor(IEventHandlerProxy eventHandler) = 33;
|
||||
void registerOnMeasurementEventListener(IEventHandlerProxy eventHandler) = 34;
|
||||
void unregisterOnMeasurementEventListener(IEventHandlerProxy eventHandler) = 35;
|
||||
void initForTests(in Map map) = 36;
|
||||
void getTestFlag(IBundleReceiver receiver, int i) = 37;
|
||||
void setDataCollectionEnabled(boolean dataCollectionEnabled) = 38;
|
||||
void isDataCollectionEnabled(IBundleReceiver receiver) = 39;
|
||||
|
||||
void setDefaultEventParameters(in Bundle bundle) = 41;
|
||||
void clearMeasurementEnabled(long eventTimeMillis) = 42;
|
||||
void setConsent(in Bundle bundle, long eventTimeMillis) = 43;
|
||||
void setConsentThirdParty(in Bundle bundle, long eventTimeMillis) = 44;
|
||||
void getSessionId(IBundleReceiver receiver) = 45;
|
||||
|
||||
void setSgtmDebugInfo(in Intent intent) = 47;
|
||||
|
||||
void setCurrentScreenByScionActivityInfo(in ScionActivityInfo info, String screenName, String className, long eventElapsedRealtime) = 49;
|
||||
void onActivityStartedByScionActivityInfo(in ScionActivityInfo info, long eventElapsedRealtime) = 50;
|
||||
void onActivityStoppedByScionActivityInfo(in ScionActivityInfo info, long eventElapsedRealtime) = 51;
|
||||
void onActivityCreatedByScionActivityInfo(in ScionActivityInfo info, in Bundle savedInstanceState, long eventElapsedRealtime) = 52;
|
||||
void onActivityDestroyedByScionActivityInfo(in ScionActivityInfo info, long eventElapsedRealtime) = 53;
|
||||
void onActivityPausedByScionActivityInfo(in ScionActivityInfo info, long eventElapsedRealtime) = 54;
|
||||
void onActivityResumedByScionActivityInfo(in ScionActivityInfo info, long eventElapsedRealtime) = 55;
|
||||
void onActivitySaveInstanceStateByScionActivityInfo(in ScionActivityInfo info, IBundleReceiver receiver, long eventElapsedRealtime) = 56;
|
||||
void retrieveAndUploadBatches(IDynamiteUploadBatchesCallback callback) = 57;
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
interface IBundleReceiver {
|
||||
void onBundle(in Bundle bundle);
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
interface IDynamiteUploadBatchesCallback {
|
||||
void onUploadBatches();
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
interface IEventHandlerProxy {
|
||||
void f1(String s1, String s2, in Bundle bundle, long j) = 0;
|
||||
int f2() = 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
interface IStringProvider {
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
parcelable InitializationParams;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
parcelable ScionActivityInfo;
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import android.os.Parcel;
|
||||
import androidx.annotation.NonNull;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelableCreatorAndWriter;
|
||||
|
||||
@SafeParcelable.Class
|
||||
public class InitializationParams extends AbstractSafeParcelable {
|
||||
@Field(1)
|
||||
public long field1;
|
||||
@Field(2)
|
||||
public long field2;
|
||||
@Field(3)
|
||||
public boolean field3;
|
||||
@Field(4)
|
||||
public String field4;
|
||||
@Field(5)
|
||||
public String field5;
|
||||
@Field(6)
|
||||
public String field6;
|
||||
@Field(7)
|
||||
public Bundle field7;
|
||||
@Field(8)
|
||||
public String field8;
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public String toString() {
|
||||
return "InitializationParams{" +
|
||||
"field1=" + field1 +
|
||||
", field2=" + field2 +
|
||||
", field3=" + field3 +
|
||||
", field4='" + field4 + '\'' +
|
||||
", field5='" + field5 + '\'' +
|
||||
", field6='" + field6 + '\'' +
|
||||
", field7=" + field7 +
|
||||
", field8='" + field8 + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(@NonNull Parcel dest, int flags) {
|
||||
CREATOR.writeToParcel(this, dest, flags);
|
||||
}
|
||||
|
||||
public static final SafeParcelableCreatorAndWriter<InitializationParams> CREATOR = findCreator(InitializationParams.class);
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2025 microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Parcel;
|
||||
import androidx.annotation.NonNull;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelableCreatorAndWriter;
|
||||
|
||||
@SafeParcelable.Class
|
||||
public class ScionActivityInfo extends AbstractSafeParcelable {
|
||||
@Field(1)
|
||||
public final int id;
|
||||
@Field(2)
|
||||
public final String className;
|
||||
@Field(3)
|
||||
public final Intent intent;
|
||||
|
||||
@Constructor
|
||||
public ScionActivityInfo(@Param(1) int id, @Param(2) String className, @Param(3) Intent intent) {
|
||||
this.id = id;
|
||||
this.className = className;
|
||||
this.intent = intent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(@NonNull Parcel dest, int flags) {
|
||||
CREATOR.writeToParcel(this, dest, flags);
|
||||
}
|
||||
|
||||
public static final SafeParcelableCreatorAndWriter<ScionActivityInfo> CREATOR = findCreator(ScionActivityInfo.class);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue