mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	Merge pull request #6986 from litetex/fix-build-problems-update-kotlin
Fix build problems and updated kotlin
This commit is contained in:
		| @@ -4,7 +4,7 @@ plugins { | |||||||
|  |  | ||||||
| apply plugin: 'com.android.application' | apply plugin: 'com.android.application' | ||||||
| apply plugin: 'kotlin-android' | apply plugin: 'kotlin-android' | ||||||
| apply plugin: 'kotlin-android-extensions' | apply plugin: 'kotlin-parcelize' | ||||||
| apply plugin: 'kotlin-kapt' | apply plugin: 'kotlin-kapt' | ||||||
| apply plugin: 'checkstyle' | apply plugin: 'checkstyle' | ||||||
|  |  | ||||||
| @@ -84,11 +84,6 @@ android { | |||||||
|         jvmTarget = JavaVersion.VERSION_1_8 |         jvmTarget = JavaVersion.VERSION_1_8 | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     // Required and used only by groupie |  | ||||||
|     androidExtensions { |  | ||||||
|         experimental = true |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     sourceSets { |     sourceSets { | ||||||
|         androidTest.assets.srcDirs += files("$projectDir/schemas".toString()) |         androidTest.assets.srcDirs += files("$projectDir/schemas".toString()) | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| package org.schabi.newpipe.about | package org.schabi.newpipe.about | ||||||
|  |  | ||||||
| import android.os.Parcelable | import android.os.Parcelable | ||||||
| import kotlinx.android.parcel.Parcelize | import kotlinx.parcelize.Parcelize | ||||||
| import java.io.Serializable | import java.io.Serializable | ||||||
|  |  | ||||||
| /** | /** | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| package org.schabi.newpipe.about | package org.schabi.newpipe.about | ||||||
|  |  | ||||||
| import android.os.Parcelable | import android.os.Parcelable | ||||||
| import kotlinx.android.parcel.Parcelize | import kotlinx.parcelize.Parcelize | ||||||
|  |  | ||||||
| @Parcelize | @Parcelize | ||||||
| class SoftwareComponent | class SoftwareComponent | ||||||
|   | |||||||
| @@ -2,7 +2,7 @@ package org.schabi.newpipe.error | |||||||
|  |  | ||||||
| import android.os.Parcelable | import android.os.Parcelable | ||||||
| import androidx.annotation.StringRes | import androidx.annotation.StringRes | ||||||
| import kotlinx.android.parcel.Parcelize | import kotlinx.parcelize.Parcelize | ||||||
| import org.schabi.newpipe.R | import org.schabi.newpipe.R | ||||||
| import org.schabi.newpipe.extractor.Info | import org.schabi.newpipe.extractor.Info | ||||||
| import org.schabi.newpipe.extractor.NewPipe | import org.schabi.newpipe.extractor.NewPipe | ||||||
|   | |||||||
| @@ -300,6 +300,12 @@ class FeedLoadService : Service() { | |||||||
|                         .subscribeOn(Schedulers.io()) |                         .subscribeOn(Schedulers.io()) | ||||||
|                         .observeOn(AndroidSchedulers.mainThread()) |                         .observeOn(AndroidSchedulers.mainThread()) | ||||||
|                         .subscribe { _, throwable -> |                         .subscribe { _, throwable -> | ||||||
|  |                             // There seems to be a bug in the kotlin plugin as it tells you when | ||||||
|  |                             // building that this can't be null: | ||||||
|  |                             // "Condition 'throwable != null' is always 'true'" | ||||||
|  |                             // However it can indeed be null | ||||||
|  |                             // The suppression may be removed in further versions | ||||||
|  |                             @Suppress("SENSELESS_COMPARISON") | ||||||
|                             if (throwable != null) { |                             if (throwable != null) { | ||||||
|                                 Log.e(TAG, "Error while storing result", throwable) |                                 Log.e(TAG, "Error while storing result", throwable) | ||||||
|                                 handleError(throwable) |                                 handleError(throwable) | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| package org.schabi.newpipe.util | package org.schabi.newpipe.util | ||||||
|  |  | ||||||
| import android.os.Parcelable | import android.os.Parcelable | ||||||
| import kotlinx.android.parcel.Parcelize | import kotlinx.parcelize.Parcelize | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * Information about the saved state on the disk. |  * Information about the saved state on the disk. | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| package us.shandian.giga.get | package us.shandian.giga.get | ||||||
|  |  | ||||||
| import android.os.Parcelable | import android.os.Parcelable | ||||||
| import kotlinx.android.parcel.Parcelize | import kotlinx.parcelize.Parcelize | ||||||
| import org.schabi.newpipe.extractor.MediaFormat | import org.schabi.newpipe.extractor.MediaFormat | ||||||
| import org.schabi.newpipe.extractor.stream.AudioStream | import org.schabi.newpipe.extractor.stream.AudioStream | ||||||
| import org.schabi.newpipe.extractor.stream.Stream | import org.schabi.newpipe.extractor.stream.Stream | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | // Top-level build file where you can add configuration options common to all sub-projects/modules. | ||||||
|  |  | ||||||
| buildscript { | buildscript { | ||||||
|     ext.kotlin_version = '1.4.10' |     ext.kotlin_version = '1.5.30' | ||||||
|     repositories { |     repositories { | ||||||
|         google() |         google() | ||||||
|         mavenCentral() |         mavenCentral() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Tobi
					Tobi