-
Notifications
You must be signed in to change notification settings - Fork 0
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
4 changed files
with
41 additions
and
7 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
11 changes: 11 additions & 0 deletions
11
logincomponent/src/main/java/com/example/logincomponent/ALoginService.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,11 @@ | ||
package com.example.logincomponent; | ||
|
||
import com.alibaba.android.arouter.facade.template.IProvider; | ||
|
||
/** | ||
* Created by apple on 2019/2/27. | ||
*/ | ||
public interface ALoginService extends IProvider { | ||
|
||
void isLogin(String name); | ||
} |
21 changes: 21 additions & 0 deletions
21
logincomponent/src/main/java/com/example/logincomponent/ALoginServiceImpl.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,21 @@ | ||
package com.example.logincomponent; | ||
|
||
import android.content.Context; | ||
import android.widget.Toast; | ||
import com.alibaba.android.arouter.facade.annotation.Route; | ||
|
||
/** | ||
* Created by apple on 2019/2/27. | ||
*/ | ||
@Route(path = "/loginComponent/isLogin") public class ALoginServiceImpl implements ALoginService { | ||
|
||
private Context mContext; | ||
|
||
@Override public void init(Context context) { | ||
mContext = context; | ||
} | ||
|
||
@Override public void isLogin(String name) { | ||
Toast.makeText(mContext, "Hello" + name, Toast.LENGTH_LONG).show(); | ||
} | ||
} |