EsignSDK.aar导入

This commit is contained in:
lijia 2024-03-12 16:59:49 +08:00
parent 124943cb75
commit d557f6d4c7
8 changed files with 24 additions and 6 deletions

View File

@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="Kotlin2JvmCompilerArguments">
<option name="jvmTarget" value="1.8" />
</component>
<component name="KotlinCommonCompilerArguments">
<option name="apiVersion" value="1.9" />
<option name="languageVersion" value="1.9" />
</component>
<component name="KotlinJpsPluginSettings"> <component name="KotlinJpsPluginSettings">
<option name="version" value="1.9.22" /> <option name="version" value="1.9.22" />
</component> </component>

View File

@ -6,7 +6,7 @@ def releaseTime() {
return new Date().format("yyyyMMddHHmm", TimeZone.getTimeZone("GMT+08:00")) return new Date().format("yyyyMMddHHmm", TimeZone.getTimeZone("GMT+08:00"))
} }
android { android {
namespace 'com.dahe.gldriver'
signingConfigs { signingConfigs {
config { config {
keyAlias 'key0' keyAlias 'key0'
@ -48,6 +48,7 @@ android {
signingConfig signingConfigs.config signingConfig signingConfigs.config
} }
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_11 sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11
@ -142,4 +143,8 @@ dependencies {
// //
// implementation 'com.amap.api:location:6.4.2'//6.4.2 // implementation 'com.amap.api:location:6.4.2'//6.4.2
implementation 'com.amap.api:search:9.7.0' implementation 'com.amap.api:search:9.7.0'
//
implementation files('libs/EsignSDK.aar')
// implementation(name: 'EsignSDK', ext: 'aar')
} }

BIN
app/libs/EsignSDK.aar Normal file

Binary file not shown.

View File

@ -3,13 +3,12 @@ package com.dahe.gldriver.base
import android.app.Application import android.app.Application
import android.content.Context import android.content.Context
import com.dahe.gldriver.BuildConfig import com.dahe.gldriver.BuildConfig
import com.dahe.gldriver.base.App
import com.dahe.mylibrary.CommonBaseLibrary
import com.dahe.gldriver.net.Api import com.dahe.gldriver.net.Api
import com.dahe.gldriver.oss.OssServiceUtil import com.dahe.gldriver.oss.OssServiceUtil
import com.dahe.mylibrary.CommonBaseLibrary
import com.esign.esignsdk.EsignSdk
import com.github.gzuliyujiang.dialog.DialogConfig import com.github.gzuliyujiang.dialog.DialogConfig
import com.github.gzuliyujiang.dialog.DialogStyle import com.github.gzuliyujiang.dialog.DialogStyle
import java.lang.Exception
import java.security.SecureRandom import java.security.SecureRandom
import java.security.cert.X509Certificate import java.security.cert.X509Certificate
import javax.net.ssl.HttpsURLConnection import javax.net.ssl.HttpsURLConnection
@ -35,6 +34,9 @@ class App : Application() {
OssServiceUtil.getInstance().init(); OssServiceUtil.getInstance().init();
EsignSdk.getInstance().init(AppConfig.E_KEY, AppConfig.E_LICENSE)
// PendingIntent pendingIntent = // PendingIntent pendingIntent =
// PendingIntent.getActivity(this, 0, new Intent(this, HomeActivity.class), PendingIntent.FLAG_UPDATE_CURRENT); // PendingIntent.getActivity(this, 0, new Intent(this, HomeActivity.class), PendingIntent.FLAG_UPDATE_CURRENT);
// Cactus.getInstance() // Cactus.getInstance()

View File

@ -19,5 +19,7 @@ object AppConfig {
const val CODE = "DA_HE_PHONE" const val CODE = "DA_HE_PHONE"
const val REFRSH = "DA_HE_REFRSH" const val REFRSH = "DA_HE_REFRSH"
const val SUCCESS_TYPE = "DA_HE_SUCCESS_TYPE" const val SUCCESS_TYPE = "DA_HE_SUCCESS_TYPE"
const val E_KEY = "19ac0aa74338e487e45057faf7212401"
const val E_LICENSE = "HF41uGxM/1i3CtW98DimoA97BlNTAnQ+DiEAihYmZ2jR1jqC4be253joEJbOJgFDIzp5aIoeuXSWWHFaDVfaHL2Pksbq5f8M8EqsVhP9q/i1xGYSYf6MJVlHdMAVLWgR0Kra+n8dVzkSDuZeyJuDsskAmZaGFQN1CqnWYCI1tmV1Tk4A57e9LQMed0U11QWjdshdU2DGqBXKmGE419PdW3NmIxOR2u9iB1OKBmvzCUT8RAYyBzSn/yhU++YJ25g5a8Pb5kOvi+eOh+PEFEcQL6oOp/CF4Iw5nadlsLhc+XEnVJpwL2myZBoSlVcKxrJKbRn1/DIgXBueKKnqhyHKdJlpqI9eghAlRF0p2Q4f23m89mWRZf4nhKzTeXGIjCTFO4TNVucrlGU7tyJcrRCDVdfV24fziH+hB3QGckpuYzzjefr7hZalLRJ/w8dPw/8dCY1wnWq3AJ3zw2g1PzMxl51q7AgdKvwc1ERcGBns0zb8PK6vGKCnJq3uHiJEnslbTI0MEosje+h+OPO7hf2QofErewjI19wHEOv4dTvuFLh3VmGFMObAmov5kI47705fjSxCvAPGATBrfUSwim+5EQ1hanc5IcXe0/nOTiRUNEpZ+x65zVydqAs7490yqQiIUQvPazEwcal7vH2OD54lCcgpxKxqdmGc5/bp5UnqB45+n+iuInV/Q9DMOQVk15uaVZmhS8VaCqH21CmfH/ZGLb9wiEpaRLrPZLKX3bK7MT9Z0/OlDnb2QUKU8LMMIhLuQQntzsf0Wn4kA/0e9QAJJQ=="
} }

View File

@ -20,6 +20,7 @@
</com.scwang.smart.refresh.layout.SmartRefreshLayout> </com.scwang.smart.refresh.layout.SmartRefreshLayout>
<LinearLayout <LinearLayout
android:visibility="gone"
android:id="@+id/llOk" android:id="@+id/llOk"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/dp_70" android:layout_height="@dimen/dp_70"

View File

@ -32,7 +32,7 @@ project.ext {
buildToolsVersion: "33", buildToolsVersion: "33",
applicationId : "com.dahe.gldriver", applicationId : "com.dahe.gldriver",
minSdkVersion : 24, minSdkVersion : 24,
targetSdkVersion : 32, targetSdkVersion : 30,
versionCode : 1, versionCode : 1,
versionName : "1.0.5", versionName : "1.0.5",
] ]

View File

@ -1,6 +1,7 @@
plugins { plugins {
id 'com.android.library' id 'com.android.library'
id 'kotlin-android' id 'org.jetbrains.kotlin.android'
// id 'kotlin-android'
// id 'com.jakewharton.butterknife' // id 'com.jakewharton.butterknife'
} }