Skip to content

Commit 0f0a7e7

Browse files
author
xufeng.zhang
committed
增加扫描Android项目多个module之间String,Color,Dimen三种资源冲突的检测源码
1 parent 95db657 commit 0f0a7e7

Some content is hidden

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

43 files changed

+1037
-0
lines changed

.gitignore

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Built application files
2+
*.apk
3+
*.ap_
4+
5+
# Files for the Dalvik VM
6+
*.dex
7+
8+
# Java class files
9+
*.class
10+
11+
# Generated files
12+
bin/
13+
gen/
14+
out/
15+
16+
17+
# Gradle files
18+
.gradle/
19+
build/
20+
leakcanary-android/
21+
leakcanary-android-no-op/
22+
23+
# Local configuration file (sdk path, etc)
24+
local.properties
25+
26+
#gradle.properties
27+
28+
# Proguard folder generated by Eclipse
29+
proguard/
30+
31+
# Log Files
32+
*.log
33+
34+
# Android Studio Navigation editor temp files
35+
.navigation/
36+
37+
# Android Studio captures folder
38+
captures/
39+
40+
# Intellij
41+
*.iml
42+
*.idea
43+
44+
# Keystore files
45+
*.jks
46+
47+
WeatherBox/hotfix/instant/alpha/hash.txt
48+
49+
/MJHotfixGradle/com/moji/hotfix/gradle/plugin/MJHotfix/1.0.0/MJHotfix-1.0.0.jar
50+
51+
/.idea/
52+
/gradle.properties
53+
/MJWeatherProvider/libs/libdu.jar

MyLibrary/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

MyLibrary/build.gradle

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
apply plugin: 'com.android.library'
2+
android {
3+
compileSdkVersion 26
4+
5+
6+
7+
defaultConfig {
8+
minSdkVersion 14
9+
targetSdkVersion 26
10+
versionCode 1
11+
versionName "1.0"
12+
13+
}
14+
15+
buildTypes {
16+
release {
17+
minifyEnabled false
18+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
19+
}
20+
}
21+
22+
}
23+
24+
dependencies {
25+
implementation fileTree(dir: 'libs', include: ['*.jar'])
26+
}

MyLibrary/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.geek.mylibrary" />
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="colorPrimarya">#3F51B9</color>
4+
<color name="colorPrimaryDarkx">#303F9F</color>
5+
<color name="colorAccenta">#FF4081</color>
6+
</resources>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<dimen name="tag_corner_radius">411dp</dimen>
4+
<dimen name="_50dp">500dp</dimen>
5+
</resources>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<resources>
2+
<string name="app_name">MyLibrary</string>
3+
<string name="qqq">qqq</string>
4+
<string name="www">www</string>
5+
<string name="cccc">cccc</string>
6+
</resources>

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 26
5+
defaultConfig {
6+
applicationId "com.geek.plugin"
7+
minSdkVersion 14
8+
targetSdkVersion 26
9+
versionCode 1
10+
versionName "1.0"
11+
}
12+
buildTypes {
13+
release {
14+
minifyEnabled false
15+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
16+
}
17+
}
18+
}
19+
20+
dependencies {
21+
implementation fileTree(dir: 'libs', include: ['*.jar'])
22+
}

0 commit comments

Comments
 (0)