Commit 30014362 by 罗翻

增加接单语音播报,studio升级为3.1.0

parent 3b137c4c
...@@ -27,12 +27,12 @@ android { ...@@ -27,12 +27,12 @@ android {
} }
dependencies { dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs') api fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { androidTestImplementation('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'
testCompile 'junit:junit:4.12' testImplementation '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')
} }
...@@ -86,20 +86,23 @@ repositories { ...@@ -86,20 +86,23 @@ repositories {
} }
dependencies { dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs') api fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12' testImplementation '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')
......
...@@ -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互相调用的类------------------------
......
...@@ -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, messages.size()); BadgeNumberUtils.setBadgeNumberXiaoMi(notification, mCount);
} }
} }
} }
...@@ -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();
......
...@@ -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'
}) })
testCompile 'junit:junit:4.12' testImplementation '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')
} }
...@@ -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>
......
...@@ -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()
......
...@@ -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
......
...@@ -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')
} }
...@@ -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')
} }
...@@ -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')
} }
...@@ -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();
......
...@@ -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
...@@ -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')
} }
...@@ -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')
} }
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment