Commit d300700a authored by Steven杜宇's avatar Steven杜宇

// bugly

parent 48bce148
......@@ -20,8 +20,8 @@ platform :ios do
release_bugly_app_key = "ce23936f-3625-4452-92d9-31551858ae02"
# 上传符号表相对路径
adhoc_symbol_path = "./App/ad-hoc/galaxy.app.dSYM.zip"
release_symbol_path = "./App/Release/galaxy.app.dSYM.zip"
adhoc_symbol_path = "./App/ad-hoc/galaxy.app.dSYM"
release_symbol_path = "./App/Release/galaxy.app.dSYM"
#可以用来打包的分支
develop_branch = "develop"
......@@ -43,6 +43,10 @@ platform :ios do
# 更新pod第三方库
cocoapods(use_bundle_exec: true)
# 先清空打包路径下的文件
sh "pwd"
sh "rm -rf ../App/ad-hoc/*"
gym(
workspace: 'galaxy.xcworkspace',
# 每次打包之前clean一下
......@@ -75,6 +79,7 @@ platform :ios do
# mac上的通知弹窗,通知打包完毕
notification(app_icon: "", title: "manager", subtitle: "打包成功,已导出安装包", message: "准备发布到蒲公英中……")
#配置上传蒲公英账号 蒲公英的 api_key
pgyer(
......@@ -93,6 +98,9 @@ platform :ios do
adhoc_build_number = get_build_number_from_xcodeproj(scheme: "galaxyForTestArchive", xcodeproj: "./galaxy.xcodeproj")
adhoc_version_key = "#{adhoc_version}.#{adhoc_build_number}"
# 解压.dSYM.zip
sh "unzip -o ../App/ad-hoc/galaxy.app.dSYM.zip -d ../App/ad-hoc"
upload_to_bugly(
appid: adhoc_bugly_app_id,
appkey: adhoc_bugly_app_key,
......@@ -117,6 +125,10 @@ platform :ios do
sh "git rev-parse HEAD"
# 更新pod第三方库
cocoapods(use_bundle_exec: true)
# 先清空打包路径下的文件
sh "pwd"
sh "rm -rf ../App/Release/*"
gym(
workspace: 'galaxy.xcworkspace',
......@@ -164,6 +176,9 @@ platform :ios do
release_build_number = get_build_number_from_xcodeproj(scheme: "galaxy", xcodeproj: "./galaxy.xcodeproj")
release_version_key = "#{release_version}.#{release_build_number}"
# 解压.dSYM.zip
sh "unzip -o ../App/Release/galaxy.app.dSYM.zip -d ../App/Release"
upload_to_bugly(
appid: release_bugly_app_id,
appkey: release_bugly_app_key,
......
......@@ -270,6 +270,19 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
#if DEBUG
YHHUD.flash(message: "DEBUG", duration: 2.0)
#elseif TESTENV
YHHUD.flash(message: "TESTNEV", duration: 2.0)
#elseif UATENV
YHHUD.flash(message: "UATENV", duration: 2.0)
#else
YHHUD.flash(message: "RELEASE", duration: 2.0)
#endif
if 0 <= indexPath.row && indexPath.row < items.count {
let item = items[indexPath.row]
......
......@@ -275,14 +275,6 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if (indexPath.row >= items.count) { return }
#if DEBUG
YHHUD.flash(message: "DEBUG", duration: 2.0)
#elseif TESTNEV
YHHUD.flash(message: "TESTNEV", duration: 2.0)
#else
YHHUD.flash(message: "RELEASE", duration: 2.0)
#endif
if !checkLogin() {
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment