Skip to content

Commit

Permalink
Ads: Add dummy initializer to DynamiteMeasurementManager
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Dec 8, 2024
1 parent eb484ba commit c08df04
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@
*/
package com.google.android.gms.ads.measurement

import android.os.Parcel
import android.util.Log
import androidx.annotation.Keep
import com.google.android.gms.dynamic.IObjectWrapper
import org.microg.gms.utils.warnOnTransactionIssues

private const val TAG = "DynamiteMeasurement"

@Keep
class DynamiteMeasurementManager : IMeasurementManager.Stub()
class DynamiteMeasurementManager : IMeasurementManager.Stub() {

override fun initialize(context: IObjectWrapper?, proxy: IAppMeasurementProxy?) {
Log.d(TAG, "Not yet implemented: initialize")
}

override fun onTransact(code: Int, data: Parcel, reply: Parcel?, flags: Int): Boolean =
warnOnTransactionIssues(code, reply, flags, TAG) { super.onTransact(code, data, reply, flags) }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.google.android.gms.ads.measurement;

interface IAppMeasurementProxy {

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.google.android.gms.ads.measurement;

interface IMeasurementManager {
import com.google.android.gms.ads.measurement.IAppMeasurementProxy;
import com.google.android.gms.dynamic.IObjectWrapper;

interface IMeasurementManager {
void initialize(IObjectWrapper context, IAppMeasurementProxy proxy) = 1;
}

0 comments on commit c08df04

Please sign in to comment.