android初始化微调
parent
d5eae2c9b8
commit
cb41732c41
|
@ -5,6 +5,7 @@ import android.content.Context;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import com.finogeeks.lib.applet.BuildConfig;
|
||||||
import com.finogeeks.lib.applet.client.FinAppClient;
|
import com.finogeeks.lib.applet.client.FinAppClient;
|
||||||
import com.finogeeks.lib.applet.client.FinAppConfig;
|
import com.finogeeks.lib.applet.client.FinAppConfig;
|
||||||
import com.finogeeks.lib.applet.interfaces.FinCallback;
|
import com.finogeeks.lib.applet.interfaces.FinCallback;
|
||||||
|
@ -63,12 +64,12 @@ public class BaseModule extends BaseApi {
|
||||||
disablePermission = false;
|
disablePermission = false;
|
||||||
}
|
}
|
||||||
FinAppConfig config = new FinAppConfig.Builder()
|
FinAppConfig config = new FinAppConfig.Builder()
|
||||||
.setAppKey(appkey)
|
.setSdkKey(appkey)
|
||||||
.setAppSecret(secret)
|
.setSdkSecret(secret)
|
||||||
.setApiUrl(apiServer)
|
.setApiUrl(apiServer)
|
||||||
.setApiPrefix(apiPrefix)
|
.setApiPrefix(apiPrefix)
|
||||||
.setGlideWithJWT(false)
|
|
||||||
.setEncryptionType(cryptType)
|
.setEncryptionType(cryptType)
|
||||||
|
.setDebugMode(BuildConfig.DEBUG)
|
||||||
.setDisableRequestPermissions(disablePermission)
|
.setDisableRequestPermissions(disablePermission)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
@ -95,7 +96,5 @@ public class BaseModule extends BaseApi {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
FinAppClient.INSTANCE.init(application, config, cb);
|
FinAppClient.INSTANCE.init(application, config, cb);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue