From 05e6241ed590390712e417df77cad7f6c39d7b45 Mon Sep 17 00:00:00 2001 From: jh-lijianfei <330132662@qq.com> Date: Wed, 24 Jan 2024 11:22:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BE=9D=E8=B5=96=E7=9A=84?= =?UTF-8?q?=E6=BA=90=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- .idea/.name | 1 - .idea/codeStyles/Project.xml | 116 ----------------------------------- .idea/gradle.xml | 22 ------- .idea/misc.xml | 9 --- .idea/runConfigurations.xml | 12 ---- .idea/vcs.xml | 6 -- README.md | 3 +- build.gradle | 10 +-- maven.gradle | 18 ++++++ 10 files changed, 25 insertions(+), 175 deletions(-) delete mode 100644 .idea/.name delete mode 100644 .idea/codeStyles/Project.xml delete mode 100644 .idea/gradle.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/runConfigurations.xml delete mode 100644 .idea/vcs.xml create mode 100644 maven.gradle diff --git a/.gitignore b/.gitignore index d567e24..7354922 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 d4a90d8..0000000 --- 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 681f41a..0000000 --- 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 e17962e..0000000 --- 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 37a7509..0000000 --- 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 7f68460..0000000 --- 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 35eb1dd..0000000 --- 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 24edbd0..410341f 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 07a6cbe..b51c49d 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 0000000..01e5424 --- /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 -- Gitee