Skip to content

Commit ea812a1

Browse files
committed
Update to SDK 36, bump 2.0.1, add Gradle SHA-256, and refresh Fastlane text
1 parent e2e3f5b commit ea812a1

File tree

7 files changed

+32
-17
lines changed

7 files changed

+32
-17
lines changed

app/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ plugins {
55

66
android {
77
namespace = "com.qomarhsn.webgpt"
8-
compileSdk = 34
8+
compileSdk = 36
99

1010
defaultConfig {
1111
applicationId = "com.qomarhsn.webgpt"
1212
minSdk = 21
13-
targetSdk = 34
14-
versionCode = 200
15-
versionName = "2.0.0"
13+
targetSdk = 36
14+
versionCode = 201
15+
versionName = "2.0.1"
1616

1717
vectorDrawables.useSupportLibrary = true
1818
}

app/src/main/kotlin/com/qomarhsn/webgpt/MainActivity.kt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ class MainActivity : Activity() {
2828
@SuppressLint("SetJavaScriptEnabled")
2929
override fun onCreate(savedInstanceState: Bundle?) {
3030
super.onCreate(savedInstanceState)
31-
32-
webView = WebView(this).apply {
33-
layoutParams = android.view.ViewGroup.LayoutParams(
34-
android.view.ViewGroup.LayoutParams.MATCH_PARENT,
35-
android.view.ViewGroup.LayoutParams.MATCH_PARENT
36-
)
37-
31+
32+
// Use XML layout with fitsSystemWindows
33+
setContentView(R.layout.activity_main)
34+
35+
// Find WebView from layout
36+
webView = findViewById(R.id.webview)
37+
38+
webView.apply {
3839
settings.apply {
3940
javaScriptEnabled = true
4041
domStorageEnabled = true
41-
databaseEnabled = true
4242
setSupportZoom(true)
4343
builtInZoomControls = true
4444
displayZoomControls = false
@@ -147,8 +147,7 @@ class MainActivity : Activity() {
147147

148148
val urlToLoad = intent?.dataString ?: "https://chatgpt.com"
149149
webView.loadUrl(urlToLoad)
150-
151-
setContentView(webView)
150+
152151
applySystemTheme()
153152
}
154153

@@ -226,6 +225,7 @@ class MainActivity : Activity() {
226225
* Dark mode: #212121 background, white icons
227226
* Light mode: #ffffff background, dark icons
228227
*/
228+
@Suppress("DEPRECATION")
229229
private fun applySystemTheme() {
230230
val isDarkMode = (resources.configuration.uiMode and
231231
Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:id="@+id/root_container"
4+
android:layout_width="match_parent"
5+
android:layout_height="match_parent"
6+
android:fitsSystemWindows="true">
7+
8+
<WebView
9+
android:id="@+id/webview"
10+
android:layout_width="match_parent"
11+
android:layout_height="match_parent" />
12+
13+
</FrameLayout>

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id("com.android.application") version "8.7.3" apply false
2+
id("com.android.application") version "8.11.1" apply false
33
id("org.jetbrains.kotlin.android") version "2.0.21" apply false
44
}
55

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
• Updated to Android SDK 36

fastlane/metadata/android/en-US/full_description.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Features:
88
• Light/dark mode support based on system theme
99
• No tracking, analytics, or background activity
1010
• Very small APK (~150 KB)
11-
• Requires only internet and (optionally) microphone permission for voice input
11+
• Requires minimal permissions: internet access (required), microphone access (optional, for voice input), storage access (for file uploads and downloads)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME
77
zipStorePath=wrapper/dists
8+
distributionSha256Sum=20f1b1176237254a6fc204d8434196fa11a4cfb387567519c61556e8710aed78

0 commit comments

Comments
 (0)