diff --git a/.gitignore b/.gitignore
index d567e24f6c21e88e05b701d20caca2946dea352d..73549225c2d1906ce3ed4b7109381235133d771d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,4 +17,5 @@ TestLib
android-serialport-api
keystore
jni_build
-wiki.txt
\ No newline at end of file
+wiki.txt
+/.idea/
diff --git a/.idea/.name b/.idea/.name
deleted file mode 100644
index d4a90d8cda32cc3b784bac0e1c1a7fe910a6bfa9..0000000000000000000000000000000000000000
--- a/.idea/.name
+++ /dev/null
@@ -1 +0,0 @@
-ZTLLib
\ No newline at end of file
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
deleted file mode 100644
index 681f41ae2aee4749eb4ddda94f8c6a76c825c825..0000000000000000000000000000000000000000
--- a/.idea/codeStyles/Project.xml
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- xmlns:android
-
- ^$
-
-
-
-
-
-
-
-
- xmlns:.*
-
- ^$
-
-
- BY_NAME
-
-
-
-
-
-
- .*:id
-
- http://schemas.android.com/apk/res/android
-
-
-
-
-
-
-
-
- .*:name
-
- http://schemas.android.com/apk/res/android
-
-
-
-
-
-
-
-
- name
-
- ^$
-
-
-
-
-
-
-
-
- style
-
- ^$
-
-
-
-
-
-
-
-
- .*
-
- ^$
-
-
- BY_NAME
-
-
-
-
-
-
- .*
-
- http://schemas.android.com/apk/res/android
-
-
- ANDROID_ATTRIBUTE_ORDER
-
-
-
-
-
-
- .*
-
- .*
-
-
- BY_NAME
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
deleted file mode 100644
index e17962ef5077985a4834b7d3f76130fb22f9842d..0000000000000000000000000000000000000000
--- a/.idea/gradle.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index 37a750962da6f2b31810e85c8acae1081de7f58c..0000000000000000000000000000000000000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
deleted file mode 100644
index 7f68460d8b38ac04e3a3224d7c79ef719b1991a9..0000000000000000000000000000000000000000
--- a/.idea/runConfigurations.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 35eb1ddfbbc029bcab630581847471d7f238ec53..0000000000000000000000000000000000000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/README.md b/README.md
index 24edbd0ccfa9f4ac4362e74ade8965acae3799d2..410341f01f91e1062910e8eb3f076765851691e0 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
-智通利通用API
+智通利 通用API
prebuild中放入的是编译好的jar
+api https://gitee.com/mark83136/ZtlApi/wikis/%E6%99%BA%E9%80%9A%E5%88%A9API%E6%96%87%E6%A1%A3
diff --git a/build.gradle b/build.gradle
index 07a6cbe72e5ae2b88545d469c9afd89259bd0321..b51c49d467e875c1acfcf2c98a4b34fc7de5c361 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,11 +1,9 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
-
+ apply from: 'maven.gradle'
repositories {
- google()
- jcenter()
-
+ addCommonMaven(repositories)
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
@@ -18,9 +16,7 @@ buildscript {
allprojects {
repositories {
- google()
- jcenter()
-
+ addCommonMaven(repositories)
}
}
diff --git a/maven.gradle b/maven.gradle
new file mode 100644
index 0000000000000000000000000000000000000000..01e542494cc767cc89dd7ce58756baa3c016fae7
--- /dev/null
+++ b/maven.gradle
@@ -0,0 +1,18 @@
+static def addCommonMaven(RepositoryHandler handler) {
+ // 阿里云云效仓库:https://maven.aliyun.com/mvn/guide
+ handler.maven { url 'https://maven.aliyun.com/repository/public' }
+ handler.maven { url 'https://maven.aliyun.com/repository/google' }
+ handler.maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
+ // 华为开源镜像:https://mirrors.huaweicloud.com
+ handler.maven { url 'https://repo.huaweicloud.com/repository/maven' }
+ // JitPack 远程仓库:https://jitpack.io
+ handler.maven { url 'https://jitpack.io' }
+ handler.maven { url 'https://repo1.maven.org/maven2' }
+ // MavenCentral 远程仓库:https://mvnrepository.com
+ handler.mavenCentral()
+ handler.google()
+ // noinspection JcenterRepositoryObsolete
+ handler.jcenter()
+}
+
+ext.addCommonMaven = this.&addCommonMaven
\ No newline at end of file