Skip to content

Commit

Permalink
pxy
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyupu committed Jun 19, 2018
1 parent 157ae2b commit 3ebb8f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ dependencies {

implementation 'com.android.support:appcompat-v7:26.1.0'

//compile 'com.github.xinyupu.pangjiao:pangjiao:1.1.17'
//annotationProcessor 'com.github.xinyupu.pangjiao:pangjiao:1.1.17'

// implementation 'com.github.xinyupu:pangjiao:1.1.29'
//annotationProcessor 'com.github.xinyupu.pangjiao:pangjiao:1.1.29'

implementation project(':pangjiao')
annotationProcessor project(':pangjiao')
annotationProcessor project(':pangjiao')
}
10 changes: 5 additions & 5 deletions app/src/main/java/pxy/com/test/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.pxy.pangjiao.compiler.injectview.annotation.OnClick;
import com.pxy.pangjiao.compiler.mpv.annotation.AutowireProxy;
import com.pxy.pangjiao.compiler.mpv.annotation.Views;
import com.pxy.pangjiao.mvp.viewmodel.views.PJAppCompatActivity;
import com.pxy.pangjiao.mvp.viewmodel.views.PJAppMVVPCompatActivity;

import pxy.com.application.IMemberPresent;
Expand All @@ -18,7 +19,7 @@
import pxy.com.model.UserView;

@Views
public class MainActivity extends PJAppMVVPCompatActivity implements IMainActivityView {
public class MainActivity extends PJAppCompatActivity implements IMainActivityView {


@AutowireProxy
Expand All @@ -28,10 +29,9 @@ public class MainActivity extends PJAppMVVPCompatActivity implements IMainActivi
public ITouristService touristService;


private User user;

@Override
public void initView() {
public int initView() {
return R.layout.activity_main;
}

@Override
Expand All @@ -42,7 +42,7 @@ public void initData() {

@OnClick(R.id.request)
public View.OnClickListener btn_Click=v -> {
touristService.active(user);

};

@Override
Expand Down

0 comments on commit 3ebb8f9

Please sign in to comment.