Skip to content

Commit 3a15edd

Browse files
author
huangshouguo
committed
fix bug: manifest冲突
1 parent a04c662 commit 3a15edd

5 files changed

Lines changed: 6 additions & 30 deletions

File tree

app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ apply plugin: 'kotlin-android-extensions'
44

55
android {
66
compileSdkVersion rootProject.ext.compileSdkVersion
7-
buildToolsVersion rootProject.ext.buildToolsVersion
87

98
defaultConfig {
109
applicationId "com.github.ihsg.patternlocker.demo"

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ buildscript {
44

55
// versions
66
ext {
7-
versionCode = 12
8-
versionName = '2.4.3'
7+
versionCode = 13
8+
versionName = '2.4.4'
99

1010
minSdkVersion = 15
1111
targetSdkVersion = 28

library/build.gradle

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ group = 'com.github.ihsg'
66

77
android {
88
compileSdkVersion rootProject.ext.compileSdkVersion
9-
buildToolsVersion rootProject.ext.buildToolsVersion
109

1110
defaultConfig {
1211
minSdkVersion rootProject.ext.minSdkVersion
1312
targetSdkVersion rootProject.ext.targetSdkVersion
1413
versionCode rootProject.ext.versionCode
1514
versionName rootProject.ext.versionName
16-
17-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
18-
1915
}
2016
buildTypes {
2117
release {
@@ -26,12 +22,6 @@ android {
2622
}
2723

2824
dependencies {
29-
implementation fileTree(dir: 'libs', include: ['*.jar'])
30-
implementation "com.android.support:appcompat-v7:$rootProject.ext.supportLibraryVersion"
31-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
32-
33-
androidTestImplementation("com.android.support.test.espresso:espresso-core:$rootProject.ext.espressoCoreVersion", {
34-
exclude group: 'com.android.support', module: 'support-annotations'
35-
})
36-
testImplementation "junit:junit:$rootProject.ext.junitVersion"
25+
compileOnly "com.android.support:appcompat-v7:$rootProject.ext.supportLibraryVersion"
26+
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
3727
}
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.github.ihsg.patternlocker">
3-
4-
<application
5-
android:allowBackup="true"
6-
android:label="@string/app_name"
7-
android:supportsRtl="true">
8-
9-
</application>
10-
11-
</manifest>
1+
<manifest package="com.github.ihsg.patternlocker"/>

library/src/main/java/com/github/ihsg/patternlocker/CellFactory.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package com.github.ihsg.patternlocker
55
*/
66

77
internal class CellFactory(private val width: Int, private val height: Int) {
8-
val TAG = "CellFactory"
98
val cellBeanList: List<CellBean> by lazy {
109
val result = ArrayList<CellBean>()
1110
result.clear()
@@ -14,16 +13,14 @@ internal class CellFactory(private val width: Int, private val height: Int) {
1413
val pHeight = this.height / 8f
1514

1615
for (i: Int in 0..2) {
17-
Logger.d(TAG, "i = $i")
1816
for (j: Int in 0..2) {
19-
Logger.d(TAG, "j = $j")
2017
val id = (i * 3 + j) % 9
2118
val x = (j * 3 + 1) * pWidth
2219
val y = (i * 3 + 1) * pHeight
2320
result.add(CellBean(id, x, y, pWidth))
2421
}
2522
}
26-
Logger.d(TAG, "result = $result")
23+
Logger.d("CellFactory", "result = $result")
2724
return@lazy result
2825
}
2926
}

0 commit comments

Comments
 (0)