Compare commits
	
		
			5 Commits
		
	
	
		
			fa09da4e56
			...
			apputils-v
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7679c9a0d9 | |||
| 
						 | 
					23eca69a3c | ||
| 1362d7a5cf | |||
| 
						 | 
					8963d2a5df | ||
| 
						 | 
					f2726ddc7a | 
							
								
								
									
										35
									
								
								apputils/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								apputils/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
				
			|||||||
 | 
					# APPUtils
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### 介绍
 | 
				
			||||||
 | 
					应用开发工具套件类
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### 软件架构
 | 
				
			||||||
 | 
					适配安卓应用 [AIDE Pro] 的 Gradle 编译结构。
 | 
				
			||||||
 | 
					也适配安卓应用 [AndroidIDE] 的 Gradle 编译结构。
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### Gradle 编译说明
 | 
				
			||||||
 | 
					调试版编译命令 :gradle assembleBetaDebug
 | 
				
			||||||
 | 
					阶段版编译命令 :git pull && bash .winboll/bashPublishAPKAddTag.sh apputils
 | 
				
			||||||
 | 
					阶段版类库发布命令 :git pull &&bash .winboll/bashPublishLIBAddTag.sh libapputils
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### 使用说明
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### 参与贡献
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1.  Fork 本仓库
 | 
				
			||||||
 | 
					2.  新建 Feat_xxx 分支
 | 
				
			||||||
 | 
					3.  提交代码 : ZhanGSKen(ZhanGSKen<zhangsken@188.com>)
 | 
				
			||||||
 | 
					4.  新建 Pull Request
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### 特技
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1.  使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
 | 
				
			||||||
 | 
					2.  Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
 | 
				
			||||||
 | 
					3.  你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
 | 
				
			||||||
 | 
					4.  [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
 | 
				
			||||||
 | 
					5.  Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
 | 
				
			||||||
 | 
					6.  Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### 参考文档
 | 
				
			||||||
@@ -29,7 +29,7 @@ android {
 | 
				
			|||||||
        // versionName 更新后需要手动设置 
 | 
					        // versionName 更新后需要手动设置 
 | 
				
			||||||
        // 项目模块目录的 build.gradle 文件的 stageCount=0
 | 
					        // 项目模块目录的 build.gradle 文件的 stageCount=0
 | 
				
			||||||
        // Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
 | 
					        // Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
 | 
				
			||||||
        versionName "15.9" 
 | 
					        versionName "15.10" 
 | 
				
			||||||
        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
 | 
				
			||||||
#Mon Sep 22 08:19:44 HKT 2025
 | 
					#Fri Sep 26 21:10:11 HKT 2025
 | 
				
			||||||
stageCount=1
 | 
					stageCount=1
 | 
				
			||||||
libraryProject=libapputils
 | 
					libraryProject=libapputils
 | 
				
			||||||
baseVersion=15.9
 | 
					baseVersion=15.10
 | 
				
			||||||
publishVersion=15.9.0
 | 
					publishVersion=15.10.0
 | 
				
			||||||
buildCount=0
 | 
					buildCount=0
 | 
				
			||||||
baseBetaVersion=15.9.1
 | 
					baseBetaVersion=15.10.1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,14 +14,14 @@
 | 
				
			|||||||
        android:theme="@style/MyUtilsTheme"
 | 
					        android:theme="@style/MyUtilsTheme"
 | 
				
			||||||
        android:supportsRtl="true"
 | 
					        android:supportsRtl="true"
 | 
				
			||||||
        android:resizeableActivity="true"
 | 
					        android:resizeableActivity="true"
 | 
				
			||||||
 | 
							android:screenOrientation="unspecified"
 | 
				
			||||||
		android:requestLegacyExternalStorage="true">
 | 
							android:requestLegacyExternalStorage="true">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <activity
 | 
					        <activity
 | 
				
			||||||
            android:name=".MainActivity"
 | 
					            android:name=".MainActivity"
 | 
				
			||||||
            android:label="@string/app_name"
 | 
					            android:label="@string/app_name"
 | 
				
			||||||
            android:launchMode="singleTask"
 | 
					            android:launchMode="singleTask"
 | 
				
			||||||
            android:exported="true"
 | 
					            android:exported="true">
 | 
				
			||||||
            android:resizeableActivity="true">
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <intent-filter>
 | 
					            <intent-filter>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,21 +27,21 @@ final public class MainActivity extends Activity {
 | 
				
			|||||||
    public static final int REQUEST_QRCODEDECODE_ACTIVITY = 0;
 | 
					    public static final int REQUEST_QRCODEDECODE_ACTIVITY = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Toolbar mToolbar;
 | 
					    Toolbar mToolbar;
 | 
				
			||||||
    LogView mLogView;
 | 
					    //LogView mLogView;
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//    @Override
 | 
					//    @Override
 | 
				
			||||||
//    public Activity getActivity() {
 | 
					//    public Activity getActivity() {
 | 
				
			||||||
//        return this;
 | 
					//        return this;
 | 
				
			||||||
//    }
 | 
					//    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    
 | 
					
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    protected void onCreate(Bundle savedInstanceState) {
 | 
					    protected void onCreate(Bundle savedInstanceState) {
 | 
				
			||||||
        super.onCreate(savedInstanceState);
 | 
					        super.onCreate(savedInstanceState);
 | 
				
			||||||
        setContentView(R.layout.activity_main);
 | 
					        setContentView(R.layout.activity_main);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mLogView = findViewById(R.id.logview);
 | 
					//        mLogView = findViewById(R.id.logview);
 | 
				
			||||||
        mLogView.start();
 | 
					//        mLogView.start();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // 初始化工具栏
 | 
					        // 初始化工具栏
 | 
				
			||||||
        mToolbar = findViewById(R.id.toolbar);
 | 
					        mToolbar = findViewById(R.id.toolbar);
 | 
				
			||||||
@@ -146,6 +146,20 @@ final public class MainActivity extends Activity {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public void onTestLogActivity(View view) {
 | 
					    public void onTestLogActivity(View view) {
 | 
				
			||||||
 | 
							/* 分屏代码有效
 | 
				
			||||||
 | 
							// 1. 创建启动 SecondActivity 的 Intent
 | 
				
			||||||
 | 
							Intent splitIntent = new Intent(MainActivity.this, LogActivity.class);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							// 2. 添加分屏启动必需的两个标志(API 30 兼容)
 | 
				
			||||||
 | 
							// FLAG_ACTIVITY_LAUNCH_ADJACENT:相邻分屏显示
 | 
				
			||||||
 | 
							// FLAG_ACTIVITY_NEW_TASK:分屏需要新任务栈
 | 
				
			||||||
 | 
							splitIntent.addFlags(Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT 
 | 
				
			||||||
 | 
												 | Intent.FLAG_ACTIVITY_NEW_TASK);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							// 3. 启动分屏活动(若设备不支持分屏,会默认全屏启动)
 | 
				
			||||||
 | 
							startActivity(splitIntent);
 | 
				
			||||||
 | 
							*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		LogActivity.startLogActivity(this);
 | 
							LogActivity.startLogActivity(this);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -262,7 +276,7 @@ final public class MainActivity extends Activity {
 | 
				
			|||||||
//        }
 | 
					//        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    
 | 
					
 | 
				
			||||||
    public void onTestAssetsHtmlActivity(View view) {
 | 
					    public void onTestAssetsHtmlActivity(View view) {
 | 
				
			||||||
        Intent intent = new Intent(this, AssetsHtmlActivity.class);
 | 
					        Intent intent = new Intent(this, AssetsHtmlActivity.class);
 | 
				
			||||||
        intent.putExtra(AssetsHtmlActivity.EXTRA_HTMLFILENAME, "javascript_test.html");
 | 
					        intent.putExtra(AssetsHtmlActivity.EXTRA_HTMLFILENAME, "javascript_test.html");
 | 
				
			||||||
@@ -275,7 +289,7 @@ final public class MainActivity extends Activity {
 | 
				
			|||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    protected void onResume() {
 | 
					    protected void onResume() {
 | 
				
			||||||
        super.onResume();
 | 
					        super.onResume();
 | 
				
			||||||
        mLogView.start();
 | 
					        //mLogView.start();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /*@Override
 | 
					    /*@Override
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -54,13 +54,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		</LinearLayout>
 | 
							</LinearLayout>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		<cc.winboll.studio.libappbase.LogView
 | 
					 | 
				
			||||||
			android:layout_width="match_parent"
 | 
					 | 
				
			||||||
			android:layout_height="0dp"
 | 
					 | 
				
			||||||
			android:text="Button"
 | 
					 | 
				
			||||||
			android:id="@+id/logview"
 | 
					 | 
				
			||||||
			android:layout_weight="1.0"/>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	</LinearLayout>
 | 
						</LinearLayout>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</LinearLayout>
 | 
					</LinearLayout>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,8 @@
 | 
				
			|||||||
#Created by .winboll/winboll_app_build.gradle
 | 
					#Created by .winboll/winboll_app_build.gradle
 | 
				
			||||||
#Mon Sep 22 08:17:49 HKT 2025
 | 
					#Fri Sep 26 21:10:11 HKT 2025
 | 
				
			||||||
stageCount=1
 | 
					stageCount=1
 | 
				
			||||||
libraryProject=libapputils
 | 
					libraryProject=libapputils
 | 
				
			||||||
baseVersion=15.9
 | 
					baseVersion=15.10
 | 
				
			||||||
publishVersion=15.9.0
 | 
					publishVersion=15.10.0
 | 
				
			||||||
buildCount=0
 | 
					buildCount=0
 | 
				
			||||||
baseBetaVersion=15.9.1
 | 
					baseBetaVersion=15.10.1
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user