35 lines
961 B
Java
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;
|
|
}
|
|
}
|