FlixOlé v4.4.0版本的 MD5 值为:50e7f767ca3e8715936523e9ef089581
以下内容为反编译后的 i0.java 源代码,内容仅作参考
package i.c.q0;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.util.Log;
import com.facebook.FacebookActivity;
import java.util.Collection;
import java.util.List;
public final class i0 {
public static final String a = "i.c.q0.i0";
public static <T> void a(Collection<T> collection, String str) {
l(collection, str);
for (T t : collection) {
if (t == null) {
throw new NullPointerException("Container '" + str + "' cannot contain null values");
}
}
}
public static String b() {
String c = i.c.p.c();
if (c != null) {
return c;
}
throw new IllegalStateException("No App ID found, please set the App ID.");
}
public static String c() {
String i2 = i.c.p.i();
if (i2 != null) {
return i2;
}
throw new IllegalStateException("No Client Token found, please set the Client Token.");
}
public static void d(Context context) {
l(context, "context");
String b = b();
PackageManager packageManager = context.getPackageManager();
if (packageManager != null) {
String str = "com.facebook.app.FacebookContentProvider" + b;
if (packageManager.resolveContentProvider(str, 0) == null) {
throw new IllegalStateException(String.format("A ContentProvider for this app was not set up in the AndroidManifest.xml, please add %s as a provider to your AndroidManifest.xml file. See https://developers.facebook.com/docs/sharing/android for more info.", str));
}
}
}
public static boolean e(Context context) {
List<ResolveInfo> list;
l(context, "context");
PackageManager packageManager = context.getPackageManager();
if (packageManager != null) {
Intent intent = new Intent();
intent.setAction("android.intent.action.VIEW");
intent.addCategory("android.intent.category.DEFAULT");
intent.addCategory("android.intent.category.BROWSABLE");
intent.setData(Uri.parse("fb" + i.c.p.c() + "://authorize"));
list = packageManager.queryIntentActivities(intent, 64);
} else {
list = null;
}
if (list != null) {
boolean z = false;
for (ResolveInfo resolveInfo : list) {
if (!resolveInfo.activityInfo.name.equals(i.c.g.class.getName())) {
return false;
}
z = true;
}
return z;
}
return false;
}
public static void f(Context context) {
g(context, true);
}
public static void g(Context context, boolean z) {
ActivityInfo activityInfo;
l(context, "context");
PackageManager packageManager = context.getPackageManager();
if (packageManager != null) {
try {
activityInfo = packageManager.getActivityInfo(new ComponentName(context, FacebookActivity.class), 1);
} catch (PackageManager.NameNotFoundException unused) {
}
if (activityInfo != null) {
if (z) {
throw new IllegalStateException("FacebookActivity is not declared in the AndroidManifest.xml, please add com.facebook.FacebookActivity to your AndroidManifest.xml file. See https://developers.facebook.com/docs/android/getting-started for more info.");
}
Log.w(a, "FacebookActivity is not declared in the AndroidManifest.xml, please add com.facebook.FacebookActivity to your AndroidManifest.xml file. See https://developers.facebook.com/docs/android/getting-started for more info.");
return;
}
return;
}
activityInfo = null;
if (activityInfo != null) {
}
}
public static void h(Context context) {
i(context, true);
}
public static void i(Context context, boolean z) {
l(context, "context");
if (context.checkCallingOrSelfPermission("android.permission.INTERNET") == -1) {
if (z) {
throw new IllegalStateException("No internet permissions granted for the app, please add <uses-permission android:name=\"android.permission.INTERNET\" /> to your AndroidManifest.xml.");
}
Log.w(a, "No internet permissions granted for the app, please add <uses-permission android:name=\"android.permission.INTERNET\" /> to your AndroidManifest.xml.");
}
}
public static <T> void j(Collection<T> collection, String str) {
if (collection.isEmpty()) {
throw new IllegalArgumentException("Container '" + str + "' cannot be empty");
}
}
public static <T> void k(Collection<T> collection, String str) {
a(collection, str);
j(collection, str);
}
public static void l(Object obj, String str) {
if (obj != null) {
return;
}
throw new NullPointerException("Argument '" + str + "' cannot be null");
}
public static void m(String str, String str2) {
if (h0.G(str)) {
throw new IllegalArgumentException("Argument '" + str2 + "' cannot be null or empty");
}
}
public static void n() {
if (!i.c.p.s()) {
throw new i.c.q("The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.");
}
}
}