设置beta版与stage版不同的调试入口。

This commit is contained in:
ZhanGSKen
2025-11-20 11:24:24 +08:00
parent 230038f6f3
commit bb98d6bb1b
9 changed files with 37 additions and 46 deletions

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Wed Nov 19 13:23:38 GMT 2025
#Thu Nov 20 03:22:58 GMT 2025
stageCount=4
libraryProject=
baseVersion=15.11
publishVersion=15.11.3
buildCount=19
buildCount=34
baseBetaVersion=15.11.4

View File

@@ -6,6 +6,19 @@
tools:replace="android:icon"
android:icon="@drawable/ic_launcher_beta">
<activity
android:name="cc.winboll.studio.powerbell.MainActivity"
android:launchMode="singleTask"
android:exported="true">
</activity>
<activity android:name="cc.winboll.studio.powerbell.unittest.MainUnitTestActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="cc.winboll.studio.powerbell.beta.fileprovider"

View File

@@ -66,21 +66,6 @@
android:usesCleartextTraffic="true"
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name=".MainActivity"
android:launchMode="singleTask"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name="cc.winboll.studio.powerbell.activities.ClearRecordActivity"
android:parentActivityName="cc.winboll.studio.powerbell.MainActivity"
@@ -153,8 +138,6 @@
<activity android:name="cc.winboll.studio.powerbell.activities.BatteryReportActivity"/>
<activity android:name="cc.winboll.studio.powerbell.unittest.MainUnitTestActivity"
android:exported="true"/>
</application>

View File

@@ -4,6 +4,7 @@ import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import cc.winboll.studio.libappbase.ToastUtils;
import cc.winboll.studio.powerbell.R;
@@ -12,7 +13,7 @@ import cc.winboll.studio.powerbell.R;
* @Date 2025/11/19 18:16
* @Describe BackgroundViewTestFragment
*/
public class BackgroundViewTestFragment extends BaseTestFragment {
public class BackgroundViewTestFragment extends Fragment {
public static final String TAG = "BackgroundViewTestFragment";

View File

@@ -21,13 +21,14 @@ public class BaseTestFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
// 非调试状态就结束本线程
if (!GlobalApplication.isDebugging()) {
Thread.currentThread().destroy();
}
ToastUtils.show(String.format("%s onCreate", TAG));
return super.onCreateView(inflater, container, savedInstanceState);
return null;
}
}

View File

@@ -43,8 +43,8 @@ public class BackgroundView extends LinearLayout {
}
void initView() {
this.mMianView = inflate(this.mContext, R.layout.view_background, this);
//addView(this.mMianView);
this.mMianView = inflate(this.mContext, R.layout.view_background, null);
addView(this.mMianView);
}
}

View File

@@ -4,24 +4,9 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="#FFA08DF4">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BackgroundViewTestFragment"/>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0">
<cc.winboll.studio.powerbell.views.BackgroundView
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
</LinearLayout>

View File

@@ -8,10 +8,5 @@
android:background="#FF7DE0D7"
android:id="@+id/viewbackground_container">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="This is BackgroundView"/>
</LinearLayout>

View File

@@ -4,6 +4,19 @@
<application>
<activity
android:name="cc.winboll.studio.powerbell.MainActivity"
android:launchMode="singleTask"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:name="cc.winboll.studio.powerbell.unittest.MainUnitTestActivity"
android:exported="true">
</activity>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="cc.winboll.studio.powerbell.fileprovider"