|
@@ -48,6 +48,7 @@ import com.scwang.smart.refresh.layout.listener.DefaultRefreshFooterCreator;
|
|
|
import com.scwang.smart.refresh.layout.listener.DefaultRefreshHeaderCreator;
|
|
|
import com.tencent.bugly.crashreport.CrashReport;
|
|
|
import com.rong.io.live.helper.LiveRTCEngineInitHelper;
|
|
|
+import com.tencent.tauth.Tencent;
|
|
|
import com.umeng.commonsdk.UMConfigure;
|
|
|
import com.umeng.socialize.PlatformConfig;
|
|
|
import com.uuzuche.lib_zxing.activity.ZXingLibrary;
|
|
@@ -121,16 +122,18 @@ public class App extends BaseApplication {
|
|
|
private void initUmeng() {
|
|
|
if (UserHelper.isAgreePrivacy()) {
|
|
|
UMConfigure.init(this, "5f2b6f03b4b08b653e91a49e", "app", UMConfigure.DEVICE_TYPE_PHONE, null);
|
|
|
+ //QQ官方sdk授权
|
|
|
+ Tencent.setIsPermissionGranted(true);
|
|
|
+ String FileProvider = "com.cooleshow.student.fileprovider";
|
|
|
+ PlatformConfig.setWeixin("wx97408cd22c879ff7", "665a1608a16631dee40d737b4d1a0ad1");
|
|
|
+ PlatformConfig.setWXFileProvider(FileProvider);
|
|
|
+ PlatformConfig.setSinaWeibo("3712190405", "e77924e0125dbd751bab61063d8338fb", "http://sns.whalecloud.com");
|
|
|
+ PlatformConfig.setSinaFileProvider(FileProvider);
|
|
|
+ PlatformConfig.setQQZone("1110018403", "fY5gof6GIYnc8Gzx");
|
|
|
+ PlatformConfig.setQQFileProvider(FileProvider);
|
|
|
} else {
|
|
|
UMConfigure.preInit(this, "5f2b6f03b4b08b653e91a49e", "app");
|
|
|
}
|
|
|
- String FileProvider = "com.cooleshow.student.fileprovider";
|
|
|
- PlatformConfig.setWeixin("wx97408cd22c879ff7", "665a1608a16631dee40d737b4d1a0ad1");
|
|
|
- PlatformConfig.setWXFileProvider(FileProvider);
|
|
|
- PlatformConfig.setSinaWeibo("3712190405", "e77924e0125dbd751bab61063d8338fb", "http://sns.whalecloud.com");
|
|
|
- PlatformConfig.setSinaFileProvider(FileProvider);
|
|
|
- PlatformConfig.setQQZone("1110018403", "fY5gof6GIYnc8Gzx");
|
|
|
- PlatformConfig.setQQFileProvider(FileProvider);
|
|
|
}
|
|
|
|
|
|
private void initRong() {
|