运营端打包

This commit is contained in:
lijia 2024-12-13 09:48:41 +08:00
parent 5d08b77cc5
commit 3a23d2e26c
3 changed files with 29 additions and 14 deletions

View File

@ -127,6 +127,21 @@ android {
//APP名称androidMainfest中引用
resValue "string", "appName", "大河好运司机"
}
productbc {
applicationId "com.arpa.hndahesudintocctmsdriver.bc"
manifestPlaceholders = [CHANNEL_VALUE: "大河好运司机",
app_icon : "@drawable/diver_logo",
GAODEKEY : "f960bc6d14788238918bd014fa08a870",
JPUSH_PKGNAME: applicationId,
JPUSH_APPKEY : "fba6f55621c670d8c1fe9191", //JPush Appkey.
JPUSH_CHANNEL: "developer-default"//.
]
buildConfigField("String", "OPEN_AL_URL", "\"https://oapi.alct56.com\"")
buildConfigField("String", "BASE_URL", "\"http://app.dahehuoyun.com/api/\"")
buildConfigField "boolean", "isTest", "false"
//APP名称androidMainfest中引用
resValue "string", "appName", "大河好运司机"
}
}
// productFlavors.all { flavor ->

View File

@ -51,11 +51,11 @@
android:required="true" />
<uses-permission android:name="android.permission.NFC" />
<application
android:name="com.arpa.hndahesudintocctmsdriver.App"
android:name=".App"
android:allowBackup="true"
android:excludeFromRecents="true"
android:icon="@mipmap/diver_logo"
android:label="@string/appName"
android:label="运营端"
android:largeHeap="true"
android:requestLegacyExternalStorage="true"
android:supportsRtl="true"

View File

@ -69,18 +69,18 @@ public class TrackService extends Service {
con = this;
hyr = new HuoYuanRequset(con, hd);
Log.e("开始循环上传等待100ms", "-----");
new Timer().schedule(new TimerTask() {
@Override
public void run() {
snn = SPUtil.getSP(con, "order", "ShippingNoteNumber");
if (!snn.equals("")) {
l = new LocationGDUtil(con, hd);
l.onCreate();
} else {
onDestroy();
}
}
}, 100, timeSum);
// new Timer().schedule(new TimerTask() {
// @Override
// public void run() {
// snn = SPUtil.getSP(con, "order", "ShippingNoteNumber");
// if (!snn.equals("")) {
// l = new LocationGDUtil(con, hd);
// l.onCreate();
// } else {
// onDestroy();
// }
// }
// }, 100, timeSum);
}
//开始