Bootstrap KwabaTV Gradle project, minimal WebView shell
Gradle wrapper pinned to 8.7, AGP 8.5.2, compileSdk 34/minSdk 21/ targetSdk 34 - the tested combination from the original app. MainActivity is a placeholder that just loads BuildConfig.WEBSITE_URL (the new /tv room-list route); the real key-mapping logic is a separate follow-up commit. Note for future builds on this machine: Android Studio's bundled JBR is JDK 25, which Gradle 8.7 cannot run on at all (crashes at startup with a bare version-string error). Built and verified with a separately-installed Temurin JDK 21 instead (C:\Users\GGB\jdks\jdk-21.0.12.1+1) - set JAVA_HOME to that for any Gradle command in this repo, not the Android Studio JBR. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LHgWjmEJXsJEi1EVAoTp4K
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package de.ggb.kwabatv
|
||||
|
||||
import android.app.Activity
|
||||
import android.os.Bundle
|
||||
import android.webkit.WebView
|
||||
|
||||
class MainActivity : Activity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
val webView = WebView(this)
|
||||
setContentView(webView)
|
||||
webView.settings.javaScriptEnabled = true
|
||||
webView.settings.domStorageEnabled = true
|
||||
webView.loadUrl(BuildConfig.WEBSITE_URL)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user