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
2e65a48e
authored
Mar 20, 2018
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加演示环境
parent
61d71ead
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
15 deletions
app/src/main/AndroidManifest.xml
app/src/main/java/com/dayu/bigfish/ui/MainActivity.java
baseSDK/build.gradle
baseSDK/src/main/java/com/dayu/common/BaseApplication.java
baseSDK/src/main/java/com/dayu/common/Constants.java
baseSDK/src/main/java/com/dayu/widgets/LRecyclerView.java
app/src/main/AndroidManifest.xml
View file @
2e65a48e
...
@@ -131,7 +131,6 @@
...
@@ -131,7 +131,6 @@
android:name=
".ui.MainActivity"
android:name=
".ui.MainActivity"
android:launchMode=
"singleTask"
android:launchMode=
"singleTask"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
/>
</application>
</application>
</manifest>
</manifest>
\ No newline at end of file
app/src/main/java/com/dayu/bigfish/ui/MainActivity.java
View file @
2e65a48e
...
@@ -29,12 +29,12 @@ import com.dayu.bigfish.presenter.main.MainPresenter;
...
@@ -29,12 +29,12 @@ import com.dayu.bigfish.presenter.main.MainPresenter;
import
com.dayu.bigfish.ui.fragment.HomeFirstTabFragment
;
import
com.dayu.bigfish.ui.fragment.HomeFirstTabFragment
;
import
com.dayu.common.Constants
;
import
com.dayu.common.Constants
;
import
com.dayu.event.DownloadBean
;
import
com.dayu.event.DownloadBean
;
import
com.dayu.provider.event.RefreshReceivingNum
;
import
com.dayu.location.base.LocationUtils
;
import
com.dayu.location.base.LocationUtils
;
import
com.dayu.message.ui.fragment.HomeMessageFragment
;
import
com.dayu.message.ui.fragment.HomeMessageFragment
;
import
com.dayu.provider.event.SwtichFragment
;
import
com.dayu.order.ui.activity.ReceivingActivity
;
import
com.dayu.order.ui.activity.ReceivingActivity
;
import
com.dayu.order.ui.fragment.HomeOrderFragment
;
import
com.dayu.order.ui.fragment.HomeOrderFragment
;
import
com.dayu.provider.event.RefreshReceivingNum
;
import
com.dayu.provider.event.SwtichFragment
;
import
com.dayu.provider.router.RouterPath
;
import
com.dayu.provider.router.RouterPath
;
import
com.dayu.usercenter.ui.fragment.HomePersonFragment
;
import
com.dayu.usercenter.ui.fragment.HomePersonFragment
;
import
com.dayu.widgets.CustomDialog
;
import
com.dayu.widgets.CustomDialog
;
...
...
baseSDK/build.gradle
View file @
2e65a48e
...
@@ -13,6 +13,9 @@ android {
...
@@ -13,6 +13,9 @@ android {
versionName
verson_name
versionName
verson_name
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
// ndk {
// abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
// }
}
}
buildTypes
{
buildTypes
{
...
...
baseSDK/src/main/java/com/dayu/common/BaseApplication.java
View file @
2e65a48e
...
@@ -32,7 +32,6 @@ public class BaseApplication extends MultiDexApplication {
...
@@ -32,7 +32,6 @@ public class BaseApplication extends MultiDexApplication {
ARouter
.
init
(
this
);
ARouter
.
init
(
this
);
}
}
public
static
Context
getContext
()
{
public
static
Context
getContext
()
{
return
mContext
;
return
mContext
;
}
}
...
...
baseSDK/src/main/java/com/dayu/common/Constants.java
View file @
2e65a48e
...
@@ -22,24 +22,34 @@ public class Constants {
...
@@ -22,24 +22,34 @@ public class Constants {
/**
/**
* uat环境配置.
* uat环境配置.
*/
*/
public
static
final
int
LOG_LEVEL
=
LogUtils
.
LEVEL_ALL
;
//
public static final int LOG_LEVEL = LogUtils.LEVEL_ALL;
public
static
final
String
BASE_URL
=
"http://47.95.223.6:3112"
;
//
public static final String BASE_URL = "http://47.95.223.6:3112";
public
final
static
String
UP_PHOTO
=
"/file/uploadMore?targetPath=test/sp/mobile/android/business/checkApply"
;
//
public final static String UP_PHOTO = "/file/uploadMore?targetPath=test/sp/mobile/android/business/checkApply";
public
final
static
String
WEB_SOP
=
"http://47.95.223.6:9004/#/sop"
;
//
public final static String WEB_SOP = "http://47.95.223.6:9004/#/sop";
public
final
static
String
WEB_ZHI_SHI
=
"http://47.95.223.6:9004/#/detail"
;
//
public final static String WEB_ZHI_SHI = "http://47.95.223.6:9004/#/detail";
public
static
final
boolean
IS_DEBUG
=
true
;
//
public static final boolean IS_DEBUG = true;
/**
/**
* 正式环境.
* 正式环境.
*/
*/
// public static final int LOG_LEVEL = LogUtils.LEVEL_OFF;
// public static final int LOG_LEVEL = LogUtils.LEVEL_OFF;
// public static final String BASE_URL = "https://mobile.
dayu
.ai";
// public static final String BASE_URL = "https://mobile.
kf
.ai";
// public final static String UP_PHOTO = "/file/uploadMore?targetPath=online/sp/mobile/android/business/checkApply";
// public final static String UP_PHOTO = "/file/uploadMore?targetPath=online/sp/mobile/android/business/checkApply";
// public final static String WEB_SOP = "https://sop.kf.ai/#/sop";
// public final static String WEB_SOP = "https://sop.kf.ai/#/sop";
// public final static String WEB_ZHI_SHI = "https://sop.kf.ai/#/detail";
// public final static String WEB_ZHI_SHI = "https://sop.kf.ai/#/detail";
// public static final boolean IS_DEBUG = false;
// public static final boolean IS_DEBUG = false;
/**
/**
* 演示环境
*/
public
final
static
int
LOG_LEVEL
=
LogUtils
.
LEVEL_OFF
;
public
final
static
String
BASE_URL
=
"https://test.mobile.dayu.ai"
;
public
final
static
String
UP_PHOTO
=
"/file/uploadMore?targetPath=online/sp/mobile/android/business/checkApply"
;
public
final
static
String
WEB_SOP
=
"https://test.sop.dayu.ai/#/sop"
;
public
final
static
String
WEB_ZHI_SHI
=
"https://test.sop.dayu.ai/#/detail"
;
public
final
static
boolean
IS_DEBUG
=
false
;
/**
* 登录.
* 登录.
*/
*/
public
static
final
String
LOGIN_URL
=
"/check"
;
public
static
final
String
LOGIN_URL
=
"/check"
;
...
...
baseSDK/src/main/java/com/dayu/widgets/LRecyclerView.java
View file @
2e65a48e
...
@@ -27,7 +27,8 @@ import com.dayu.widgets.listener.onLoadMoreListener;
...
@@ -27,7 +27,8 @@ import com.dayu.widgets.listener.onLoadMoreListener;
import
java.util.List
;
import
java.util.List
;
/**
/**
* Created by luofan on 2017/12/9.
* Created by luofan
* on 2017/12/9.
*/
*/
public
class
LRecyclerView
<
M
,
B
>
extends
FrameLayout
{
public
class
LRecyclerView
<
M
,
B
>
extends
FrameLayout
{
...
@@ -210,7 +211,7 @@ public class LRecyclerView<M, B> extends FrameLayout {
...
@@ -210,7 +211,7 @@ public class LRecyclerView<M, B> extends FrameLayout {
public
void
setData
(
List
<
M
>
data
)
{
public
void
setData
(
List
<
M
>
data
)
{
swipeRefresh
.
setRefreshing
(
false
);
swipeRefresh
.
setRefreshing
(
false
);
mCoreAdapter
.
isHasMore
=
false
;
mCoreAdapter
.
isHasMore
=
false
;
if
(
data
==
null
||
(
data
!=
null
&&
data
.
size
()
==
0
)
)
{
if
(
data
==
null
||
data
.
size
()
==
0
)
{
// ToastUtils.showShortToast("暂无数据");
// ToastUtils.showShortToast("暂无数据");
setEmpty
();
setEmpty
();
return
;
return
;
...
@@ -232,7 +233,7 @@ public class LRecyclerView<M, B> extends FrameLayout {
...
@@ -232,7 +233,7 @@ public class LRecyclerView<M, B> extends FrameLayout {
mCoreAdapter
.
isLoadFial
=
false
;
mCoreAdapter
.
isLoadFial
=
false
;
swipeRefresh
.
setRefreshing
(
false
);
swipeRefresh
.
setRefreshing
(
false
);
if
(
isRefresh
)
{
if
(
isRefresh
)
{
if
(
data
==
null
||
(
data
!=
null
&&
data
.
getData
().
size
()
==
0
)
)
{
if
(
data
==
null
||
data
.
getData
().
size
()
==
0
)
{
// ToastUtils.showShortToast("暂无数据");
// ToastUtils.showShortToast("暂无数据");
setEmpty
();
setEmpty
();
return
;
return
;
...
...
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