Bump version
This commit is contained in:
parent
e0f4ecaea8
commit
0bdca04f01
@ -12,8 +12,8 @@ android {
|
||||
applicationId "social.snort.app"
|
||||
minSdk 26
|
||||
targetSdk 33
|
||||
versionCode 13
|
||||
versionName "0.1.18"
|
||||
versionCode 14
|
||||
versionName "0.1.20"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
|
@ -3,16 +3,16 @@
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<application
|
||||
android:allowBackup="false"
|
||||
android:name=".Snort"
|
||||
android:allowBackup="false"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
android:hardwareAccelerated="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme"
|
||||
android:hardwareAccelerated="true"
|
||||
android:usesCleartextTraffic="true"
|
||||
tools:targetApi="31">
|
||||
<activity
|
||||
@ -23,11 +23,21 @@
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
|
||||
<data android:scheme="https" />
|
||||
<data android:host="snort.social" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.READ_CLIPBOARD" />
|
||||
<uses-permission android:name="android.permission.WRITE_CLIPBOARD" />
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
|
||||
</manifest>
|
@ -1,6 +1,7 @@
|
||||
package social.snort.app
|
||||
|
||||
import android.content.Intent
|
||||
import android.content.Intent.ACTION_VIEW
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.webkit.PermissionRequest
|
||||
@ -54,12 +55,23 @@ class MainActivity : ComponentActivity() {
|
||||
return true
|
||||
}
|
||||
}
|
||||
webView.settings.domStorageEnabled = true
|
||||
webView.settings.javaScriptEnabled = true
|
||||
webView.settings.domStorageEnabled = true;
|
||||
webView.settings.javaScriptEnabled = true;
|
||||
webView.settings.databaseEnabled = true;
|
||||
webView.setRendererPriorityPolicy(WebView.RENDERER_PRIORITY_IMPORTANT, true);
|
||||
setContentView(webView)
|
||||
|
||||
if (intent.data != null && intent.action === ACTION_VIEW) {
|
||||
webView.loadUrl(
|
||||
Uri.withAppendedPath(
|
||||
Uri.parse("https://appassets.androidplatform.net/"),
|
||||
intent.data!!.path
|
||||
).toString()
|
||||
)
|
||||
} else {
|
||||
webView.loadUrl("https://appassets.androidplatform.net/")
|
||||
}
|
||||
}
|
||||
|
||||
override fun onBackPressed() {
|
||||
if (webView.canGoBack() && webView.isFocused) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user