Initial version -- added millennium read funcionality
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.dynamite.DynamiteModule;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzl implements DynamiteModule.VersionPolicy {
|
||||
zzl() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy
|
||||
public final DynamiteModule.VersionPolicy.SelectionResult selectModule(Context context, String str, DynamiteModule.VersionPolicy.IVersions iVersions) throws DynamiteModule.LoadingException {
|
||||
int iZzb;
|
||||
DynamiteModule.VersionPolicy.SelectionResult selectionResult = new DynamiteModule.VersionPolicy.SelectionResult();
|
||||
int iZza = iVersions.zza(context, str);
|
||||
selectionResult.localVersion = iZza;
|
||||
int i = 1;
|
||||
int i2 = 0;
|
||||
if (iZza != 0) {
|
||||
iZzb = iVersions.zzb(context, str, false);
|
||||
selectionResult.remoteVersion = iZzb;
|
||||
} else {
|
||||
iZzb = iVersions.zzb(context, str, true);
|
||||
selectionResult.remoteVersion = iZzb;
|
||||
}
|
||||
int i3 = selectionResult.localVersion;
|
||||
if (i3 == 0) {
|
||||
if (iZzb == 0) {
|
||||
i = 0;
|
||||
}
|
||||
selectionResult.selection = i;
|
||||
return selectionResult;
|
||||
}
|
||||
i2 = i3;
|
||||
if (iZzb < i2) {
|
||||
i = -1;
|
||||
}
|
||||
selectionResult.selection = i;
|
||||
return selectionResult;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user