From d4ae6d1c6669ce103f9a244a7cc0864f6e26123b Mon Sep 17 00:00:00 2001
From: omar <3075405319@qq.com>
Date: Fri, 28 Oct 2022 17:09:48 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5baidujar?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/MyApplication/.idea/gradle.xml | 1 +
src/MyApplication/app/build.gradle | 6 ++++
.../app/src/main/AndroidManifest.xml | 21 +++++++++++-
src/MyApplication/build.gradle | 34 +++++++++++++++++--
4 files changed, 59 insertions(+), 3 deletions(-)
diff --git a/src/MyApplication/.idea/gradle.xml b/src/MyApplication/.idea/gradle.xml
index 6cec569..a2d7c21 100644
--- a/src/MyApplication/.idea/gradle.xml
+++ b/src/MyApplication/.idea/gradle.xml
@@ -10,6 +10,7 @@
diff --git a/src/MyApplication/app/build.gradle b/src/MyApplication/app/build.gradle
index e40f965..234d4f5 100644
--- a/src/MyApplication/app/build.gradle
+++ b/src/MyApplication/app/build.gradle
@@ -33,6 +33,12 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
+ implementation files('libs\\BaiduLBS_Android.jar')
+ implementation files('libs\\BaiduLBS_Android.jar')
+ implementation files('libs\\BaiduLBS_Android.jar')
+ implementation files('libs\\BaiduLBS_Android.jar')
+ implementation files('libs\\BaiduLBS_Android.jar')
+ implementation files('libs\\BaiduLBS_Android.jar')
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
diff --git a/src/MyApplication/app/src/main/AndroidManifest.xml b/src/MyApplication/app/src/main/AndroidManifest.xml
index 0bdc755..2176ae7 100644
--- a/src/MyApplication/app/src/main/AndroidManifest.xml
+++ b/src/MyApplication/app/src/main/AndroidManifest.xml
@@ -53,6 +53,25 @@
android:name="android.app.lib_name"
android:value="" />
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/MyApplication/build.gradle b/src/MyApplication/build.gradle
index 90f9008..d87351c 100644
--- a/src/MyApplication/build.gradle
+++ b/src/MyApplication/build.gradle
@@ -1,5 +1,35 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
+android{
plugins {
- id 'com.android.application' version '7.3.0' apply false
- id 'com.android.library' version '7.3.0' apply false
+ id 'com.android.application' version '7.3.0' apply true
+ id 'com.android.library' version '7.3.0' apply true
+}
+sourceSets{
+ main{
+ jniLibs.srcDir 'libs'
+ jni.srcDirs = [] //disable automatic ndk-build
+ }
+}
+buildTypes {
+ release {
+ minifyEnabled true
+ shrinkResources true
+ proguardFiles getDefaultProguardFile(
+ 'proguard-android-optimize.txt'),
+ 'proguard-rules.pro'
+ }
+}
+sourceSets{
+ main{
+ jniLibs.srcDirs=['libs']
+ }
+}
+dependencies {
+ compile fileTree(dir: 'libs' , include: ['*.jar'])
+ androidTestCompile ('com.android.support.test.espresso: espresso-core: 2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ })
+ compile 'com.android.support: appcompat-v7:25.1.0'
+ testCompile 'junit: junit: 4.12'
+}
}
\ No newline at end of file