Created
December 26, 2016 19:38
-
-
Save yishai-glide/b981e95a3ea8e60c7ebf43639f614d40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.google.firebase.provider; | |
import android.content.ContentProvider; | |
import android.content.ContentValues; | |
import android.content.Context; | |
import android.content.pm.ProviderInfo; | |
import android.database.Cursor; | |
import android.net.Uri; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.util.Log; | |
import com.google.android.gms.common.internal.zzaa; | |
import com.google.firebase.FirebaseApp; | |
public class FirebaseInitProvider extends ContentProvider { | |
public FirebaseInitProvider() { | |
} | |
public void attachInfo(Context var1, ProviderInfo var2) { | |
zza(var2); | |
super.attachInfo(var1, var2); | |
} | |
public boolean onCreate() { | |
if(FirebaseApp.initializeApp(this.getContext()) == null) { | |
Log.i("FirebaseInitProvider", "FirebaseApp initialization unsuccessful"); | |
} else { | |
Log.i("FirebaseInitProvider", "FirebaseApp initialization successful"); | |
} | |
return false; | |
} | |
private static void zza(@NonNull ProviderInfo var0) { | |
zzaa.zzb(var0, "FirebaseInitProvider ProviderInfo cannot be null."); | |
if("com.google.firebase.firebaseinitprovider".equals(var0.authority)) { | |
throw new IllegalStateException("Incorrect provider authority in manifest. Most likely due to a missing applicationId variable in application\'s build.gradle."); | |
} | |
} | |
@Nullable | |
public Cursor query(Uri var1, String[] var2, String var3, String[] var4, String var5) { | |
return null; | |
} | |
@Nullable | |
public String getType(Uri var1) { | |
return null; | |
} | |
@Nullable | |
public Uri insert(Uri var1, ContentValues var2) { | |
return null; | |
} | |
public int delete(Uri var1, String var2, String[] var3) { | |
return 0; | |
} | |
public int update(Uri var1, ContentValues var2, String var3, String[] var4) { | |
return 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment