|
3 달 전 | |
---|---|---|
.idea | 3 달 전 | |
app | 3 달 전 | |
gradle/wrapper | 3 년 전 | |
.gitignore | 3 년 전 | |
README.md | 3 달 전 | |
app-keystore.jks | 3 달 전 | |
build.gradle | 3 년 전 | |
gradle.properties | 3 달 전 | |
gradlew | 3 달 전 | |
gradlew.bat | 3 달 전 | |
settings.gradle | 3 년 전 | |
sh.exe.stackdump | 3 년 전 | |
安装-发布包.bat | 3 달 전 | |
安装-调试包.bat | 3 달 전 | |
打包-debug.bat | 3 달 전 | |
打包-正式.bat | 3 달 전 | |
生成keystore.bat | 3 달 전 |
首页地址列表
名称 | 地址(实际需自行添加协议,地址,端口) | 图标 | 圆角图标 |
---|---|---|---|
事项审批 | /yinnongLogin | ic_launcher_sxsp 或者 ic_launcher_yhzl | ic_launcher_sxsp_round 或者 ic_launcher_yhzl_round |
阳光村务(村级事项) | /sunVillage_info/login | ic_launcher_ygcw | ic_launcher_ygcw_round |
大托管 | /agriculturalTrusteeship/index | ic_launcher_dtg | ic_launcher_dtg_round |
产权交易 | /index | ic_launcher_cqjy | ic_launcher_cqjy_round |
农业执法 | /lawEnforcement/login | ic_launcher_nyzf | ic_launcher_nyzf_round |
宅基地审批(乌市版) | /zjdLogin | ic_launcher_zjd | ic_launcher_zjd_round |
宅基地调查 | /homesteadLogin | ic_launcher_zjddc | ic_launcher_zjddc_round |
两清三化 | /homestead/login | ic_launcher_2q3h | ic_launcher_2q3h_round |
网上家园(废) | /onlineHomeLogin | ic_launcher_white | ic_launcher_white_round |
确权调查 | /contracted/login | ic_launcher_qqdc | ic_launcher_qqdc_round |
一体机 | / | ic_launcher_njytj | ic_launcher_njytj_round |
使用
Android Studio
修改步骤
gradle.properties
文件appHomeUrl=
首页地址, 不要加双引号appName=
App桌面快捷方式名称, 可以直接使用字符串(需要加双引号, 如 “NSGK APP”), 也可以使用国际化字符串配置(不要加双引号, 如 @string/app_name)appIconKey=
图标名称, 不要加双引号, 去掉前后缀(如 yhzl, 图标为ic_launcher_yhzl; 圆角图标为ic_launcher_yhzl_round)appCopyright=
启动页版权文本, 不要加双引号appVendor=
启动页厂商名称, 不要加双引号/app/release/app-release.apk
使用
gradle
脚本打签名的正式包
gradlew assembleRelease
将使用gradle.properties
文件里的配置进行打包gradle.properties
文件), 执行 gradlew assembleRelease -PappHomeUrl="首页地址" -PappName="App桌面快捷方式名称(只能使用字符串)" -PappIconKey="图标名称" -PappIconKey="启动页版权文本" -PappCopyright="启动页厂商名称"
将使用命令行里的配置进行打包/app/build/outputs/apk/release/app-release.apk
帮助脚本
打包-正式.bat
: 构建正式包(直接执行将使用gradle.properties
文件里的配置进行打包, 完整命令行用法为 .\打包-正式.bat App主页链接地址 App名称 App图标 App启动页版权文本 App启动页厂商名称
, 此时会使用命令行里的配置进行打包. 生成的路径为/app/build/outputs/apk/release/app-release.apk
)打包-debug.bat
: 构建Debug包(生成的路径为/app/build/outputs/apk/debug/app-debug.apk
)安装-发布包.bat
: 将已打好的Release包安装至手机(手机需连接到电脑, 并且启用开发者模式)安装-调试包.bat
: 将已打好的Debug包安装至手机(手机需连接到电脑, 并且启用开发者模式)签名证书(安装签名的发布包需要先卸载已安装的debug包)
/app-keystore.jks
ns61GK32x%
nsgk_rural_web
ns61GK32x%