package io.github.emanual.app;

import android.app.Application;

import com.avos.avoscloud.AVOSCloud;
import com.beardedhen.androidbootstrap.TypefaceProvider;

import io.github.emanual.app.api.RestClient;

public class App extends Application {
    private final String LeanCloud_App_Id = "7hyoc6are05n823dd424ywvf752gem2w96inlkl3yiann6vw";
    private final String LeanCloud_App_Key = "tgufkdybjtb4gvsbwcatiwd9wx49adxrmf8qkpwunh0h3wx3";

    @Override
    public void onCreate() {
        super.onCreate();
        RestClient.init(getApplicationContext());

        //init leancloud
        AVOSCloud.initialize(this, LeanCloud_App_Id, LeanCloud_App_Key);

        //android bootstrap
        TypefaceProvider.registerDefaultIconSets();
    }
}

@@ -56,16 +56,72 @@
 ication;
+%0Aimport android.os.Build;%0Aimport android.webkit.WebView;
 %0A%0Aimport
@@ -783,20 +783,210 @@
 IconSets();%0A
+%0A        if(BuildConfig.DEBUG)%7B%0A            if (Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.KITKAT) %7B%0A                WebView.setWebContentsDebuggingEnabled(true);%0A            %7D%0A        %7D%0A%0A
     %7D%0A%7D%0A

enable debug when in develop