Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
grandiloquent committed Sep 19, 2021
1 parent 579c968 commit 1173f8a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 24 deletions.
12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
//apply plugin: 'com.google.gms.google-services'
//apply plugin: 'com.google.firebase.crashlytics'

android {
compileSdkVersion 30
Expand Down Expand Up @@ -32,12 +32,12 @@ android {
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.tencent.bugly:crashreport:latest.release'
implementation 'com.github.bumptech.glide:glide:4.12.0'
implementation('com.github.evgenyneu:js-evaluator-for-android:v4.0.0') {
exclude module: 'appcompat-v7'
}
implementation platform('com.google.firebase:firebase-bom:28.4.0')
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-analytics'
// implementation platform('com.google.firebase:firebase-bom:28.4.0')
// implementation 'com.google.firebase:firebase-crashlytics'
// implementation 'com.google.firebase:firebase-analytics'
}
5 changes: 2 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@
<activity android:name=".BookmarkActivity" />
<activity
android:name=".VideoListActivity"
android:label="@string/video_list_name"
/>
<!-- android:launchMode="singleInstance"-->
android:label="@string/video_list_name" />
<!-- android:launchMode="singleInstance"-->
<activity
android:name="euphoria.psycho.player.VideoActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
Expand Down
21 changes: 10 additions & 11 deletions app/src/main/java/euphoria/psycho/explorer/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

import android.app.Application;
import android.content.Context;
import android.os.Environment;
import android.os.StrictMode;

import java.io.File;

import euphoria.psycho.utils.FileLog;
import com.tencent.bugly.crashreport.CrashReport;

public class App extends Application {
private static Context sContext;
Expand All @@ -30,14 +27,16 @@ public void onCreate() {
StrictMode.setVmPolicy(builder.build());
//FileShare.initialize(this);
// VideoHelper.deleteVideoDirectory(this);
File logDir = new File(getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS), "log");
if (!logDir.exists()) {
if (!logDir.mkdirs()) {
throw new IllegalStateException();
}
}
FileLog.setDir(logDir);
// File logDir = new File(getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS), "log");
// if (!logDir.exists()) {
// if (!logDir.mkdirs()) {
// throw new IllegalStateException();
// }
// }
// FileLog.setDir(logDir);
// adb pull /storage/emulated/0/Android/data/euphoria.psycho.explorer/files/Documents/log/. log
CrashReport.UserStrategy userStrategy = new CrashReport.UserStrategy(this);
CrashReport.initCrashReport(this,"97528631ea",true,userStrategy);
}


Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ buildscript {
maven {
url 'https://maven.aliyun.com/repository/google'
}
google()
/// google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
// classpath 'com.google.gms:google-services:4.3.10'
// classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
}
}

Expand All @@ -31,7 +31,7 @@ allprojects {
url 'https://maven.aliyun.com/repository/google'
}
maven { url "https://jitpack.io" }
google()
// google()
}
}

Expand Down

0 comments on commit 1173f8a

Please sign in to comment.