应用介绍添加 Gitea 拥有者属性
This commit is contained in:
		| @@ -1,8 +1,8 @@ | ||||
| #Created by .winboll/winboll_app_build.gradle | ||||
| #Thu Jan 23 03:47:33 HKT 2025 | ||||
| #Wed Jan 22 20:03:52 GMT 2025 | ||||
| stageCount=13 | ||||
| libraryProject=libapputils | ||||
| baseVersion=9.2 | ||||
| publishVersion=9.2.12 | ||||
| buildCount=0 | ||||
| buildCount=3 | ||||
| baseBetaVersion=9.2.13 | ||||
|   | ||||
| @@ -174,6 +174,7 @@ final public class MainActivity extends WinBollActivity { | ||||
|         appInfo.setAppIcon(cc.winboll.studio.libapputils.R.drawable.ic_winboll); | ||||
|         appInfo.setAppDescription("APPUtils Description"); | ||||
|         appInfo.setAppGitName("APP"); | ||||
|         appInfo.setAppGitOwner("Studio"); | ||||
|         appInfo.setAppGitAPPBranch("apputils"); | ||||
|         appInfo.setAppGitAPPSubProjectFolder("apputils"); | ||||
|         appInfo.setAppHomePage("https://www.winboll.cc/studio/details.php?app=APP"); | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| #Created by .winboll/winboll_app_build.gradle | ||||
| #Thu Jan 23 03:47:26 HKT 2025 | ||||
| #Wed Jan 22 20:03:52 GMT 2025 | ||||
| stageCount=13 | ||||
| libraryProject=libapputils | ||||
| baseVersion=9.2 | ||||
| publishVersion=9.2.12 | ||||
| buildCount=0 | ||||
| buildCount=3 | ||||
| baseBetaVersion=9.2.13 | ||||
|   | ||||
| @@ -20,6 +20,8 @@ public class APPInfo implements Serializable { | ||||
|     String appDescription; | ||||
|     // 应用Git仓库地址 | ||||
|     String appGitName; | ||||
|     // 应用Git仓库拥有者 | ||||
|     String appGitOwner; | ||||
|     // 应用Git仓库分支 | ||||
|     String appGitAPPBranch; | ||||
|     // 应用Git仓库子项目文件夹 | ||||
| @@ -31,11 +33,12 @@ public class APPInfo implements Serializable { | ||||
|     // 应用包存储文件夹名称 | ||||
|     String appAPKFolderName; | ||||
|  | ||||
|     public APPInfo(String appName, int appIcon, String appDescription, String appGitName, String appGitAPPBranch, String appGitAPPSubProjectFolder, String appHomePage, String appAPKName, String appAPKFolderName) { | ||||
|     public APPInfo(String appName, int appIcon, String appDescription, String appGitName, String appGitOwner, String appGitAPPBranch, String appGitAPPSubProjectFolder, String appHomePage, String appAPKName, String appAPKFolderName) { | ||||
|         this.appName = appName; | ||||
|         this.appIcon = appIcon; | ||||
|         this.appDescription = appDescription; | ||||
|         this.appGitName = appGitName; | ||||
|         this.appGitOwner = appGitOwner; | ||||
|         this.appGitAPPBranch = appGitAPPBranch; | ||||
|         this.appGitAPPSubProjectFolder = appGitAPPSubProjectFolder; | ||||
|         this.appHomePage = appHomePage; | ||||
| @@ -48,6 +51,7 @@ public class APPInfo implements Serializable { | ||||
|         this.appIcon = R.drawable.ic_launcher; | ||||
|         this.appDescription = "WinBoll APP"; | ||||
|         this.appGitName = "APP"; | ||||
|         this.appGitOwner = "Studio"; | ||||
|         this.appGitAPPBranch = "app"; | ||||
|         this.appGitAPPSubProjectFolder = "app"; | ||||
|         this.appHomePage = "https://www.winboll.cc/studio/details.php?app=APP"; | ||||
| @@ -55,6 +59,14 @@ public class APPInfo implements Serializable { | ||||
|         this.appAPKFolderName = "APP"; | ||||
|     } | ||||
|  | ||||
|     public void setAppGitOwner(String appGitOwner) { | ||||
|         this.appGitOwner = appGitOwner; | ||||
|     } | ||||
|  | ||||
|     public String getAppGitOwner() { | ||||
|         return appGitOwner; | ||||
|     } | ||||
|  | ||||
|     public void setAppGitAPPBranch(String appGitAPPBranch) { | ||||
|         this.appGitAPPBranch = appGitAPPBranch; | ||||
|     } | ||||
|   | ||||
| @@ -88,6 +88,7 @@ public class AboutView extends LinearLayout { | ||||
|         appInfo.setAppAPKFolderName(typedArray.getString(R.styleable.AboutView_app_apkfoldername)); | ||||
|         appInfo.setAppAPKName(typedArray.getString(R.styleable.AboutView_app_apkname)); | ||||
|         appInfo.setAppGitName(typedArray.getString(R.styleable.AboutView_app_gitname)); | ||||
|         appInfo.setAppGitOwner(typedArray.getString(R.styleable.AboutView_app_gitowner)); | ||||
|         appInfo.setAppGitAPPBranch(typedArray.getString(R.styleable.AboutView_app_gitappbranch)); | ||||
|         appInfo.setAppGitAPPSubProjectFolder(typedArray.getString(R.styleable.AboutView_app_gitappsubprojectfolder)); | ||||
|         appInfo.setAppDescription(typedArray.getString(R.styleable.AboutView_appdescription)); | ||||
| @@ -114,7 +115,7 @@ public class AboutView extends LinearLayout { | ||||
|         } | ||||
|         mszCurrentAppPackageName = mszAppAPKName + "_" + mszAppVersionName + ".apk"; | ||||
|         mszHomePage = mszWinBollServerHost + "/studio/details.php?app=" + mszAppAPKFolderName; | ||||
|         mszGitea = "https://gitea.winboll.cc/Studio/" + mszAppGitName + "/src/branch/" + mAPPInfo.getAppGitAPPBranch() + "/" + mAPPInfo.getAppGitAPPSubProjectFolder(); | ||||
|         mszGitea = "https://gitea.winboll.cc/" + mAPPInfo.getAppGitOwner() + "/" + mszAppGitName + "/src/branch/" + mAPPInfo.getAppGitAPPBranch() + "/" + mAPPInfo.getAppGitAPPSubProjectFolder(); | ||||
|  | ||||
|         if (WinBollGlobalApplication.isDebug()) { | ||||
|             LayoutInflater inflater = LayoutInflater.from(mContext); | ||||
|   | ||||
| @@ -5,6 +5,7 @@ | ||||
|         <attr name="app_apkfoldername" format="string" /> | ||||
|         <attr name="app_apkname" format="string" /> | ||||
|         <attr name="app_gitname" format="string" /> | ||||
|         <attr name="app_gitowner" format="string" /> | ||||
|         <attr name="app_gitappbranch" format="string" /> | ||||
|         <attr name="app_gitappsubprojectfolder" format="string" /> | ||||
|         <attr name="appdescription" format="string" /> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ZhanGSKen
					ZhanGSKen