Changes After Review

This commit is contained in:
MohitMali 2022-08-31 11:50:15 +05:30 committed by Kelson
parent 4c7d4255e1
commit dd0691880d
5 changed files with 12 additions and 12 deletions

View File

@ -25,7 +25,7 @@
########################
-dontobfuscate
-keepclassmembers class com.cprcrack.videowebview.VideoEnabledWebView$JavascriptInterface { public *; }
-keepclassmembers class org.kiwix.videowebview.VideoEnabledWebView$JavascriptInterface { public *; }
#keep everything in kiwixlib
-keep class org.kiwix.kiwixlib.** { *; }

View File

@ -20,7 +20,7 @@ package org.kiwix.kiwixmobile.core.main
import android.view.ViewGroup
import android.webkit.WebView
import androidx.appcompat.app.AppCompatActivity
import com.cprcrack.videowebview.VideoEnabledWebChromeClient
import org.kiwix.videowebview.VideoEnabledWebChromeClient
class KiwixWebChromeClient(
private val callback: WebViewCallback,

View File

@ -27,7 +27,7 @@ import android.view.ContextMenu
import android.view.View
import android.view.ViewGroup
import android.webkit.WebView
import com.cprcrack.videowebview.VideoEnabledWebView
import org.kiwix.videowebview.VideoEnabledWebView
import io.reactivex.disposables.CompositeDisposable
import org.kiwix.kiwixmobile.core.BuildConfig
import org.kiwix.kiwixmobile.core.CoreApp.Companion.coreComponent

View File

@ -1,6 +1,6 @@
/*
* Kiwix Android
* Copyright (c) 2019 Kiwix <android.kiwix.org>
* Copyright (c) 2022 Kiwix <android.kiwix.org>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@ -16,7 +16,7 @@
*
*/
package com.cprcrack.videowebview;
package org.kiwix.videowebview;
import android.media.MediaPlayer;
import android.view.SurfaceView;

View File

@ -1,6 +1,6 @@
/*
* Kiwix Android
* Copyright (c) 2019 Kiwix <android.kiwix.org>
* Copyright (c) 2022 Kiwix <android.kiwix.org>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package com.cprcrack.videowebview
package org.kiwix.videowebview
import android.annotation.SuppressLint
import android.content.Context
@ -56,20 +56,20 @@ open class VideoEnabledWebView : WebView {
private var addedJavascriptInterface: Boolean
@SuppressWarnings("unused")
constructor(context: Context?) : super(context!!) {
constructor(context: Context) : super(context) {
addedJavascriptInterface = false
}
@SuppressWarnings("unused")
constructor(context: Context?, attrs: AttributeSet?) : super(
context!!, attrs
constructor(context: Context, attrs: AttributeSet?) : super(
context, attrs
) {
addedJavascriptInterface = false
}
@SuppressWarnings("unused")
constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(
context!!, attrs, defStyle
constructor(context: Context, attrs: AttributeSet?, defStyle: Int) : super(
context, attrs, defStyle
) {
addedJavascriptInterface = false
}