Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
30014362
authored
Aug 27, 2018
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加接单语音播报,studio升级为3.1.0
parent
3b137c4c
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
62 additions
and
51 deletions
IDCardLib/build.gradle
app/build.gradle
app/proguard-rules.pro
app/src/main/java/com/dayu/bigfish/utils/HxManager.java
baseSDK/build.gradle
baseSDK/src/main/res/values/strings.xml
build.gradle
gradle.properties
locationComponent/build.gradle
messageCenter/build.gradle
orderCenter/build.gradle
orderCenter/src/main/java/com/dayu/order/presenter/subcribeTime/SubcribeTimePresenter.java
pickerview/build.gradle
provider/build.gradle
userCenter/build.gradle
wheelview/build.gradle
IDCardLib/build.gradle
View file @
30014362
...
@@ -27,12 +27,12 @@ android {
...
@@ -27,12 +27,12 @@ android {
}
}
dependencies
{
dependencies
{
compile
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
api
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
androidTest
Compile
(
'com.android.support.test.espresso:espresso-core:2.2.2'
,
{
androidTest
Implementation
(
'com.android.support.test.espresso:espresso-core:2.2.2'
,
{
exclude
group:
'com.android.support'
,
module:
'support-annotations'
exclude
group:
'com.android.support'
,
module:
'support-annotations'
})
})
compile
'com.android.support:appcompat-v7:25.3
.1'
api
'com.android.support:appcompat-v7:27.1
.1'
test
Compile
'junit:junit:4.12'
test
Implementation
'junit:junit:4.12'
implementation
files
(
'libs/licensemanager-v1.1.jar'
)
api
files
(
'libs/licensemanager-v1.1.jar'
)
implementation
files
(
'libs/livenessdetection-proguard-2.4.5.jar'
)
api
files
(
'libs/livenessdetection-proguard-2.4.5.jar'
)
}
}
app/build.gradle
View file @
30014362
...
@@ -86,20 +86,23 @@ repositories {
...
@@ -86,20 +86,23 @@ repositories {
}
}
dependencies
{
dependencies
{
compile
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
api
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
test
Compile
'junit:junit:4.12'
test
Implementation
'junit:junit:4.12'
//ARouter
//ARouter
annotationProcessor
"com.alibaba:arouter-compiler:$arouter_compiler_version"
annotationProcessor
"com.alibaba:arouter-compiler:$arouter_compiler_version"
if
(
isMessageModule
.
toBoolean
())
{
if
(
isMessageModule
.
toBoolean
())
{
compile
project
(
':messageCenter'
)
api
project
(
':messageCenter'
)
}
}
if
(
isUserModule
.
toBoolean
())
{
if
(
isUserModule
.
toBoolean
())
{
compile
project
(
':userCenter'
)
api
project
(
':userCenter'
)
}
}
if
(
isOrderModule
.
toBoolean
())
{
if
(
isOrderModule
.
toBoolean
())
{
compile
project
(
':orderCenter'
)
api
project
(
':orderCenter'
)
}
}
// if (isManagerModule.toBoolean()) {
// api project(':managerCenter')
// }
// compile(name: 'orderCenter-debug', ext: 'aar')
// compile(name: 'orderCenter-debug', ext: 'aar')
// compile(name: 'userCenter-debug', ext: 'aar')
// compile(name: 'userCenter-debug', ext: 'aar')
// compile(name: 'messageCenter-debug', ext: 'aar')
// compile(name: 'messageCenter-debug', ext: 'aar')
...
...
app/proguard-rules.pro
View file @
30014362
...
@@ -110,7 +110,6 @@
...
@@ -110,7 +110,6 @@
public void openFileChooser(...);
public void openFileChooser(...);
}
}
#-------------------------------------------定制化区域----------------------------------------------
#-------------------------------------------定制化区域----------------------------------------------
#---------------------------------1.实体类---------------------------------
#---------------------------------1.实体类---------------------------------
-keep public class * extends com.dayu.base.ui.presenter.BasePresenter
-keep public class * extends com.dayu.base.ui.presenter.BasePresenter
...
@@ -190,7 +189,8 @@ public static java.lang.String TABLENAME;
...
@@ -190,7 +189,8 @@ public static java.lang.String TABLENAME;
#环信
#环信
-keep class com.hyphenate.
*
* {*;}
-keep class com.hyphenate.
*
* {*;}
-dontwarn com.hyphenate.
*
*
-keep class com.superrtc.
*
* {*;}
-dontwarn com.hyphenate.
*
*
#高德地图
#高德地图
-keep class com.amap.api.location.
*
*{*;}
-keep class com.amap.api.location.
*
*{*;}
...
@@ -236,7 +236,10 @@ public static final int *;
...
@@ -236,7 +236,10 @@ public static final int *;
-keep class * implements com.alibaba.android.arouter.facade.template.IProvider
-keep class * implements com.alibaba.android.arouter.facade.template.IProvider
-dontwarn com.alibaba.
*
*
-dontwarn com.alibaba.
*
*
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
-ignorewarnings
#---------------------------------3.与js互相调用的类------------------------
#---------------------------------3.与js互相调用的类------------------------
...
...
app/src/main/java/com/dayu/bigfish/utils/HxManager.java
View file @
30014362
...
@@ -92,6 +92,7 @@ public class HxManager {
...
@@ -92,6 +92,7 @@ public class HxManager {
@Override
@Override
public
void
onMessageReceived
(
List
<
EMMessage
>
messages
)
{
public
void
onMessageReceived
(
List
<
EMMessage
>
messages
)
{
//收到消息
//收到消息
boolean
flag
=
false
;
//语音是否播报
for
(
EMMessage
message
:
messages
)
{
for
(
EMMessage
message
:
messages
)
{
String
messagebody
=
message
.
getBody
().
toString
();
String
messagebody
=
message
.
getBody
().
toString
();
String
content
=
messagebody
.
substring
(
5
,
messagebody
.
length
()
-
1
);
String
content
=
messagebody
.
substring
(
5
,
messagebody
.
length
()
-
1
);
...
@@ -124,9 +125,10 @@ public class HxManager {
...
@@ -124,9 +125,10 @@ public class HxManager {
if
(!(
boolean
)
SPUtils
.
get
(
Constants
.
HX_STATE
,
true
))
{
if
(!(
boolean
)
SPUtils
.
get
(
Constants
.
HX_STATE
,
true
))
{
return
;
return
;
}
}
if
(
info
.
getCategory
()
==
1
&&
(
info
.
getFunctionType
()
==
2
))
{
if
(
!
flag
&&
info
.
getCategory
()
==
1
&&
(
info
.
getFunctionType
()
==
2
))
{
MediaPlayer
player
=
MediaPlayer
.
create
(
mContext
,
R
.
raw
.
new_order
);
MediaPlayer
player
=
MediaPlayer
.
create
(
mContext
,
R
.
raw
.
new_order
);
player
.
start
();
player
.
start
();
flag
=
true
;
}
}
Intent
intent
=
new
Intent
(
mContext
,
MainActivity
.
class
);
Intent
intent
=
new
Intent
(
mContext
,
MainActivity
.
class
);
intent
.
putExtra
(
Constants
.
MESSAGE_INFO
,
info
);
intent
.
putExtra
(
Constants
.
MESSAGE_INFO
,
info
);
...
@@ -158,7 +160,7 @@ public class HxManager {
...
@@ -158,7 +160,7 @@ public class HxManager {
}
}
mCount
++;
mCount
++;
BadgeNumberManager
.
from
(
mContext
).
setBadgeNumber
(
mCount
);
BadgeNumberManager
.
from
(
mContext
).
setBadgeNumber
(
mCount
);
BadgeNumberUtils
.
setBadgeNumberXiaoMi
(
notification
,
m
essages
.
size
()
);
BadgeNumberUtils
.
setBadgeNumberXiaoMi
(
notification
,
m
Count
);
}
}
}
}
}
}
...
@@ -207,7 +209,7 @@ public class HxManager {
...
@@ -207,7 +209,7 @@ public class HxManager {
Observable
.
timer
(
1
,
TimeUnit
.
MILLISECONDS
)
Observable
.
timer
(
1
,
TimeUnit
.
MILLISECONDS
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
l
->
{
.
subscribe
(
l
->
{
ToastUtils
.
showShortToast
(
"您的账号在另一台设备中登录"
);
ToastUtils
.
showShortToast
(
R
.
string
.
account_notice
);
EMClient
.
getInstance
().
logout
(
true
);
EMClient
.
getInstance
().
logout
(
true
);
UserManager
.
getInstance
().
clearUserInfo
();
UserManager
.
getInstance
().
clearUserInfo
();
AppManager
.
getInstance
().
finishAllActivity
();
AppManager
.
getInstance
().
finishAllActivity
();
...
...
baseSDK/build.gradle
View file @
30014362
...
@@ -40,35 +40,35 @@ android {
...
@@ -40,35 +40,35 @@ android {
}
}
dependencies
{
dependencies
{
compile
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
api
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
androidTestImplementation
(
'com.android.support.test.espresso:espresso-core:3.0.1'
,
{
androidTestImplementation
(
'com.android.support.test.espresso:espresso-core:3.0.1'
,
{
exclude
group:
'com.android.support'
,
module:
'support-annotations'
exclude
group:
'com.android.support'
,
module:
'support-annotations'
})
})
test
Compile
'junit:junit:4.12'
test
Implementation
'junit:junit:4.12'
compile
'com.android.support:design:27.1.1'
api
'com.android.support:design:27.1.1'
//mutidex
//mutidex
compile
'com.android.support:multidex:1.0.3'
api
'com.android.support:multidex:1.0.3'
//eventBus
//eventBus
compile
'org.greenrobot:eventbus:3.1.1'
api
'org.greenrobot:eventbus:3.1.1'
//retrofit
//retrofit
compile
'com.squareup.retrofit2:retrofit:2.3
.0'
api
'com.squareup.retrofit2:retrofit:2.4
.0'
compile
'com.squareup.retrofit2:converter-gson:2.3
.0'
api
'com.squareup.retrofit2:converter-gson:2.4
.0'
compile
'com.squareup.retrofit2:adapter-rxjava2:2.3
.0'
api
'com.squareup.retrofit2:adapter-rxjava2:2.4
.0'
//图片选择
//图片选择
compile
'com.github.LuckSiege.PictureSelector:picture_library:v2.1.5'
api
'com.github.LuckSiege.PictureSelector:picture_library:v2.1.5'
//ARouter
//ARouter
compile
"com.alibaba:arouter-api:$arouter_api_version"
api
"com.alibaba:arouter-api:$arouter_api_version"
//greendao数据库
//greendao数据库
compile
'org.greenrobot:greendao:3.2.0'
api
'org.greenrobot:greendao:3.2.0'
//选择器
//选择器
// compile 'com.contrarywind:Android-PickerView:3.2.7'
// compile 'com.contrarywind:Android-PickerView:3.2.7'
//jsbridge
//jsbridge
compile
'com.github.lzyzsd:jsbridge:1.0.4'
api
'com.github.lzyzsd:jsbridge:1.0.4'
//zxing
//zxing
compile
'com.google.zxing:core:3.3.2'
api
'com.google.zxing:core:3.3.2'
compile
'com.journeyapps:zxing-android-embedded:3.5.0'
api
'com.journeyapps:zxing-android-embedded:3.5.0'
compile
project
(
':locationComponent'
)
api
project
(
':locationComponent'
)
compile
project
(
':pickerview'
)
api
project
(
':pickerview'
)
}
}
baseSDK/src/main/res/values/strings.xml
View file @
30014362
...
@@ -112,6 +112,7 @@
...
@@ -112,6 +112,7 @@
<string
name=
"enviroment_debug"
>
测试环境%1$s
</string>
<string
name=
"enviroment_debug"
>
测试环境%1$s
</string>
<string
name=
"enviroment_uat"
>
UAT环境%1$s
</string>
<string
name=
"enviroment_uat"
>
UAT环境%1$s
</string>
<string
name=
"enviroment_demons"
>
演示环境%1$s
</string>
<string
name=
"enviroment_demons"
>
演示环境%1$s
</string>
<string
name=
"account_notice"
>
您的账号在另一台设备中登录
</string>
<!--提现账户-->
<!--提现账户-->
<string
name=
"title_withdrawals"
>
提现账户
</string>
<string
name=
"title_withdrawals"
>
提现账户
</string>
<string
name=
"alipay_account"
>
支付宝账号
</string>
<string
name=
"alipay_account"
>
支付宝账号
</string>
...
...
build.gradle
View file @
30014362
...
@@ -7,13 +7,12 @@ buildscript {
...
@@ -7,13 +7,12 @@ buildscript {
ext
.
target_sdk_version
=
23
ext
.
target_sdk_version
=
23
ext
.
version_code
=
15
ext
.
version_code
=
15
ext
.
verson_name
=
"1.9.2"
ext
.
verson_name
=
"1.9.2"
ext
.
gradle_version
=
'3.
0.1
'
ext
.
gradle_version
=
'3.
1.4
'
ext
.
isReleaseMinify
=
true
ext
.
isReleaseMinify
=
true
ext
.
isDebugMinify
=
true
ext
.
isDebugMinify
=
true
ext
.
arouter_api_version
=
'1.3.1'
ext
.
arouter_api_version
=
'1.3.1'
ext
.
arouter_compiler_version
=
'1.1.4'
ext
.
arouter_compiler_version
=
'1.1.4'
repositories
{
repositories
{
jcenter
()
jcenter
()
google
()
google
()
...
...
gradle.properties
View file @
30014362
...
@@ -5,6 +5,8 @@ isUserModule=true
...
@@ -5,6 +5,8 @@ isUserModule=true
isMessageModule
=
true
isMessageModule
=
true
##工单模块
##工单模块
isOrderModule
=
true
isOrderModule
=
true
##店长模块
isManagerModule
=
true
##maven依赖
##maven依赖
mavenMode
=
false
mavenMode
=
false
BASE_URL
=
http://47.94.101.239:3112
BASE_URL
=
http://47.94.101.239:3112
...
...
locationComponent/build.gradle
View file @
30014362
...
@@ -25,9 +25,9 @@ android {
...
@@ -25,9 +25,9 @@ android {
}
}
dependencies
{
dependencies
{
compile
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
api
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
testImplementation
'junit:junit:4.12'
testImplementation
'junit:junit:4.12'
androidTestImplementation
'com.android.support.test:runner:1.0.2'
androidTestImplementation
'com.android.support.test:runner:1.0.2'
androidTestImplementation
'com.android.support.test.espresso:espresso-core:3.0.2'
androidTestImplementation
'com.android.support.test.espresso:espresso-core:3.0.2'
implementation
files
(
'libs/Amap_2DMap_V5.2.0_20170627.jar'
)
api
files
(
'libs/Amap_2DMap_V5.2.0_20170627.jar'
)
}
}
messageCenter/build.gradle
View file @
30014362
...
@@ -56,9 +56,9 @@ android {
...
@@ -56,9 +56,9 @@ android {
}
}
dependencies
{
dependencies
{
compile
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
api
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
//ARouter
//ARouter
annotationProcessor
"com.alibaba:arouter-compiler:$arouter_compiler_version"
annotationProcessor
"com.alibaba:arouter-compiler:$arouter_compiler_version"
compile
project
(
':provider'
)
api
project
(
':provider'
)
}
}
orderCenter/build.gradle
View file @
30014362
...
@@ -63,10 +63,10 @@ greendao {
...
@@ -63,10 +63,10 @@ greendao {
}
}
dependencies
{
dependencies
{
compile
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
api
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
//ARouter
//ARouter
annotationProcessor
"com.alibaba:arouter-compiler:$arouter_compiler_version"
annotationProcessor
"com.alibaba:arouter-compiler:$arouter_compiler_version"
compile
project
(
':provider'
)
api
project
(
':provider'
)
compile
project
(
':IDCardLib'
)
api
project
(
':IDCardLib'
)
}
}
orderCenter/src/main/java/com/dayu/order/presenter/subcribeTime/SubcribeTimePresenter.java
View file @
30014362
...
@@ -85,7 +85,6 @@ public class SubcribeTimePresenter extends SubcribeContract.Presenter {
...
@@ -85,7 +85,6 @@ public class SubcribeTimePresenter extends SubcribeContract.Presenter {
}
}
if
(
TextUtils
.
isEmpty
(
mHour
.
get
())
||
TextUtils
.
isEmpty
(
mDay
.
get
()))
{
if
(
TextUtils
.
isEmpty
(
mHour
.
get
())
||
TextUtils
.
isEmpty
(
mDay
.
get
()))
{
mView
.
showToast
(
R
.
string
.
input_day_time
);
mView
.
showToast
(
R
.
string
.
input_day_time
);
return
;
}
else
{
}
else
{
ProgressUtil
.
setCanDismiss
(
false
);
ProgressUtil
.
setCanDismiss
(
false
);
mView
.
showDialog
();
mView
.
showDialog
();
...
...
pickerview/build.gradle
View file @
30014362
...
@@ -43,6 +43,6 @@ allprojects {
...
@@ -43,6 +43,6 @@ allprojects {
//}
//}
dependencies
{
dependencies
{
compile
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
api
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
compile
project
(
path:
':wheelview'
)
api
project
(
path:
':wheelview'
)
}
}
\ No newline at end of file
provider/build.gradle
View file @
30014362
...
@@ -26,7 +26,7 @@ android {
...
@@ -26,7 +26,7 @@ android {
}
}
dependencies
{
dependencies
{
compile
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
api
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
compile
project
(
':baseSDK'
)
api
project
(
':baseSDK'
)
}
}
userCenter/build.gradle
View file @
30014362
...
@@ -56,10 +56,10 @@ android {
...
@@ -56,10 +56,10 @@ android {
}
}
dependencies
{
dependencies
{
compile
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
api
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
//ARouter
//ARouter
annotationProcessor
"com.alibaba:arouter-compiler:$arouter_compiler_version"
annotationProcessor
"com.alibaba:arouter-compiler:$arouter_compiler_version"
compile
project
(
':provider'
)
api
project
(
':provider'
)
compile
project
(
':IDCardLib'
)
api
project
(
':IDCardLib'
)
}
}
wheelview/build.gradle
View file @
30014362
...
@@ -42,6 +42,6 @@ allprojects {
...
@@ -42,6 +42,6 @@ allprojects {
//}
//}
dependencies
{
dependencies
{
compile
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
api
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
}
}
\ No newline at end of file
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