Skip to content

Commit

Permalink
删除无效资源文件
Browse files Browse the repository at this point in the history
  • Loading branch information
wustor committed Jan 23, 2018
1 parent 9657418 commit c9944c5
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 287 deletions.
6 changes: 4 additions & 2 deletions basemodule/src/main/AndroidManifest.xml
Expand Up @@ -2,11 +2,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.wustor.basemodule">

<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:supportsRtl="true">
android:supportsRtl="true"
android:theme="@style/AppTheme">

</application>

Expand Down
2 changes: 2 additions & 0 deletions basemodule/src/main/res/values/styles.xml
Expand Up @@ -139,6 +139,8 @@

</style>

<style name="activityTheme" parent="AppTheme"/>

<style name="Theme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/blue</item>
<item name="colorPrimaryDark">@color/blue</item>
Expand Down
13 changes: 0 additions & 13 deletions cartmodule/build.gradle
Expand Up @@ -68,20 +68,7 @@ android {
}
}

//编译期组件隔离,运行期组件按需依赖
//cartModule需要跟orderModule,goodsModule进行交互,所以在运行期添加了依赖
def tasks = project.gradle.startParameter.taskNames
for (String task : tasks) {
def upperName = task.toUpperCase()
if (isModuleRun.toBoolean()) {
if (upperName.contains("ASSEMBLE") || upperName.contains("INSTALL")) {
dependencies.add("compile", project.project(':' + 'usermodule'))
dependencies.add("compile", project.project(':' + 'goodsmodule'))
}
}


}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':routermodule')
Expand Down
7 changes: 3 additions & 4 deletions cartmodule/src/main/AndroidManifest.xml
Expand Up @@ -2,14 +2,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.wustor.cartmodule">

<!-- To access Google+ APIs: -->
<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true">
<activity android:name=".CartActivity"></activity>
<activity android:name=".CartActivity">

</activity>
</application>

</manifest>
22 changes: 7 additions & 15 deletions cartmodule/src/main/debug/AndroidManifest.xml
@@ -1,28 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.wustor.cartmoudle">
package="com.wustor.cartmodule">


<application
android:name=""
android:allowBackup="true"
android:label="@string/cart_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:label">
android:name=".debug.CartApplication"
android:label="@string/app_name"
android:supportsRtl="true">
<activity android:name=".CartActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

</activity>
</application>
</manifest>







</manifest>
12 changes: 0 additions & 12 deletions goodsmodule/build.gradle
Expand Up @@ -72,20 +72,8 @@ android {
}
}

//编译期组件隔离,运行期组件按需依赖
//goodsModule需要跟cartModule进行交互,所以在运行期添加了依赖
def tasks = project.gradle.startParameter.taskNames
for (String task : tasks) {
def upperName = task.toUpperCase()
if (isModuleRun.toBoolean()) {
if (upperName.contains("ASSEMBLE") || upperName.contains("INSTALL")) {
dependencies.add("compile", project.project(':' + 'cartmodule'))
}
}


}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':routermodule')
Expand Down
3 changes: 2 additions & 1 deletion goodsmodule/src/main/AndroidManifest.xml
Expand Up @@ -6,7 +6,8 @@
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true">
<activity android:name=".GoodsDetailActivity"></activity>
<activity android:name=".GoodsDetailActivity">
</activity>
</application>

</manifest>
86 changes: 4 additions & 82 deletions goodsmodule/src/main/debug/AndroidManifest.xml
@@ -1,97 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.wustor.goodsmoudle">

package="com.wustor.goodsmodule">

<application
android:name=".debug.GoodsApplication"
android:allowBackup="true"
android:label="@string/goods_name"
android:supportsRtl="true"
tools:replace="android:label"
android:theme="@style/AppTheme">
<activity android:name=".GoodsActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name="com.wustor.goodsmoudle.goods.detail.GoodsDetailActivity"
android:launchMode="standard"
android:windowSoftInputMode="adjustPan" />
<activity android:name="com.wustor.goodsmoudle.goods.detail.GoodsDetailPActivity" />

<activity
android:name="com.wustor.goodsmoudle.goods.filter.GoodsFilterActivity"
android:launchMode="singleTask"
android:screenOrientation="portrait" />

<activity
android:name="com.wustor.goodsmoudle.goods.filter.GoodsFilterPActivity"
android:launchMode="singleTask"
android:screenOrientation="portrait" />

<activity
android:name="com.wustor.goodsmoudle.goods.filter.SearchActivity"
android:label="搜索"
android:windowSoftInputMode="stateAlwaysVisible" />

<activity
android:name="com.wustor.goodsmoudle.goods.list.GoodsListActivity"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.wustor.goodsmoudle.goods.list.ListPActivity"
android:theme="@style/activityTheme"
android:windowSoftInputMode="adjustPan" />

<activity
android:name="com.wustor.goodsmoudle.goods.list.PrivilegeActivity"
android:label="特价优惠" />

<activity
android:name="com.wustor.goodsmoudle.home.scan.ScanActivity"
android:label="二维码"
android:screenOrientation="portrait"
android:theme="@style/activityTheme" />

<activity
android:name="com.wustor.goodsmoudle.home.scan.ScanEnterBarcordActivity"
android:label="二维码条形码"
android:theme="@style/activityTheme" />
<activity
android:name="com.wustor.goodsmoudle.home.scan.ScanRecordActivity"
android:label="二维码扫描记录"
android:theme="@style/activityTheme" />
<activity android:name="com.wustor.goodsmoudle.home.CertificateActivity" />
<activity android:name="com.wustor.goodsmoudle.home.CertificateListActivity" />
<activity android:name="com.wustor.goodsmoudle.home.NotifyDetailActivity" />

<activity
android:name="com.wustor.goodsmoudle.home.NotifyListActivity"
android:label="消息" />
<activity
android:name="com.wustor.goodsmoudle.home.SelectCityActivity"
android:label="选择地址"
android:theme="@style/activityTheme"
android:windowSoftInputMode="adjustPan" />

<activity android:name="com.wustor.goodsmoudle.com.cmyy.chuangmei.SplashActivity">
android:label="@string/app_name"
android:supportsRtl="true">
<activity android:name=".GoodsDetailActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.wustor.goodsmoudle.DemoActivity"
android:label="测试"></activity>
<activity android:name="com.wustor.goodsmoudle.MessageSettingActivity" />
</application>


</manifest>
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -17,4 +17,4 @@ android.enableAapt2=false
# http://www.gradle.org/docs/current/uueserguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
isDebug=false
isModuleRun=false
isModuleRun=true
1 change: 0 additions & 1 deletion ordermodule/build.gradle
Expand Up @@ -68,7 +68,6 @@ android {
}
}
}
buildToolsVersion '26.0.2'
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
Expand Down
5 changes: 3 additions & 2 deletions ordermodule/src/main/AndroidManifest.xml
Expand Up @@ -4,9 +4,10 @@

<application
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true">
<activity android:name=".OrderActivity"></activity>
<activity android:name=".OrderActivity">

</activity>
</application>

</manifest>
51 changes: 3 additions & 48 deletions ordermodule/src/main/debug/AndroidManifest.xml
@@ -1,63 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.wustor.ordermoudle">

package="com.wustor.ordermodule">

<application
android:name=".debug.OrderApplication"
android:allowBackup="true"
android:label="@string/order_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:label">
<activity android:name=".order.OrderActivity">
android:supportsRtl="true">
<activity android:name=".OrderActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.wustor.ordermoudle.order.OrderListActivity"
android:label="我的订单"
android:theme="@style/activityTheme" />
<activity
android:name="com.wustor.ordermoudle.order.OrderDetailActivity"
android:label="查看订单"
android:theme="@style/activityTheme" />
<activity
android:name="com.wustor.ordermoudle.OrderConfirmActivity"
android:label="提交订单"
android:theme="@style/activityTheme" />
<activity
android:name="com.wustor.ordermoudle.OrderSuccessActivity"
android:label="成功下单"
android:theme="@style/activityTheme" />
<activity
android:name="com.wustor.ordermoudle.OrderPayActivity"
android:label="订单生成"
android:theme="@style/activityTheme" />
<activity
android:name="com.wustor.ordermoudle.OrderInsufficientActivity"
android:label="订单欠款"
android:theme="@style/activityTheme" />
<activity
android:name="com.wustor.ordermoudle.OrderErrorActivity"
android:label="订单失败"
android:theme="@style/activityTheme" />
<activity
android:name="com.wustor.ordermoudle.order.ReturnActivity"
android:label="查看退货订单"
android:theme="@style/activityTheme" />
<activity
android:name="com.wustor.ordermoudle.order.PackageDetailActivity"
android:label="包裹详情"
android:theme="@style/activityTheme" />
<activity
android:name="com.wustor.ordermoudle.order.LogisticsActivity"
android:label="查看物流"
android:theme="@style/activityTheme" />
</application>

</manifest>
2 changes: 1 addition & 1 deletion routermodule/build.gradle
Expand Up @@ -10,7 +10,7 @@ android {
targetSdkVersion cfg.targetSdkVersion
versionCode cfg.versionCode//更新次数
versionName cfg.versionName//版本号
resourcePrefix "modulerouter_"
//resourcePrefix "modulerouter_"

}

Expand Down
4 changes: 3 additions & 1 deletion usermodule/src/main/AndroidManifest.xml
Expand Up @@ -6,7 +6,9 @@
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true">
<activity android:name=".UserActivity"></activity>
<activity android:name=".UserActivity">

</activity>
</application>

</manifest>

0 comments on commit c9944c5

Please sign in to comment.