jimu-decompiled/sources/com/tencent/mm/opensdk/diffdev/DiffDevOAuthFactory.java
2025-05-13 19:24:51 +02:00

35 lines
961 B
Java

package com.tencent.mm.opensdk.diffdev;
import com.tencent.mm.opensdk.diffdev.a.a;
import com.tencent.mm.opensdk.utils.Log;
/* loaded from: classes.dex */
public class DiffDevOAuthFactory {
public static final int MAX_SUPPORTED_VERSION = 1;
private static final String TAG = "MicroMsg.SDK.DiffDevOAuthFactory";
public static final int VERSION_1 = 1;
private static IDiffDevOAuth v1Instance;
private DiffDevOAuthFactory() {
}
public static IDiffDevOAuth getDiffDevOAuth() {
return getDiffDevOAuth(1);
}
public static IDiffDevOAuth getDiffDevOAuth(int i) {
Log.v(TAG, "getDiffDevOAuth, version = " + i);
if (i > 1) {
Log.e(TAG, "getDiffDevOAuth fail, unsupported version = " + i);
return null;
}
if (i != 1) {
return null;
}
if (v1Instance == null) {
v1Instance = new a();
}
return v1Instance;
}
}