Skip to content

Commit 062f957

Browse files
committed
创建组件的Application
1 parent 5cc0b17 commit 062f957

11 files changed

Lines changed: 74 additions & 6 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ out/
1616
# Gradle files
1717
.gradle/
1818
build/
19+
.idea/
1920

2021
# Local configuration file (sdk path, etc)
2122
local.properties
@@ -36,6 +37,7 @@ captures/
3637
*.iml
3738
.idea/workspace.xml
3839
.idea/vcs.xml
40+
.idea/libraries
3941

4042
# Keystore files
4143
*.jks
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
<resources>
22
<string name="app_name">Common</string>
3+
4+
<string name="current_internet_invalid">当前网络未连接</string>
5+
36
</resources>

‎app/src/main/AndroidManifest.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
package="com.guiying.androidmodulepattern">
44

55
<application
6+
android:name=".MyApplication"
67
android:allowBackup="true"
78
android:icon="@mipmap/ic_launcher"
89
android:label="@string/app_name"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.guiying.androidmodulepattern;
2+
3+
import com.guiying.common.base.BaseApplication;
4+
5+
/**
6+
* <p>类说明</p>
7+
*
8+
* @author 张华洋 2017/2/15 20:14
9+
* @version V1.2.0
10+
* @name MyApplication
11+
*/
12+
public class MyApplication extends BaseApplication {
13+
14+
@Override
15+
public void onCreate() {
16+
super.onCreate();
17+
}
18+
}

‎common/src/main/java/com/guiying/common/http/HttpClient.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
*/
3737
public class HttpClient {
3838

39-
/*The certificate's password*/
40-
private static final String STORE_PASS = "ivms8700";
4139
/*返回数据为String*/
4240
public static final int STRING = 0;
4341
/*返回数据为json对象*/

‎girls/src/main/debug/AndroidManifest.xml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
package="com.guiying.girls">
44

55
<application
6+
android:name="debug.GirlsApplication"
67
android:allowBackup="true"
78
android:icon="@mipmap/ic_launcher"
89
android:label="@string/app_name"
910
android:supportsRtl="true"
1011
android:theme="@style/AppTheme">
11-
<activity android:name=".GirlsActivity">
12+
<activity
13+
android:name=".GirlsActivity"
14+
android:screenOrientation="portrait">
1215
<intent-filter>
1316
<action android:name="android.intent.action.MAIN" />
1417

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package debug;
2+
3+
import com.guiying.common.base.BaseApplication;
4+
5+
/**
6+
* <p>类说明</p>
7+
*
8+
* @author 张华洋 2017/2/15 20:09
9+
* @version V1.2.0
10+
* @name GirlsApplication
11+
*/
12+
public class GirlsApplication extends BaseApplication {
13+
14+
@Override
15+
public void onCreate() {
16+
super.onCreate();
17+
}
18+
}

‎girls/src/main/release/AndroidManifest.xml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
package="com.guiying.girls">
33

44
<application android:theme="@style/AppTheme">
5-
5+
<activity
6+
android:name=".GirlsActivity"
7+
android:screenOrientation="portrait" />
68
</application>
79

810
</manifest>

‎news/src/main/debug/AndroidManifest.xml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
package="com.guiying.news">
44

55
<application
6+
android:name="debug.NewsApplication"
67
android:allowBackup="true"
78
android:icon="@mipmap/ic_launcher"
89
android:label="@string/app_name"
910
android:supportsRtl="true"
1011
android:theme="@style/AppTheme">
11-
<activity android:name=".NewsActivity">
12+
<activity
13+
android:name=".NewsActivity"
14+
android:screenOrientation="portrait">
1215
<intent-filter>
1316
<action android:name="android.intent.action.MAIN" />
1417

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package debug;
2+
3+
import com.guiying.common.base.BaseApplication;
4+
5+
/**
6+
* <p>类说明</p>
7+
*
8+
* @author 张华洋 2017/2/15 20:11
9+
* @version V1.2.0
10+
* @name NewsApplication
11+
*/
12+
public class NewsApplication extends BaseApplication {
13+
14+
@Override
15+
public void onCreate() {
16+
super.onCreate();
17+
}
18+
}

0 commit comments

Comments
 (0)