Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update some of dependencies and compile fix. #676

Conversation

antygravity
Copy link

Issue

Overview (Required)

  • add jcenter() and google() repositories
  • update kotlin version and some of other dependencies
  • update supportLibrary which cause most of problems
  • fix compile errors

Links

Screenshot

Before After

@takahirom
Copy link
Member

👀

@@ -94,6 +94,7 @@ object Depends {
object Groupie {
val core = "com.xwray:groupie:${Versions.groupie}"
val binding = "com.xwray:groupie-databinding:${Versions.groupie}"
val kotlinExtensions = "com.xwray:groupie-kotlin-android-extensions:${Versions.groupie}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably you don't use this dependency 👀

}
dependencies {
classpath(kotlin("gradle-plugin", Versions.kotlin))
}
}

allprojects {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think allprojects is not needed. 📁
What do you think?

repositories {
    google()
    jcenter()
}

@@ -13,7 +13,7 @@ data class StaffItem(
) : BindableItem<ItemStaffBinding>(staff.name.hashCode().toLong()) {

override fun createViewHolder(itemView: View): ViewHolder<ItemStaffBinding> {
return ViewHolder(DataBindingUtil.bind(itemView))
return ViewHolder(DataBindingUtil.bind(itemView)!!)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we can use HogeHogeBinding.inflate(xxx) method. 👀
But If you don't have time, I think that is fine as it is.

@takahirom
Copy link
Member

Thank you for resolving problems !! 👍 That's cool 🆒

@@ -219,7 +219,8 @@ dependencies {
}

repositories {
mavenCentral()
jcenter()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make sure google() is before jcenter()

@@ -1,4 +1,5 @@
import org.gradle.api.JavaVersion.VERSION_1_7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like this import is unused 👀

@@ -0,0 +1 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀 is this needed?

@takahirom
Copy link
Member

Probably this is occurred by Kotlin DSL
Please see this issue.
#677

@takahirom takahirom closed this Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants