From 7b53d97bd309ae4168530a6de12ab9cbef2949bc Mon Sep 17 00:00:00 2001 From: baiyun Date: Fri, 8 Jan 2021 18:51:50 +0800 Subject: [PATCH] 优化 --- .gitignore | 1 + README.md | 1 + android/build.gradle | 27 ++++++++++----------------- android/src/main/AndroidManifest.xml | 21 +++++---------------- license | 21 --------------------- package.json | 2 +- 6 files changed, 18 insertions(+), 55 deletions(-) delete mode 100755 license diff --git a/.gitignore b/.gitignore index 68f0056..a1255f3 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ local.properties Podfile.lock yarn.lock package-lock.json +/build/ diff --git a/README.md b/README.md index f660851..413bf24 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ RNFwRnAliface; https://www.jianshu.com/p/091a68ea1ca7/ https://youngjuning.js.org/2019/06/react-native-create-library%E4%B8%AD%E6%96%87%E6%96%87%E6%A1%A3/ https://www.jianshu.com/p/091a68ea1ca7/ +签名: http://www.voidcn.com/article/p-bgrartlo-zw.html ``` #### 2.修改package.json ``` diff --git a/android/build.gradle b/android/build.gradle index 9de3b3a..b7fa945 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,6 +1,5 @@ apply plugin: 'com.android.library' apply plugin: 'maven' -apply plugin: 'signing' buildscript { repositories { @@ -10,9 +9,6 @@ buildscript { maven() { url '/usr/local/node/lib/node_modules/react-native/android' } - flatDir { - dirs './libs' - } } dependencies { @@ -27,9 +23,6 @@ repositories { maven { url '/usr/local/node/lib/node_modules/react-native/android' } - flatDir { - dirs './libs' - } } @@ -54,6 +47,9 @@ android { minifyEnabled false } } + lintOptions { + abortOnError false + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 @@ -61,20 +57,17 @@ android { } } -signing { - sign configurations.archives -} dependencies { compileOnly 'com.facebook.react:react-native:+' // 本地包依赖 - compile (name:'aligreen-release-2.0.0',ext:'aar') - compile (name:'FaceLivenessOpen-3.2.0',ext:'aar') - compile (name:'NoCaptchaSDK-external-release-5.4.29',ext:'aar') - compile (name:'SecurityBodySDK-external-release-5.4.79',ext:'aar') - compile (name:'SecurityGuardSDK-external-release-5.4.121',ext:'aar') + implementation files('libs/aligreen-release-2.0.0.aar') + implementation files('libs/FaceLivenessOpen-3.2.0.aar') + implementation files('libs/NoCaptchaSDK-external-release-5.4.29.aar') + implementation files('libs/SecurityBodySDK-external-release-5.4.79.aar') + implementation files('libs/SecurityGuardSDK-exte rnal-release-5.4.121.aar') // 远程包依赖 - implementation 'com.alibaba:fastjson:1.2.62' - implementation 'com.alibaba.android.mnnkit:core:0.0.5' + // implementation 'com.alibaba:fastjson:1.2.62' + // implementation 'com.alibaba.android.mnnkit:core:0.0.5' compileOnly files('src/main/assets') } diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index d9baec9..698218f 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,25 +1,14 @@ + + + - - - + + diff --git a/license b/license deleted file mode 100755 index 339ff98..0000000 --- a/license +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2016-present, lovebing.org. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/package.json b/package.json index 5914f31..cf1f176 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fw-rn-aliface", - "version": "1.0.5", + "version": "1.0.8", "description": "阿里人脸活体检测", "main": "index.js", "scripts": { -- libgit2 0.22.2