Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
component
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王涛55
component
Commits
8c043a05
Commit
8c043a05
authored
Sep 19, 2019
by
王涛55
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加配置信息
parent
8f0a0e12
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
222 additions
and
112 deletions
+222
-112
ModuleProject/.idea/gradle.xml
+1
-0
ModuleProject/config/app_config.gradle
+94
-86
ModuleProject/config/app_module_config.gradle
+1
-1
ModuleProject/lib_app_common/build.gradle
+19
-19
ModuleProject/lib_baidu_audiodect/build.gradle
+2
-2
ModuleProject/lib_baidu_facedect/build.gradle
+2
-2
ModuleProject/lib_baidu_textdect/build.gradle
+1
-1
ModuleProject/lib_data_drive/.gitignore
+1
-0
ModuleProject/lib_data_drive/build.gradle
+29
-0
ModuleProject/lib_data_drive/proguard-rules.pro
+21
-0
ModuleProject/lib_data_drive/src/androidTest/java/info/hook/com/lib_data_drive/ExampleInstrumentedTest.java
+27
-0
ModuleProject/lib_data_drive/src/main/AndroidManifest.xml
+2
-0
ModuleProject/lib_data_drive/src/main/res/values/strings.xml
+3
-0
ModuleProject/lib_data_drive/src/test/java/info/hook/com/lib_data_drive/ExampleUnitTest.java
+18
-0
ModuleProject/settings.gradle
+1
-1
No files found.
ModuleProject/.idea/gradle.xml
View file @
8c043a05
...
...
@@ -17,6 +17,7 @@
<option
value=
"$PROJECT_DIR$/lib_baidu_facedect"
/>
<option
value=
"$PROJECT_DIR$/lib_baidu_textdect"
/>
<option
value=
"$PROJECT_DIR$/lib_common_ui"
/>
<option
value=
"$PROJECT_DIR$/lib_data_drive"
/>
<option
value=
"$PROJECT_DIR$/lib_network"
/>
</set>
</option>
...
...
ModuleProject/config/app_config.gradle
View file @
8c043a05
...
...
@@ -17,90 +17,98 @@ build_config.version_name = "1.6.2"
ext
.
build_config
=
build_config
def
versions
=
[:]
// Support library
versions
.
supportLibraryVersion
=
"28.0.0"
versions
.
multidexVersion
=
"1.0.3"
versions
.
guavaVersion
=
"22.0-android"
versions
.
constraintLayout
=
"1.1.3"
// butterknife
versions
.
butterknife
=
'8.8.1'
// SmartRefreshLayout
versions
.
smartRefreshLayout
=
'1.1.0-alpha-19'
// alicloud push
versions
.
alicloudPush
=
'3.1.4'
// BackgroundLibrary
versions
.
backgroundLibrary
=
'1.5.1'
// qrcode
versions
.
zxing
=
"3.3.3"
// NumberPickerView
versions
.
numberPickerView
=
'1.1.1'
// ARouter
versions
.
aRouterApi
=
'1.4.1'
versions
.
aRouterCompiler
=
'1.2.2'
// rx
versions
.
retrofit2Version
=
'2.3.0'
versions
.
rxandroidVersion
=
'2.0.2'
versions
.
loggingInterceptor
=
'3.12.+'
// json tool -- to do
versions
.
fastJsonVersion
=
'1.2.6'
versions
.
googleGsonVersion
=
'2.7'
// permission need to use compileSdkVersion 27 or higher. -- to do
versions
.
easyPermissions
=
'1.2.0'
// Architecture Components dependencies
versions
.
roomVersion
=
"1.1.1"
versions
.
archLifecycleVersion
=
"1.1.1"
// image
versions
.
gliderVersion
=
"4.9.0"
// jsbridge
versions
.
jsbridge
=
'1.0.4'
//LabelsView
versions
.
labelsView
=
'1.4.7'
//svg
versions
.
androidsvg
=
'1.3'
//rating bar
versions
.
materialratingbar
=
'1.3.2'
//bannerView
versions
.
bannerView
=
'1.4.8'
// test -- to do
versions
.
junitVersion
=
'4.12'
versions
.
mockitoVersion
=
'1.10.19'
versions
.
powerMockito
=
'1.6.2'
versions
.
hamcrestVersion
=
'1.3'
versions
.
runnerVersion
=
'1.0.2'
versions
.
rulesVersion
=
'1.0.1'
versions
.
espressoVersion
=
'3.0.2'
// u meng
versions
.
umengAnalytics
=
'8.0.0'
versions
.
umengCommon
=
'2.0.0'
//bugly tinker
versions
.
multidex
=
'1.0.2'
versions
.
tinkerVersion
=
'1.9.9'
versions
.
bugly_crashreport
=
'1.3.8'
versions
.
bugly_native_crashreport
=
'latest.release'
versions
.
meituanWalle
=
'1.1.3'
versions
.
eventbus
=
"3.1.1"
ext
.
versions
=
versions
//deps依赖库
ext
.
deps
=
[:]
def
deps
=
[:]
// App's support dependencies
deps
.
appcompat
=
"com.android.support:appcompat-v7:$versions.supportLibraryVersion"
deps
.
multidex
=
"com.android.support:multidex:$versions.multidexVersion"
deps
.
cardview
=
"com.android.support:cardview-v7:$versions.supportLibraryVersion"
deps
.
design
=
"com.android.support:design:$versions.supportLibraryVersion"
deps
.
recyclerview
=
"com.android.support:recyclerview-v7:$versions.supportLibraryVersion"
deps
.
support_v4
=
"com.android.support:support-v4:$versions.supportLibraryVersion"
deps
.
guava
=
"com.google.guava:guava:$versions.guavaVersion"
// rx dependencies
deps
.
retrofit2
=
"com.squareup.retrofit2:retrofit:$versions.retrofit2Version"
deps
.
retrofit2_converter_gson
=
"com.squareup.retrofit2:converter-gson:$versions.retrofit2Version"
deps
.
retrofit2_converter_scalars
=
"com.squareup.retrofit2:converter-scalars:$versions.retrofit2Version"
deps
.
retrofit2_adapter_rxjava2
=
"com.squareup.retrofit2:adapter-rxjava2:$versions.retrofit2Version"
deps
.
okhttp3_logging_interceptor
=
"com.squareup.okhttp3:logging-interceptor:$versions.loggingInterceptor"
deps
.
rxandroid2
=
"io.reactivex.rxjava2:rxandroid:$versions.rxandroidVersion"
//third
deps
.
androidsvg_aar
=
"com.caverock:androidsvg-aar:$versions.androidsvg"
deps
.
constraint_layout
=
"com.android.support.constraint:constraint-layout:$versions.constraintLayout"
deps
.
glide
=
"com.github.bumptech.glide:glide:$versions.gliderVersion"
//glide图片加载
deps
.
glide_compiler
=
"com.github.bumptech.glide:compiler:$versions.gliderVersion"
deps
.
jsbridge
=
"com.github.lzyzsd:jsbridge:$versions.jsbridge"
//JsBridge
deps
.
otto
=
'com.squareup:otto:1.3.5'
//otto消息总线
deps
.
eventbus
=
"org.greenrobot:eventbus:$versions.eventbus"
ext
.
deps
=
deps
// Define versions in a single place
ext
{
// Support library
supportLibraryVersion
=
'28.0.0'
multidexVersion
=
"1.0.3"
guavaVersion
=
'22.0-android'
constraintLayout
=
"1.1.3"
// butterknife
butterknife
=
'8.8.1'
// SmartRefreshLayout
smartRefreshLayout
=
'1.1.0-alpha-19'
// alicloud push
alicloudPush
=
'3.1.4'
// BackgroundLibrary
backgroundLibrary
=
'1.5.1'
// qrcode
zxing
=
"3.3.3"
// NumberPickerView
numberPickerView
=
'1.1.1'
// ARouter
aRouterApi
=
'1.4.1'
aRouterCompiler
=
'1.2.2'
// rx
retrofit2Version
=
'2.3.0'
rxandroidVersion
=
'2.0.2'
loggingInterceptor
=
'3.12.+'
// json tool -- to do
fastJsonVersion
=
'1.2.6'
googleGsonVersion
=
'2.7'
// permission need to use compileSdkVersion 27 or higher. -- to do
easyPermissions
=
'1.2.0'
// Architecture Components dependencies
roomVersion
=
"1.1.1"
archLifecycleVersion
=
"1.1.1"
// image
gliderVersion
=
"4.9.0"
// jsbridge
jsbridge
=
'1.0.4'
//LabelsView
labelsView
=
'1.4.7'
//svg
androidsvg
=
'1.3'
//rating bar
materialratingbar
=
'1.3.2'
//bannerView
bannerView
=
'1.4.8'
// test -- to do
junitVersion
=
'4.12'
mockitoVersion
=
'1.10.19'
powerMockito
=
'1.6.2'
hamcrestVersion
=
'1.3'
runnerVersion
=
'1.0.2'
rulesVersion
=
'1.0.1'
espressoVersion
=
'3.0.2'
// u meng
umengAnalytics
=
'8.0.0'
umengCommon
=
'2.0.0'
//bugly tinker
multidex
=
'1.0.2'
tinkerVersion
=
'1.9.9'
bugly_crashreport
=
'1.3.8'
bugly_native_crashreport
=
'latest.release'
meituanWalle
=
'1.1.3'
}
ModuleProject/config/app_module_config.gradle
View file @
8c043a05
...
...
@@ -21,4 +21,4 @@ ext.build_modele_passport_resourcePrefix = "passport_"
ext
.
build_modele_baidu_resourcePrefix
=
"baidu_"
//当前运行的model
ext
.
build_module
=
build_module_
app
ext
.
build_module
=
build_module_
login
ModuleProject/lib_app_common/build.gradle
View file @
8c043a05
...
...
@@ -31,29 +31,29 @@ dependencies {
api
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
// App's support dependencies
api
([
"com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
,
"com.android.support:multidex:$rootProject.multidexVersion"
,
"com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
,
"com.android.support:design:$rootProject.supportLibraryVersion"
,
"com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
,
"com.android.support:support-v4:$rootProject.supportLibraryVersion"
,
"com.google.guava:guava:$rootProject.guavaVersion"
deps
.
appcompat
,
deps
.
multidex
,
deps
.
cardview
,
deps
.
design
,
deps
.
recyclerview
,
deps
.
support_v4
,
deps
.
guava
])
// rx dependencies
api
([
"com.squareup.retrofit2:retrofit:$rootProject.retrofit2Version"
,
"com.squareup.retrofit2:converter-gson:$rootProject.retrofit2Version"
,
"com.squareup.retrofit2:converter-scalars:$rootProject.retrofit2Version"
,
"com.squareup.retrofit2:adapter-rxjava2:$rootProject.retrofit2Version"
,
"com.squareup.okhttp3:logging-interceptor:$rootProject.loggingInterceptor"
,
"io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"
deps
.
retrofit2
,
deps
.
retrofit2_converter_gson
,
deps
.
retrofit2_converter_scalars
,
deps
.
retrofit2_adapter_rxjava2
,
deps
.
okhttp3_logging_interceptor
,
deps
.
rxandroid2
])
api
"com.caverock:androidsvg-aar:$rootProject.androidsvg"
api
"com.android.support.constraint:constraint-layout:$rootProject.constraintLayout"
api
"com.github.bumptech.glide:glide:$rootProject.gliderVersion"
//glide图片加载
annotationProcessor
"com.github.bumptech.glide:compiler:$rootProject.gliderVersion"
api
"com.github.lzyzsd:jsbridge:$rootProject.jsbridge"
//JsB
ridge
api
'com.squareup:otto:1.3.5'
//otto消息总线
api
deps
.
androidsvg_aar
api
deps
.
constraint_layout
api
deps
.
glide
annotationProcessor
deps
.
glide_compiler
api
deps
.
jsb
ridge
api
deps
.
otto
}
ModuleProject/lib_baidu_audiodect/build.gradle
View file @
8c043a05
...
...
@@ -30,6 +30,6 @@ android {
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
"com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
implementation
"io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"
implementation
deps
.
appcompat
implementation
deps
.
rxandroid2
}
ModuleProject/lib_baidu_facedect/build.gradle
View file @
8c043a05
...
...
@@ -34,6 +34,6 @@ android {
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
"com.android.support:support-v4:$rootProject.supportLibraryVersion"
api
"com.android.support.constraint:constraint-layout:$rootProject.constraintLayout"
implementation
deps
.
support_v4
api
deps
.
constraint_layout
}
ModuleProject/lib_baidu_textdect/build.gradle
View file @
8c043a05
...
...
@@ -32,5 +32,5 @@ dependencies {
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
files
(
'libs/ocr-sdk.jar'
)
implementation
files
(
'libs/license.jar'
)
implementation
"com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
implementation
deps
.
appcompat
}
ModuleProject/lib_data_drive/.gitignore
0 → 100644
View file @
8c043a05
/build
ModuleProject/lib_data_drive/build.gradle
0 → 100644
View file @
8c043a05
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
build_config
.
compile_sdk
defaultConfig
{
minSdkVersion
build_config
.
min_sdk
targetSdkVersion
build_config
.
target_sdk
resourcePrefix
build_modele_baidu_resourcePrefix
versionCode
1
versionName
"1.0"
}
buildTypes
{
release
{
minifyEnabled
false
proguardFiles
getDefaultProguardFile
(
'proguard-android-optimize.txt'
),
'proguard-rules.pro'
}
}
compileOptions
{
encoding
=
'utf-8'
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
}
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
}
ModuleProject/lib_data_drive/proguard-rules.pro
0 → 100644
View file @
8c043a05
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
ModuleProject/lib_data_drive/src/androidTest/java/info/hook/com/lib_data_drive/ExampleInstrumentedTest.java
0 → 100644
View file @
8c043a05
package
info
.
hook
.
com
.
lib_data_drive
;
import
android.content.Context
;
import
androidx.test.InstrumentationRegistry
;
import
androidx.test.runner.AndroidJUnit4
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
static
org
.
junit
.
Assert
.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith
(
AndroidJUnit4
.
class
)
public
class
ExampleInstrumentedTest
{
@Test
public
void
useAppContext
()
{
// Context of the app under test.
Context
appContext
=
InstrumentationRegistry
.
getTargetContext
();
assertEquals
(
"info.hook.com.lib_data_drive.test"
,
appContext
.
getPackageName
());
}
}
ModuleProject/lib_data_drive/src/main/AndroidManifest.xml
0 → 100644
View file @
8c043a05
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"info.hook.com.lib_data_drive"
/>
ModuleProject/lib_data_drive/src/main/res/values/strings.xml
0 → 100644
View file @
8c043a05
<resources>
<string
name=
"app_name"
>
lib_data_drive
</string>
</resources>
ModuleProject/lib_data_drive/src/test/java/info/hook/com/lib_data_drive/ExampleUnitTest.java
0 → 100644
View file @
8c043a05
package
info
.
hook
.
com
.
lib_data_drive
;
import
org.junit.Test
;
import
static
org
.
junit
.
Assert
.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public
class
ExampleUnitTest
{
@Test
public
void
addition_isCorrect
()
{
assertEquals
(
4
,
2
+
2
);
}
}
\ No newline at end of file
ModuleProject/settings.gradle
View file @
8c043a05
include
':app'
,
':lib_common_ui'
,
":lib_network"
,
':lib_app_common'
,
':app_passport'
,
':app_login'
,
':lib_baidu_audiodect'
,
':buildsrc'
,
":lib_baidu_facedect"
,
":lib_baidu_textdect"
include
':app'
,
':lib_common_ui'
,
':lib_data_drive'
,
":lib_network"
,
':lib_app_common'
,
':app_passport'
,
':app_login'
,
':lib_baidu_audiodect'
,
':buildsrc'
,
":lib_baidu_facedect"
,
":lib_baidu_textdect"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment