mirror of
https://github.com/videolan/vlc-android
synced 2024-11-23 18:05:36 +08:00
Remove kotlin-android-extensions plugin and update gradle dependencies
Fixes #2467
This commit is contained in:
parent
b3f6ee97fe
commit
b46ad3cc98
@ -1,6 +1,5 @@
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
android {
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
@ -19,13 +18,6 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
dexOptions {
|
||||
maxProcessCount 8
|
||||
javaMaxHeapSize "4g"
|
||||
preDexLibraries true
|
||||
}
|
||||
|
||||
dataBinding {
|
||||
enabled = true
|
||||
}
|
||||
@ -156,7 +148,7 @@ dependencies {
|
||||
androidTestImplementation "androidx.room:room-testing:$rootProject.ext.roomVersion"
|
||||
testImplementation "androidx.arch.core:core-testing:$rootProject.ext.archVersion"
|
||||
androidTestImplementation "androidx.arch.core:core-testing:$rootProject.ext.archVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.supportTest"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitExtVersion"
|
||||
androidTestUtil "androidx.test:orchestrator:$rootProject.ext.orchestrator"
|
||||
testImplementation "androidx.test:core:$rootProject.ext.testCore"
|
||||
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$rootProject.ext.kotlinx_version"
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||
@ -75,7 +74,7 @@ dependencies {
|
||||
implementation "androidx.core:core-ktx:$rootProject.ext.androidxCoreVersion"
|
||||
implementation "androidx.appcompat:appcompat:$rootProject.ext.appCompatVersion"
|
||||
testImplementation "junit:junit:$rootProject.ext.junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitExtVersion"
|
||||
androidTestImplementation "androidx.test.espresso:espresso-core:$rootProject.ext.espressoVersion"
|
||||
|
||||
}
|
@ -24,7 +24,6 @@
|
||||
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||
|
||||
@ -54,6 +53,6 @@ dependencies {
|
||||
implementation "androidx.constraintlayout:constraintlayout:$rootProject.ext.constraintLayoutVersion"
|
||||
|
||||
testImplementation "junit:junit:$rootProject.ext.junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitExtVersion"
|
||||
androidTestImplementation "androidx.test.espresso:espresso-core:$rootProject.ext.espressoVersion"
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ dependencies {
|
||||
implementation "androidx.appcompat:appcompat:$rootProject.ext.appCompatVersion"
|
||||
implementation "androidx.core:core-ktx:$rootProject.ext.androidxCoreVersion"
|
||||
testImplementation "junit:junit:$rootProject.ext.junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitExtVersion"
|
||||
androidTestImplementation "androidx.test.espresso:espresso-core:$rootProject.ext.espressoVersion"
|
||||
//Room
|
||||
implementation "androidx.room:room-ktx:$rootProject.ext.roomVersion"
|
||||
|
@ -1,7 +1,6 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||
@ -69,7 +68,7 @@ dependencies {
|
||||
implementation("com.squareup.okhttp3:logging-interceptor:4.2.1")
|
||||
|
||||
testImplementation "junit:junit:$rootProject.ext.junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitExtVersion"
|
||||
androidTestImplementation "androidx.test.espresso:espresso-core:$rootProject.ext.espressoVersion"
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||
@ -73,7 +72,7 @@ dependencies {
|
||||
|
||||
api "androidx.core:core-ktx:$rootProject.ext.androidxCoreVersion"
|
||||
testImplementation "androidx.test:core:$rootProject.ext.testCore"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.supportTest"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitExtVersion"
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
@ -1,7 +1,7 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-parcelize'
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||
packagingOptions {
|
||||
@ -10,11 +10,6 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
androidExtensions {
|
||||
features = ["parcelize"]
|
||||
}
|
||||
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
|
||||
viewBinding.enabled = true
|
||||
@ -46,5 +41,5 @@ dependencies {
|
||||
implementation project(':application:vlc-android')
|
||||
api project(':application:moviepedia')
|
||||
testImplementation "androidx.test:core:$rootProject.ext.testCore"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.supportTest"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitExtVersion"
|
||||
}
|
||||
|
@ -20,9 +20,8 @@
|
||||
*/
|
||||
package org.videolan.television.ui
|
||||
|
||||
import android.os.Parcel
|
||||
import android.os.Parcelable
|
||||
import kotlinx.android.parcel.Parcelize
|
||||
import kotlinx.parcelize.Parcelize
|
||||
|
||||
@Parcelize
|
||||
data class MediaItemDetails(var title: String? = null, var subTitle: String? = null,
|
||||
|
@ -33,6 +33,6 @@ dependencies {
|
||||
implementation "androidx.core:core-ktx:$rootProject.ext.androidxCoreVersion"
|
||||
|
||||
testImplementation "junit:junit:$rootProject.ext.junitVersion"
|
||||
androidTestImplementation "androidx.test:runner:$rootProject.ext.supportTest"
|
||||
androidTestImplementation "androidx.test:runner:$rootProject.ext.testRunner"
|
||||
androidTestImplementation "androidx.test.espresso:espresso-core:$rootProject.espressoVersion"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-parcelize'
|
||||
|
||||
android {
|
||||
|
||||
@ -204,7 +204,7 @@ dependencies {
|
||||
androidTestImplementation "androidx.room:room-testing:$rootProject.ext.roomVersion"
|
||||
testImplementation "androidx.arch.core:core-testing:$rootProject.ext.archVersion"
|
||||
androidTestImplementation "androidx.arch.core:core-testing:$rootProject.ext.archVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.supportTest"
|
||||
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitExtVersion"
|
||||
androidTestUtil "androidx.test:orchestrator:$rootProject.ext.orchestrator"
|
||||
testImplementation "androidx.test:core:$rootProject.ext.testCore"
|
||||
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$rootProject.ext.kotlinx_version"
|
||||
|
@ -10,7 +10,7 @@ import androidx.lifecycle.*
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import com.google.android.material.appbar.MaterialToolbar
|
||||
import com.squareup.moshi.*
|
||||
import kotlinx.android.parcel.Parcelize
|
||||
import kotlinx.parcelize.Parcelize
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.coroutines.ObsoleteCoroutinesApi
|
||||
|
@ -2,7 +2,7 @@ package org.videolan.vlc.gui.helpers
|
||||
|
||||
import android.os.Parcelable
|
||||
import android.util.SparseBooleanArray
|
||||
import kotlinx.android.parcel.Parcelize
|
||||
import kotlinx.parcelize.Parcelize
|
||||
|
||||
@Parcelize
|
||||
class SparseBooleanArrayParcelable(val data: SparseBooleanArray) : Parcelable
|
@ -30,7 +30,7 @@ import android.content.SharedPreferences
|
||||
import android.content.res.XmlResourceParser
|
||||
import android.os.Parcelable
|
||||
import androidx.annotation.XmlRes
|
||||
import kotlinx.android.parcel.Parcelize
|
||||
import kotlinx.parcelize.Parcelize
|
||||
import org.videolan.tools.Settings
|
||||
import org.videolan.tools.wrap
|
||||
import org.videolan.vlc.R
|
||||
|
@ -58,6 +58,7 @@ ext {
|
||||
roomVersion = '2.4.1'
|
||||
pagingVersion = '3.1.0'
|
||||
junitVersion = '4.13.2'
|
||||
junitExtVersion = '1.1.2'
|
||||
mockito = '2.25.0'
|
||||
//Retrofit 2.7 drops Android 5 support
|
||||
retrofit = '2.7.1'
|
||||
@ -67,7 +68,7 @@ ext {
|
||||
livedataTest = '1.2.0'
|
||||
robolectric = '4.3.1'
|
||||
mockk = '1.9.3'
|
||||
supportTest = '1.1.3'
|
||||
testRunner = '1.4.0'
|
||||
orchestrator = '1.1.0'
|
||||
testCore = '1.4.0'
|
||||
// versionCode scheme is T M NN RR AA
|
||||
|
Loading…
Reference in New Issue
Block a user