| | |
| | | applicationId "com.jxonlinecar.driver" |
| | | minSdkVersion 26 |
| | | targetSdkVersion 30 |
| | | versionCode 1 |
| | | versionName "1.0" |
| | | versionCode 2 |
| | | versionName "1.1" |
| | | multiDexEnabled true |
| | | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| | | } |
| | |
| | | applicationVariants.all { variant -> |
| | | // 更新至Android Studio 3.3 gradle 4.10.1 |
| | | variant.outputs.all { |
| | | outputFileName = "jxonlinecar-${defaultConfig.versionName}-${new Date().format("yyyy-MM-dd" , TimeZone.getTimeZone("GMT+08")) }.apk" |
| | | outputFileName = "jxonlinecar-${defaultConfig.versionName}-${variant.name}-${new Date().format("yyyy-MM-dd" , TimeZone.getTimeZone("GMT+08")) }.apk" |
| | | } |
| | | } |
| | | } |
| | |
| | | import com.amap.api.location.AMapLocationListener |
| | | import com.amap.api.maps.MapsInitializer |
| | | import com.google.gson.Gson |
| | | import com.jxonlinecar.driver.BuildConfig |
| | | import com.jxonlinecar.driver.base.gaode.AMapKit |
| | | import com.jxonlinecar.driver.base.gaode.gpsnav.util.TTSController |
| | | import com.jxonlinecar.driver.bean.* |
| | |
| | | import com.jxonlinecar.driver.utils.Cache.CacheUtil |
| | | import com.jxonlinecar.driver.utils.LogUtils |
| | | import com.jxonlinecar.driver.utils.SPUtil |
| | | import com.tencent.bugly.crashreport.CrashReport |
| | | import com.umeng.commonsdk.UMConfigure |
| | | import com.umeng.socialize.PlatformConfig |
| | | import com.xuexiang.xui.XUI |
| | |
| | | PlatformConfig.setWeixin("wxd997f17beb1dd7a4", "a403388bafbfceb639e0a451e5403a12") |
| | | PlatformConfig.setQQZone("1105920536", "bx7zWrVgTskXHZTr") //qq互联 |
| | | LogUtils.OpenLog(true) |
| | | // CrashReport.initCrashReport(getApplicationContext(), "444bb776ed", false); |
| | | CrashReport.initCrashReport( |
| | | applicationContext, |
| | | if (BuildConfig.DEBUG) "cc3a0708c6" else "aac9e8444c", |
| | | false |
| | | ) |
| | | } |
| | | |
| | | private fun initSocket() { |
| | |
| | | callStatue(6,{ |
| | | startActivity<MajorSureMoneyActivity>( |
| | | "orderId" to orderId, |
| | | "orderType" to orderType |
| | | "orderType" to orderType, |
| | | "needJumpOverPage" to false |
| | | ) |
| | | finish() |
| | | }) { |
| | |
| | | callStatue(6,{ |
| | | callNet(Api.confirmFees, map) { |
| | | finish() |
| | | startActivity<OrderOverActivity>( |
| | | "orderId" to orderId, |
| | | "orderType" to orderType |
| | | ) |
| | | // startActivity<OrderOverActivity>( |
| | | // "orderId" to orderId, |
| | | // "orderType" to orderType |
| | | // ) |
| | | } |
| | | }) { |
| | | |
| | |
| | | intent.getStringExtra("orderId") |
| | | } |
| | | |
| | | private val needJumpOverPage by lazy { |
| | | intent.getBooleanExtra("needJumpOverPage", true) |
| | | } |
| | | |
| | | override fun setContentView() { |
| | | setContentView(R.layout.activity_sure_money) |
| | | } |
| | |
| | | callNet(false, Api.confirmFees, map) { |
| | | EventBus.getDefault().post(BaseEvent(BaseEvent.BACK_CAR_OVER)) |
| | | finish() |
| | | startActivity<OrderOverActivity>( |
| | | "orderId" to orderId, |
| | | "orderType" to orderType, |
| | | "isTrip" to true |
| | | ) |
| | | if(needJumpOverPage){ |
| | | startActivity<OrderOverActivity>( |
| | | "orderId" to orderId, |
| | | "orderType" to orderType, |
| | | "isTrip" to true |
| | | ) |
| | | } |
| | | } |
| | | } |
| | | |