- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
31 lines
1.2 KiB
Java
31 lines
1.2 KiB
Java
package com.google.android.gms.dynamite;
|
|
|
|
import android.content.Context;
|
|
import com.google.android.gms.dynamite.DynamiteModule;
|
|
|
|
/* loaded from: classes2.dex */
|
|
final class zzi implements DynamiteModule.VersionPolicy {
|
|
@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 {
|
|
DynamiteModule.VersionPolicy.SelectionResult selectionResult = new DynamiteModule.VersionPolicy.SelectionResult();
|
|
selectionResult.localVersion = iVersions.zza(context, str);
|
|
int i = 1;
|
|
int zzb = iVersions.zzb(context, str, true);
|
|
selectionResult.remoteVersion = zzb;
|
|
int i2 = selectionResult.localVersion;
|
|
if (i2 == 0) {
|
|
i2 = 0;
|
|
if (zzb == 0) {
|
|
i = 0;
|
|
selectionResult.selection = i;
|
|
return selectionResult;
|
|
}
|
|
}
|
|
if (i2 >= zzb) {
|
|
i = -1;
|
|
}
|
|
selectionResult.selection = i;
|
|
return selectionResult;
|
|
}
|
|
}
|