Compare commits
11 Commits
apputils-v
...
appbase-v1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cf4155eab | ||
|
|
7ca144bfc4 | ||
|
|
73222d3272 | ||
|
|
b9c9eb926d | ||
|
|
35efcdddcd | ||
|
|
fc5ac32514 | ||
|
|
afa8a97dba | ||
|
|
fe004c7b82 | ||
|
|
b9582cb99d | ||
|
|
b3a69283ab | ||
|
|
36e10db8e3 |
@@ -29,7 +29,7 @@ android {
|
|||||||
// versionName 更新后需要手动设置
|
// versionName 更新后需要手动设置
|
||||||
// .winboll/winbollBuildProps.properties 文件的 stageCount=0
|
// .winboll/winbollBuildProps.properties 文件的 stageCount=0
|
||||||
// Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
|
// Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
|
||||||
versionName "1.0"
|
versionName "1.1"
|
||||||
if(true) {
|
if(true) {
|
||||||
versionName = genVersionName("${versionName}")
|
versionName = genVersionName("${versionName}")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Sun Jan 05 02:30:11 GMT 2025
|
#Thu Jan 23 14:42:39 HKT 2025
|
||||||
stageCount=0
|
stageCount=3
|
||||||
libraryProject=
|
libraryProject=libappbase
|
||||||
baseVersion=1.0
|
baseVersion=1.1
|
||||||
publishVersion=1.0.0
|
publishVersion=1.1.2
|
||||||
buildCount=2
|
buildCount=0
|
||||||
baseBetaVersion=1.0.1
|
baseBetaVersion=1.1.3
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Sun Jan 05 07:55:11 HKT 2025
|
#Thu Jan 23 14:42:39 HKT 2025
|
||||||
stageCount=17
|
stageCount=3
|
||||||
libraryProject=winboll-shared
|
libraryProject=libappbase
|
||||||
baseVersion=1.8
|
baseVersion=1.1
|
||||||
publishVersion=1.8.16
|
publishVersion=1.1.2
|
||||||
buildCount=0
|
buildCount=0
|
||||||
baseBetaVersion=1.8.17
|
baseBetaVersion=1.1.3
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import android.view.ViewGroup;
|
|||||||
import android.widget.HorizontalScrollView;
|
import android.widget.HorizontalScrollView;
|
||||||
import android.widget.ScrollView;
|
import android.widget.ScrollView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
import android.widget.Toast;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -194,6 +195,7 @@ public final class CrashHandler {
|
|||||||
case MENUITEM_COPY:
|
case MENUITEM_COPY:
|
||||||
ClipboardManager cm = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
|
ClipboardManager cm = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
|
||||||
cm.setPrimaryClip(ClipData.newPlainText(getPackageName(), mLog));
|
cm.setPrimaryClip(ClipData.newPlainText(getPackageName(), mLog));
|
||||||
|
Toast.makeText(getApplication(), "The text is copied.", Toast.LENGTH_SHORT).show();
|
||||||
break;
|
break;
|
||||||
case MENUITEM_RESTART:
|
case MENUITEM_RESTART:
|
||||||
restart();
|
restart();
|
||||||
|
|||||||
@@ -43,11 +43,22 @@ import java.util.Arrays;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
import android.content.pm.ApplicationInfo;
|
||||||
|
import android.content.res.AssetManager;
|
||||||
|
|
||||||
public class GlobalApplication extends Application {
|
public class GlobalApplication extends Application {
|
||||||
|
|
||||||
private static Handler MAIN_HANDLER = new Handler(Looper.getMainLooper());
|
private static Handler MAIN_HANDLER = new Handler(Looper.getMainLooper());
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Context getApplicationContext() {
|
||||||
|
return super.getApplicationContext();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Application getApplication() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
|||||||
Reference in New Issue
Block a user