Skip to content

Commit

Permalink
清理无用测试代码;修改依赖关系
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCheen committed Sep 27, 2022
1 parent b18d7d2 commit f4cd37b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 87 deletions.
9 changes: 4 additions & 5 deletions flap-dsl-databinding/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation "androidx.core:core-ktx:1.6.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation project(':flap')
compileOnly 'androidx.recyclerview:recyclerview:1.2.1'
compileOnly "androidx.core:core-ktx:1.6.0"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
compileOnly project(':flap')
}
9 changes: 4 additions & 5 deletions flap-dsl-viewbinding/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation "androidx.core:core-ktx:1.6.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation project(':flap')
compileOnly 'androidx.recyclerview:recyclerview:1.2.1'
compileOnly "androidx.core:core-ktx:1.6.0"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
compileOnly project(':flap')
}
2 changes: 0 additions & 2 deletions flap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,4 @@ dependencies {
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation "androidx.core:core-ktx:1.6.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation project(':flap-annotations')
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,4 @@ class KtModuleComponent(itemView: View) : Component<KtComponentModel>(itemView)

override fun onBind(model: KtComponentModel) {
}
}

class KtModuleComponentDelegate : AdapterDelegate<KtComponentModel, KtModuleComponent> {
override fun onCreateViewHolder(inflater: LayoutInflater, parent: ViewGroup, viewType: Int): KtModuleComponent {
return KtModuleComponent(inflater.inflate(R.layout.kt_module_component, parent, false))
}

override fun delegate(model: Any): Boolean {
return KtComponentModel::class.java == model::class.java
}
}

This file was deleted.

0 comments on commit f4cd37b

Please sign in to comment.