-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
277 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
feature/feature0/export/src/main/java/com/blankj/feature0/export/bean/Feature0Bean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.blankj.feature0.export.bean; | ||
|
||
|
||
public class Feature0Bean { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
feature/feature0/pkg/src/main/java/com/blankj/feature0/pkg/Feature0Activity.java
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
feature/feature0/pkg/src/main/java/com/blankj/feature0/pkg/main/Feature0Activity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.blankj.feature0.pkg.main; | ||
|
||
import android.os.Bundle; | ||
import android.support.annotation.Nullable; | ||
import android.view.View; | ||
|
||
import com.blankj.common.CommonTitleActivity; | ||
import com.blankj.feature0.pkg.R; | ||
import com.blankj.feature1.export.api.Feature1Api; | ||
import com.blankj.feature1.export.bean.Feature1Param; | ||
import com.blankj.feature1.export.bean.Feature1Result; | ||
import com.blankj.utilcode.util.ApiUtils; | ||
import com.blankj.utilcode.util.ToastUtils; | ||
|
||
|
||
public class Feature0Activity extends CommonTitleActivity { | ||
|
||
@Override | ||
public CharSequence bindTitle() { | ||
return getString(R.string.feature0_title); | ||
} | ||
|
||
@Override | ||
public boolean isSwipeBack() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public int bindLayout() { | ||
return R.layout.feature0_activity; | ||
} | ||
|
||
@Override | ||
public void initView(@Nullable Bundle savedInstanceState, @Nullable View contentView) { | ||
findViewById(R.id.startFeature1Btn).setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
Feature1Result result = ApiUtils.getApi(Feature1Api.class) | ||
.startFeature1Activity(Feature0Activity.this, new Feature1Param("Feature1Param")); | ||
ToastUtils.showLong(result.getName()); | ||
} | ||
}); | ||
} | ||
|
||
@Override | ||
public void doBusiness() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
feature/feature1/export/src/main/java/com/blankj/feature1/export/api/Feature1Api.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.blankj.feature1.export.api; | ||
|
||
import android.content.Context; | ||
|
||
import com.blankj.feature1.export.bean.Feature1Param; | ||
import com.blankj.feature1.export.bean.Feature1Result; | ||
import com.blankj.utilcode.util.ApiUtils; | ||
|
||
|
||
public abstract class Feature1Api extends ApiUtils.BaseApi { | ||
|
||
public abstract Feature1Result startFeature1Activity(Context context, Feature1Param param); | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
feature/feature1/export/src/main/java/com/blankj/feature1/export/bean/Feature1Param.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.blankj.feature1.export.bean; | ||
|
||
|
||
public class Feature1Param { | ||
|
||
private String name; | ||
|
||
public Feature1Param(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
feature/feature1/export/src/main/java/com/blankj/feature1/export/bean/Feature1Result.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.blankj.feature1.export.bean; | ||
|
||
|
||
public class Feature1Result { | ||
|
||
private String name; | ||
|
||
public Feature1Result(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.