Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

### 📥 Get Bansify Browser

[![Get on Google Play](https://img.shields.io/badge/Google_Play-Get%20it%20on%20Play%20Store-00875A?style=for-the-badge&logo=google-play&logoColor=white)](https://play.google.com/store/apps/details?id=com.gothwad.browser)
[![Get on Google Play](https://img.shields.io/badge/Google_Play-Get%20it%20on%20Play%20Store-00875A?style=for-the-badge&logo=google-play&logoColor=white)](https://play.google.com/store/apps/details?id=com.bansify.internet)
[![Get on JioStore](https://img.shields.io/badge/JioStore-Available%20on%20Jio%20Set--Top%20Box-0A2885?style=for-the-badge&logo=reliance&logoColor=white)](https://www.jio.com/fiber/services/set-top-box)
[![Official Website](https://img.shields.io/badge/Official_Website-Visit%20gothwad.com-FF6F00?style=for-the-badge&logo=google-chrome&logoColor=white)](https://gothwad.com)
[![Direct Download](https://img.shields.io/badge/GitHub-Download%20Latest%20Release-181717?style=for-the-badge&logo=github&logoColor=white)](https://github.com/GothwadTech/browser/releases)
Expand Down Expand Up @@ -95,6 +95,15 @@ Bansify Browser is built with a singular mission: **bring desktop PC Chrome-grad
## 💻 Multi-Platform Installation Guide

### 📱 1. Android (TV, Phones & Tablets)

**Android package / application ID:** `com.bansify.internet` (common-module resource namespace:
`com.bansify.internet.common`). App and common-module sources and tests live under
`src/main/java/com/bansify/internet/` and `src/test/java/com/bansify/internet/` in their respective modules.

> **Package change:** Android treats this package as a separate app from builds using the previous
> package ID. It can be installed alongside the old app, but existing app data, preferences and
> permissions are not automatically migrated.

1. **Google Play Store / JioStore:** Search for **"Bansify Browser"** and install with 1-click.
2. **Direct APK Side-loading:**
- Download `GothwadTVBrowser-vX.X.X-Release.apk` from [GitHub Releases](https://github.com/GothwadTech/browser/releases).
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ plugins {
}

android {
namespace = "com.gothwad.browser"
namespace = "com.bansify.internet"

defaultConfig {
applicationId = "com.gothwad.browser"
applicationId = "com.bansify.internet"
val vCode = (project.findProperty("versionCode") as? String)?.toIntOrNull() ?: 2
val vName = (project.findProperty("versionName") as? String) ?: "1.0.$vCode"
versionCode = vCode
Expand Down
2 changes: 1 addition & 1 deletion app/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

android {
namespace = "com.gothwad.browser.common"
namespace = "com.bansify.internet.common"
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion app/common/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-keepclassmembers class * extends com.gothwad.browser.utils.activemodel.ActiveModel {
-keepclassmembers class * extends com.bansify.internet.utils.activemodel.ActiveModel {
<init>(...);
}
2 changes: 1 addition & 1 deletion app/common/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-keepclassmembers class * extends com.gothwad.browser.utils.activemodel.ActiveModel {
-keepclassmembers class * extends com.bansify.internet.utils.activemodel.ActiveModel {
<init>(...);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser
package com.bansify.internet

import android.app.Application
import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.gothwad.browser
package com.bansify.internet

import android.annotation.SuppressLint
import android.content.SharedPreferences
import android.os.Build
import com.gothwad.browser.utils.Utils
import com.gothwad.browser.utils.observable.ObservableValue
import com.bansify.internet.utils.Utils
import com.bansify.internet.utils.observable.ObservableValue

class Config(val prefs: SharedPreferences) {
companion object {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.model
package com.bansify.internet.model

import androidx.room.*
import java.io.InputStream
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.model
package com.bansify.internet.model

import androidx.room.ColumnInfo
import androidx.room.Entity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.model
package com.bansify.internet.model

import androidx.room.Entity
import androidx.room.Ignore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.model
package com.bansify.internet.model

import org.json.JSONObject
import java.text.SimpleDateFormat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.model
package com.bansify.internet.model

import androidx.room.ColumnInfo
import androidx.room.Entity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.model
package com.bansify.internet.model

import android.content.Context
import android.graphics.Bitmap
Expand All @@ -8,9 +8,9 @@ import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import com.gothwad.browser.AppContext
import com.gothwad.browser.utils.Utils
import com.gothwad.browser.webengine.WebEngineFactory
import com.bansify.internet.AppContext
import com.bansify.internet.utils.Utils
import com.bansify.internet.webengine.WebEngineFactory
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import org.json.JSONException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.gothwad.browser.singleton
package com.bansify.internet.singleton

import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.util.Log
import android.util.LruCache
import android.webkit.WebChromeClient
import android.webkit.WebView
import com.gothwad.browser.AppContext
import com.gothwad.browser.model.HostConfig
import com.gothwad.browser.utils.FaviconExtractor
import com.bansify.internet.AppContext
import com.bansify.internet.model.HostConfig
import com.bansify.internet.utils.FaviconExtractor
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils
package com.bansify.internet.utils

import android.os.SystemClock
import android.util.Log
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils
package com.bansify.internet.utils

import android.util.Log
import android.view.InputDevice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* See the License for the specific language governing permissions and
* limitations under the License. */

package com.gothwad.browser.utils
package com.bansify.internet.utils

import android.net.Uri
import android.webkit.MimeTypeMap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils
package com.bansify.internet.utils

import android.app.Activity
import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils
package com.bansify.internet.utils

import android.util.JsonReader
import android.webkit.MimeTypeMap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils
package com.bansify.internet.utils

import android.content.Context
import android.hardware.input.InputManager
Expand All @@ -10,15 +10,15 @@ import android.view.InputEvent
import android.view.KeyEvent
import android.view.MotionEvent
import android.view.View
import com.gothwad.browser.AppContext
import com.bansify.internet.AppContext

/**
* Inventory of the physical input devices attached to this box, plus the user's per-device block list.
*
* Deliberately narrow: it answers "what is plugged in" ([getConnectedDevices], [isPhysicalMouseConnected],
* [isPhysicalKeyboardConnected]) and "has the user ignored this device" ([isDeviceBlocked], [setDeviceBlocked]),
* and reports changes through [InputDevicesListener]. Everything that *acts* on those answers — the overlay
* cursor, joystick-axis D-pad translation, which [com.gothwad.browser.Config.InputMode] the app is in — lives in
* cursor, joystick-axis D-pad translation, which [com.bansify.internet.Config.InputMode] the app is in — lives in
* the activity/overlay code and is driven by the platform's own flags.
*
* This class must never rewrite, inject or synthesize an input event: a real event reaches the WebView exactly as
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils
package com.bansify.internet.utils

import android.content.Context
import android.graphics.Bitmap
Expand All @@ -11,8 +11,8 @@ import android.view.PointerIcon
import android.view.View
import android.view.Window
import androidx.annotation.RequiresApi
import com.gothwad.browser.AppContext
import com.gothwad.browser.Config
import com.bansify.internet.AppContext
import com.bansify.internet.Config
import java.util.concurrent.ConcurrentHashMap

object HardwareMousePointerManager {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils
package com.bansify.internet.utils

import android.view.KeyEvent

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils
package com.bansify.internet.utils

import android.annotation.SuppressLint
import android.app.ActivityManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils.activemodel
package com.bansify.internet.utils.activemodel

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
Expand All @@ -9,7 +9,7 @@ import kotlinx.coroutines.cancel
* This class is like ViewModel from Jetpack but better =)
* It can be used not only with activities and Fragments, but also for example
* with Services or other Active models (but with manual marking as Needless -
* @see com.gothwad.browser.utils.statemodel.ActiveModelsRepository#markAsNeedless()).
* @see com.bansify.internet.utils.statemodel.ActiveModelsRepository#markAsNeedless()).
* This also will survive not only configuration changes but also Activity switching -
* If you go from one Activity to another and they both accessing the same ActiveModel
* class then actually they will access the same object what can be good for performance.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils.activemodel
package com.bansify.internet.utils.activemodel

import android.app.Activity
import android.app.Application
Expand Down Expand Up @@ -45,7 +45,7 @@ object ActiveModelsRepository {

/**
* Get active model from repository. If your user is not Activity then make sure that you manually marked as needless
* (@see com.gothwad.browser.utils.statemodel.ActiveModelsRepository#markAsNeedless())
* (@see com.bansify.internet.utils.statemodel.ActiveModelsRepository#markAsNeedless())
* all your "active models" when they are not needed (on your component onDestroy(), clear(), finalize() or similar)
*/
@Suppress("UNCHECKED_CAST")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils.observable
package com.bansify.internet.utils.observable

import android.os.Build.VERSION_CODES
import androidx.annotation.RequiresApi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.utils.observable
package com.bansify.internet.utils.observable

import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEventObserver
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.gothwad.browser.webengine
package com.bansify.internet.webengine

import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.view.View
import android.view.ViewGroup
import com.gothwad.browser.widgets.cursor.CursorDrawerDelegate
import com.bansify.internet.widgets.cursor.CursorDrawerDelegate

interface WebEngine {
val url: String?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.gothwad.browser.webengine
package com.bansify.internet.webengine

import android.content.Context
import android.util.Log
import androidx.annotation.UiThread
import com.gothwad.browser.AppContext
import com.gothwad.browser.Config
import com.gothwad.browser.model.WebTabState
import com.gothwad.browser.widgets.cursor.CursorLayout
import com.bansify.internet.AppContext
import com.bansify.internet.Config
import com.bansify.internet.model.WebTabState
import com.bansify.internet.widgets.cursor.CursorLayout

interface WebEngineProviderCallback {
suspend fun initialize(context: Context, webViewContainer: CursorLayout)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.gothwad.browser.webengine
package com.bansify.internet.webengine

import android.app.Activity
import android.content.Intent
import android.graphics.Bitmap
import android.net.Uri
import android.view.View
import com.gothwad.browser.model.Download
import com.gothwad.browser.model.HomePageLink
import com.gothwad.browser.widgets.cursor.CursorDrawerDelegate
import com.bansify.internet.model.Download
import com.bansify.internet.model.HomePageLink
import com.bansify.internet.widgets.cursor.CursorDrawerDelegate
import java.io.InputStream

interface WebEngineWindowProviderCallback {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.widgets.cursor
package com.bansify.internet.widgets.cursor

import android.animation.ValueAnimator
import android.content.Context
Expand All @@ -17,9 +17,9 @@ import android.view.MotionEvent
import android.view.View
import android.view.ViewConfiguration
import android.view.WindowManager
import com.gothwad.browser.AppContext
import com.gothwad.browser.Config
import com.gothwad.browser.utils.Utils
import com.bansify.internet.AppContext
import com.bansify.internet.Config
import com.bansify.internet.utils.Utils

class CursorDrawerDelegate(val context: Context, val surface: View) {
private var cursorRadius: Int = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser.widgets.cursor
package com.bansify.internet.widgets.cursor

import android.content.Context
import android.graphics.Canvas
Expand All @@ -10,8 +10,8 @@ import android.view.MotionEvent
import android.widget.FrameLayout
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.gothwad.browser.AppContext
import com.gothwad.browser.utils.DPADNavigationEventsAdapter
import com.bansify.internet.AppContext
import com.bansify.internet.utils.DPADNavigationEventsAdapter


/**
Expand Down Expand Up @@ -75,7 +75,7 @@ class CursorLayout @JvmOverloads constructor(context: Context, attrs: AttributeS

override fun dispatchGenericMotionEvent(event: MotionEvent): Boolean {
Log.d("CursorLayout", "dispatchGenericMotionEvent: $event")
val hwInput = com.gothwad.browser.utils.HardwareInputManager.getInstance(context)
val hwInput = com.bansify.internet.utils.HardwareInputManager.getInstance(context)
if (hwInput.isDeviceBlocked(event)) return true

val isMouseOrTouch = (event.source and InputDevice.SOURCE_MOUSE) != 0 ||
Expand All @@ -98,7 +98,7 @@ class CursorLayout @JvmOverloads constructor(context: Context, attrs: AttributeS
}

override fun dispatchTouchEvent(ev: MotionEvent): Boolean {
val hwInput = com.gothwad.browser.utils.HardwareInputManager.getInstance(context)
val hwInput = com.bansify.internet.utils.HardwareInputManager.getInstance(context)
if (hwInput.isDeviceBlocked(ev)) return true
if (!cursorDrawerDelegate.isDispatchingSyntheticEvent) {
cursorDrawerDelegate.hideCursor()
Expand All @@ -109,7 +109,7 @@ class CursorLayout @JvmOverloads constructor(context: Context, attrs: AttributeS
override fun onResolvePointerIcon(event: MotionEvent, pointerIndex: Int): android.view.PointerIcon? {
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
val systemIcon = super.onResolvePointerIcon(event, pointerIndex)
return com.gothwad.browser.utils.HardwareMousePointerManager.resolvePointerIcon(context, systemIcon)
return com.bansify.internet.utils.HardwareMousePointerManager.resolvePointerIcon(context, systemIcon)
}
return super.onResolvePointerIcon(event, pointerIndex)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gothwad.browser
package com.bansify.internet

import android.content.SharedPreferences
import org.junit.Assert.assertEquals
Expand Down
Loading
Loading