Skip to content

Commit ff046c3

Browse files
committed
see 07/10 log
1 parent f5cda0e commit ff046c3

File tree

485 files changed

+3166
-1856
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

485 files changed

+3166
-1856
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
*.iml
2-
*__bus__.json
2+
__api__.json
3+
__bus__.json
34
.gradle
4-
/local.properties
5+
local.properties
56
.idea
67
.DS_Store
78
/build
89
/captures
910
.externalNativeBuild
1011
/apk
1112
*.phrof
12-
/busMaven
13+
/maven

CHANGELOG.md

Lines changed: 1 addition & 1 deletion

README-CN.md

Lines changed: 2 additions & 2 deletions

README.md

Lines changed: 2 additions & 2 deletions
File renamed without changes.

app/launcher/app/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apply {
2+
from "${rootDir.path}/buildApp.gradle"
3+
}
4+
5+
dependencies {
6+
implementation fileTree(dir: 'libs', include: ['*.jar'])
7+
api Config.depConfig.launcher_pkg.dep
8+
}
File renamed without changes.

launcher/app/src/main/AndroidManifest.xml renamed to app/launcher/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
android:theme="@style/AppTheme">
1111

1212
<activity
13-
android:name="com.blankj.launcher.pkg.MainActivity"
13+
android:name="com.blankj.main.pkg.MainActivity"
1414
android:configChanges="orientation|keyboardHidden|screenSize"
1515
android:screenOrientation="user"
1616
android:windowSoftInputMode="stateHidden">
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.blankj.launcher.app;
2+
3+
/**
4+
* <pre>
5+
* author: Blankj
6+
* blog : http://blankj.com
7+
* time : 2016/10/12
8+
* desc : app about launcher
9+
* </pre>
10+
*/
11+
public class LauncherApp extends com.blankj.launcher.pkg.LauncherApp {
12+
13+
}
14+
15+
File renamed without changes.

app/launcher/pkg/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apply {
2+
from "${rootDir.path}/buildLib.gradle"
3+
}
4+
5+
dependencies {
6+
implementation fileTree(dir: 'libs', include: ['*.jar'])
7+
8+
}
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<manifest package="com.blankj.launcher.pkg" />

launcher/app/src/main/java/com/blankj/launcher/app/LauncherApp.java renamed to app/launcher/pkg/src/main/java/com/blankj/launcher/pkg/LauncherApp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.blankj.launcher.app;
1+
package com.blankj.launcher.pkg;
22

33
import android.content.Context;
44

@@ -9,7 +9,7 @@
99
* author: Blankj
1010
* blog : http://blankj.com
1111
* time : 2016/10/12
12-
* desc : app about utils
12+
* desc :
1313
* </pre>
1414
*/
1515
public class LauncherApp extends CommonApplication {
File renamed without changes.

app/main/app/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apply {
2+
from "${rootDir.path}/buildApp.gradle"
3+
}
4+
5+
dependencies {
6+
implementation fileTree(dir: 'libs', include: ['*.jar'])
7+
implementation Config.depConfig.main_pkg.dep
8+
}
File renamed without changes.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.blankj.main.app">
4+
5+
<application
6+
android:name="com.blankj.main.app.MainApp"
7+
android:allowBackup="false"
8+
android:icon="@mipmap/ic_launcher"
9+
android:label="@string/app_name"
10+
android:theme="@style/AppTheme">
11+
12+
<activity
13+
android:name="com.blankj.main.pkg.MainActivity"
14+
android:configChanges="orientation|keyboardHidden|screenSize"
15+
android:screenOrientation="user"
16+
android:windowSoftInputMode="stateHidden">
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN" />
19+
<action android:name="android.intent.action.VIEW" />
20+
21+
<category android:name="android.intent.category.LAUNCHER" />
22+
</intent-filter>
23+
</activity>
24+
25+
</application>
26+
27+
</manifest>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package com.blankj.main.app;
2+
3+
import android.content.Context;
4+
5+
import com.blankj.lib.common.CommonApplication;
6+
7+
/**
8+
* <pre>
9+
* author: Blankj
10+
* blog : http://blankj.com
11+
* time : 2016/10/12
12+
* desc :
13+
* </pre>
14+
*/
15+
public class MainApp extends CommonApplication {
16+
17+
private static MainApp sInstance;
18+
19+
public static MainApp getInstance() {
20+
return sInstance;
21+
}
22+
23+
@Override
24+
protected void attachBaseContext(Context base) {
25+
super.attachBaseContext(base);
26+
}
27+
28+
@Override
29+
public void onCreate() {
30+
super.onCreate();
31+
sInstance = this;
32+
}
33+
}
34+
35+
File renamed without changes.

app/main/pkg/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apply {
2+
from "${rootDir.path}/buildLib.gradle"
3+
}
4+
5+
dependencies {
6+
implementation fileTree(dir: 'libs', include: ['*.jar'])
7+
}
File renamed without changes.

launcher/pkg/src/main/AndroidManifest.xml renamed to app/main/pkg/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.blankj.launcher.pkg">
2+
package="com.blankj.main.pkg">
33

44
<application>
55
<activity

launcher/pkg/src/main/java/com/blankj/launcher/pkg/MainActivity.kt renamed to app/main/pkg/src/main/java/com/blankj/main/pkg/MainActivity.kt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
package com.blankj.launcher.pkg
1+
package com.blankj.main.pkg
22

33
import android.graphics.Color
44
import android.os.Bundle
55
import android.support.v7.app.ActionBarDrawerToggle
66
import android.view.View
77
import android.widget.ImageView
88
import com.blankj.lib.common.CommonDrawerActivity
9+
import com.blankj.subutil.export.api.SubUtilApi
910
import com.blankj.utilcode.constant.PermissionConstants
11+
import com.blankj.utilcode.export.api.UtilCodeApi
1012
import com.blankj.utilcode.util.*
1113
import kotlinx.android.synthetic.main.activity_main.*
1214

@@ -65,8 +67,12 @@ class MainActivity : CommonDrawerActivity() {
6567

6668
override fun onDebouncingClick(view: View) {
6769
when (view.id) {
68-
R.id.launcherMainCoreUtilBtn -> BusUtils.postStatic<Any>("CoreUtilActivity#start", this)
69-
R.id.launcherMainSubUtilBtn -> BusUtils.postStatic<Any>("SubUtilActivity#start", this)
70+
R.id.launcherMainCoreUtilBtn -> {
71+
ApiUtils.getApi(UtilCodeApi::class.java).startUtilCodeActivity(this)
72+
}
73+
R.id.launcherMainSubUtilBtn -> {
74+
ApiUtils.getApi(SubUtilApi::class.java).startSubUtilActivity(this)
75+
}
7076
}
7177
}
7278

launcher/pkg/src/main/java/com/blankj/launcher/pkg/SplashActivity.kt renamed to app/main/pkg/src/main/java/com/blankj/main/pkg/SplashActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.blankj.launcher.pkg
1+
package com.blankj.main.pkg
22

33
import android.os.Bundle
44
import android.view.View
File renamed without changes.

app/mock/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apply {
2+
from "${rootDir.path}/buildLib.gradle"
3+
}
4+
5+
dependencies {
6+
for (config in Config.depConfig) {
7+
if (config.key.endsWith("_export")) {
8+
api config.value.dep
9+
}
10+
}
11+
}
File renamed without changes.

app/mock/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<manifest package="com.blankj.mock" />
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.blankj.mock.api;
2+
3+
import android.content.Context;
4+
5+
import com.blankj.subutil.export.api.SubUtilApi;
6+
import com.blankj.utilcode.util.ApiUtils;
7+
import com.blankj.utilcode.util.ToastUtils;
8+
9+
/**
10+
* <pre>
11+
* author: blankj
12+
* blog : http://blankj.com
13+
* time : 2019/07/10
14+
* desc :
15+
* </pre>
16+
*/
17+
@ApiUtils.Api(isDebug = true)
18+
public class SubUtilMockApi extends SubUtilApi {
19+
20+
@Override
21+
public void startSubUtilActivity(Context context) {
22+
ToastUtils.showShort("startSubUtilActivity");
23+
}
24+
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.blankj.mock.api;
2+
3+
import android.content.Context;
4+
5+
import com.blankj.utilcode.export.api.UtilCodeApi;
6+
import com.blankj.utilcode.util.ApiUtils;
7+
import com.blankj.utilcode.util.ToastUtils;
8+
9+
/**
10+
* <pre>
11+
* author: blankj
12+
* blog : http://blankj.com
13+
* time : 2019/07/10
14+
* desc :
15+
* </pre>
16+
*/
17+
@ApiUtils.Api(isDebug = true)
18+
public class UtilCodeMockApi extends UtilCodeApi {
19+
20+
@Override
21+
public void startUtilCodeActivity(Context context) {
22+
ToastUtils.showShort("startUtilCodeActivity");
23+
}
24+
25+
}
File renamed without changes.

app/subutil/app/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apply {
2+
from "${rootDir.path}/buildApp.gradle"
3+
}
4+
5+
dependencies {
6+
implementation fileTree(dir: 'libs', include: ['*.jar'])
7+
implementation Config.depConfig.subutil_pkg.dep
8+
}
File renamed without changes.
File renamed without changes.

app/subutil/export/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apply {
2+
from "${rootDir.path}/buildLib.gradle"
3+
}
4+
5+
dependencies {
6+
api Config.depConfig.lib_common.dep
7+
}

subutil/export/src/main/java/com/blankj/subutil/export/api/SubUtilApi.java renamed to app/subutil/export/src/main/java/com/blankj/subutil/export/api/SubUtilApi.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
import android.content.Context;
44

5+
import com.blankj.utilcode.util.ApiUtils;
6+
7+
58
/**
69
* <pre>
710
* author: blankj
@@ -10,7 +13,8 @@
1013
* desc :
1114
* </pre>
1215
*/
13-
public interface SubUtilApi {
16+
public abstract class SubUtilApi extends ApiUtils.BaseApi {
17+
18+
public abstract void startSubUtilActivity(Context context);
1419

15-
void startSubUtilActivity(Context context);
1620
}
File renamed without changes.

app/subutil/pkg/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apply {
2+
from "${rootDir.path}/buildLib.gradle"
3+
}
4+
5+
dependencies {
6+
implementation fileTree(dir: 'libs', include: ['*.jar'])
7+
}
File renamed without changes.

subutil/pkg/src/main/java/com/blankj/subutil/pkg/impl/SubUtilApiImpl.java renamed to app/subutil/pkg/src/main/java/com/blankj/subutil/pkg/SubUtilApiImpl.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
package com.blankj.subutil.pkg.impl;
1+
package com.blankj.subutil.pkg;
22

33
import android.content.Context;
44

55
import com.blankj.subutil.export.api.SubUtilApi;
66
import com.blankj.subutil.pkg.feature.SubUtilActivity;
7+
import com.blankj.utilcode.util.ApiUtils;
78

89
/**
910
* <pre>
1011
* author: blankj
1112
* blog : http://blankj.com
12-
* time : 2019/06/09
13+
* time : 2019/07/02
1314
* desc :
1415
* </pre>
1516
*/
16-
public class SubUtilApiImpl implements SubUtilApi {
17+
@ApiUtils.Api
18+
public class SubUtilApiImpl extends SubUtilApi {
1719

1820
@Override
1921
public void startSubUtilActivity(Context context) {

subutil/pkg/src/main/java/com/blankj/subutil/pkg/feature/SubUtilActivity.kt renamed to app/subutil/pkg/src/main/java/com/blankj/subutil/pkg/feature/SubUtilActivity.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import kotlinx.android.synthetic.main.activity_util_sub.*
2525
class SubUtilActivity : CommonTitleActivity() {
2626

2727
companion object {
28-
@BusUtils.Subscribe(name = "SubUtilActivity#start")
2928
fun start(context: Context) {
3029
val starter = Intent(context, SubUtilActivity::class.java)
3130
context.startActivity(starter)
File renamed without changes.

0 commit comments

Comments
 (0)