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
ab4e6f7d
authored
Mar 02, 2018
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搬家前最后一次提交
parent
fb6ec686
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
10 additions
and
33 deletions
.gitignore
app/proguard-rules.pro
app/src/main/java/com/dayu/bigfish/presenter/main/MainPresenter.java
baseSDK/src/main/java/com/dayu/base/ui/presenter/BasePresenter.java
baseSDK/src/main/java/com/dayu/utils/InstanceUtil.java
build.gradle
orderCenter/src/main/java/com/dayu/order/presenter/processorder/ProcessOrderPresenter.java
userCenter/src/main/java/com/dayu/usercenter/presenter/login/LoginPresenter.java
userCenter/src/main/java/com/dayu/usercenter/ui/activity/AccountBalanceActivity.java
.gitignore
View file @
ab4e6f7d
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
/.idea
.DS_Store
/build
/captures
.externalNativeBuild
/.project
/.project
app/proguard-rules.pro
View file @
ab4e6f7d
...
...
@@ -118,6 +118,7 @@
-keep class com.dayu.base.api.protocol.
*
* { *; }
-keep class com.dayu.message.data.protocol.
*
* { *; }
-keep class com.dayu.order.api.protocol.
*
* { *; }
-keep class com.dayu.order.sqlbean.
*
* { *; }
-keep class com.dayu.provider.event.
*
* { *; }
-keep class com.dayu.usercenter.data.protocol.
*
* { *; }
#-------------------------------------------------------------------------
...
...
app/src/main/java/com/dayu/bigfish/presenter/main/MainPresenter.java
View file @
ab4e6f7d
...
...
@@ -25,7 +25,7 @@ public class MainPresenter extends MainContract.Presenter {
/**
* 待接单数目.
*/
public
ObservableField
<
String
>
tabRecive
=
new
ObservableField
(
"0"
);
public
ObservableField
<
String
>
tabRecive
=
new
ObservableField
<>
(
"0"
);
private
UserInfo
mUser
;
private
int
mAccountId
;
private
int
mSiteId
;
...
...
baseSDK/src/main/java/com/dayu/base/ui/presenter/BasePresenter.java
View file @
ab4e6f7d
...
...
@@ -15,10 +15,10 @@ import io.reactivex.disposables.Disposable;
import
io.reactivex.functions.Consumer
;
/**
* Created by luofan on 17/11/02.
* Created by luofan
* on 17/11/02.
*/
public
abstract
class
BasePresenter
<
V
>
{
protected
static
final
String
TAG
=
"BasePresenter"
;
protected
V
mView
;
protected
CompositeDisposable
mComDisposable
=
new
CompositeDisposable
();
...
...
baseSDK/src/main/java/com/dayu/utils/InstanceUtil.java
deleted
100755 → 0
View file @
fb6ec686
package
com
.
dayu
.
utils
;
/**
* Created by luofan on 2017/11/24.
*/
public
class
InstanceUtil
{
/**
* 通过实例工厂去实例化相应类
*
* @param <T> 返回实例的泛型类型
* @return
*/
public
static
<
T
>
T
getInstance
(
Class
clazz
)
{
try
{
return
null
;
// (T) InstanceFactory.create(clazz);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
}
build.gradle
View file @
ab4e6f7d
...
...
@@ -28,8 +28,8 @@ buildscript {
allprojects
{
repositories
{
jcenter
()
mavenCentral
()
google
()
mavenCentral
()
maven
{
url
'https://jitpack.io'
}
maven
{
url
'https://maven.google.com'
}
}
...
...
orderCenter/src/main/java/com/dayu/order/presenter/processorder/ProcessOrderPresenter.java
View file @
ab4e6f7d
...
...
@@ -68,7 +68,7 @@ public class ProcessOrderPresenter extends ProcessOrderContract.Presenter {
mOrderInfoDao
=
GreenDaoManager
.
getInstance
().
getmDaoSession
().
getOrderInfoDao
();
mView
.
showDialog
();
getOrderInfo
(
mOrderId
);
Query
query
=
mOrderInfoDao
.
queryBuilder
().
where
(
OrderInfoDao
.
Properties
.
Id
.
eq
(
mOrderId
),
Query
<
OrderInfo
>
query
=
mOrderInfoDao
.
queryBuilder
().
where
(
OrderInfoDao
.
Properties
.
Id
.
eq
(
mOrderId
),
OrderInfoDao
.
Properties
.
EngineerId
.
eq
(
mAccountId
))
.
build
();
List
<
OrderInfo
>
list
=
query
.
list
();
...
...
userCenter/src/main/java/com/dayu/usercenter/presenter/login/LoginPresenter.java
View file @
ab4e6f7d
...
...
@@ -22,7 +22,6 @@ import com.umeng.analytics.MobclickAgent;
* Created by luofan
* on 2017/11/8.
*/
public
class
LoginPresenter
extends
LoginContract
.
Presenter
{
public
ObservableField
<
String
>
userName
=
new
ObservableField
<>();
public
ObservableField
<
String
>
password
=
new
ObservableField
<>();
...
...
userCenter/src/main/java/com/dayu/usercenter/ui/activity/AccountBalanceActivity.java
View file @
ab4e6f7d
...
...
@@ -7,7 +7,8 @@ import com.dayu.usercenter.presenter.accountbalance.AccountBalanceContract;
import
com.dayu.usercenter.presenter.accountbalance.AccountBalancePresenter
;
/**
* Created by luofan on 2017/11/1.
* Created by luofan
* on 2017/11/1.
*/
public
class
AccountBalanceActivity
extends
BaseActivity
<
AccountBalancePresenter
,
AccountbalanceLayoutBinding
>
...
...
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