fix: load sentry after init native libs
This commit is contained in:
parent
ad8340b48c
commit
57d5c970cc
@ -299,8 +299,6 @@ public class ApplicationLoader extends Application {
|
|||||||
|
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
|
||||||
AnalyticsHelper.start(this);
|
|
||||||
|
|
||||||
if (BuildVars.LOGS_ENABLED) {
|
if (BuildVars.LOGS_ENABLED) {
|
||||||
FileLog.d("app start time = " + (startTime = SystemClock.elapsedRealtime()));
|
FileLog.d("app start time = " + (startTime = SystemClock.elapsedRealtime()));
|
||||||
try {
|
try {
|
||||||
@ -321,6 +319,9 @@ public class ApplicationLoader extends Application {
|
|||||||
} catch (UnsatisfiedLinkError error) {
|
} catch (UnsatisfiedLinkError error) {
|
||||||
throw new RuntimeException("can't load native libraries " + Build.CPU_ABI + " lookup folder " + NativeLoader.getAbiFolder());
|
throw new RuntimeException("can't load native libraries " + Build.CPU_ABI + " lookup folder " + NativeLoader.getAbiFolder());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AnalyticsHelper.start(this);
|
||||||
|
|
||||||
new ForegroundDetector(this) {
|
new ForegroundDetector(this) {
|
||||||
@Override
|
@Override
|
||||||
public void onActivityStarted(Activity activity) {
|
public void onActivityStarted(Activity activity) {
|
||||||
|
Loading…
Reference in New Issue
Block a user