Skip to content

Commit

Permalink
Upgraded few dependencies. * Upgraded kotlin to to make it compatible…
Browse files Browse the repository at this point in the history
… with gradle . * Upgraded dagger to to make it compatible with gradle . * Removed from project since it is not maintained from 2020 and new gradle is not compatible with this library, so we have changed the it with binding.
  • Loading branch information
MohitMaliFtechiz committed Nov 23, 2023
1 parent a1e8ab8 commit 77a9a1a
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 127 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repositories {

dependencies {
implementation("com.android.tools.build:gradle:8.1.3")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.20")
implementation("org.jacoco:org.jacoco.core:0.8.8")
implementation("org.jlleitschuh.gradle:ktlint-gradle:10.3.0")
implementation("com.google.apis:google-api-services-androidpublisher:v3-rev20230406-2.0.0") {
Expand Down
17 changes: 0 additions & 17 deletions buildSrc/src/main/kotlin/Libs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,23 +138,6 @@ object Libs {
const val dagger_compiler: String = "com.google.dagger:dagger-compiler:" +
Versions.com_google_dagger

/**
* https://github.com/JakeWharton/butterknife/
*/
const val butterknife: String = "com.jakewharton:butterknife:" + Versions.com_jakewharton

/**
* https://github.com/JakeWharton/butterknife/
*/
const val butterknife_compiler: String = "com.jakewharton:butterknife-compiler:" +
Versions.com_jakewharton

/**
* https://github.com/JakeWharton/butterknife/
*/
const val butterknife_gradle_plugin: String = "com.jakewharton:butterknife-gradle-plugin:" +
Versions.com_jakewharton

/**
* https://developer.android.com/testing
*/
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ object Versions {

const val com_squareup_okhttp3: String = "4.9.0"

const val org_jetbrains_kotlin: String = "1.7.0"
const val org_jetbrains_kotlin: String = "1.9.20"

const val androidx_navigation: String = "2.5.3"

const val navigation_ui_ktx: String = "2.4.1"

const val com_google_dagger: String = "2.42"
const val com_google_dagger: String = "2.48.1"

const val com_jakewharton: String = "10.2.3"

Expand Down
2 changes: 0 additions & 2 deletions buildSrc/src/main/kotlin/plugin/AllProjectConfigurer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,6 @@ class AllProjectConfigurer {
implementation(Libs.core_ktx)
implementation(Libs.fragment_ktx)
implementation(Libs.collection_ktx)
implementation(Libs.butterknife)
kapt(Libs.butterknife_compiler)
implementation(Libs.fetch)
implementation(Libs.rxandroid)
implementation(Libs.rxjava)
Expand Down
15 changes: 0 additions & 15 deletions core/src/main/java/org/kiwix/kiwixmobile/core/base/BaseActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
package org.kiwix.kiwixmobile.core.base

import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
import butterknife.ButterKnife
import butterknife.Unbinder
import org.kiwix.kiwixmobile.core.CoreApp
import org.kiwix.kiwixmobile.core.di.components.CoreComponent
import org.kiwix.kiwixmobile.core.utils.LanguageUtils
Expand All @@ -33,23 +30,11 @@ abstract class BaseActivity : AppCompatActivity() {
@Inject
lateinit var sharedPreferenceUtil: SharedPreferenceUtil

private var unbinder: Unbinder? = null

protected abstract fun injection(coreComponent: CoreComponent)

override fun onCreate(savedInstanceState: Bundle?) {
injection(CoreApp.coreComponent)
super.onCreate(savedInstanceState)
LanguageUtils.handleLocaleChange(this, sharedPreferenceUtil)
}

override fun setContentView(@LayoutRes layoutResID: Int) {
super.setContentView(layoutResID)
unbinder = ButterKnife.bind(this)
}

override fun onDestroy() {
super.onDestroy()
unbinder?.unbind()
}
}
Loading

0 comments on commit 77a9a1a

Please sign in to comment.