Skip to content
Closed
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
132 changes: 17 additions & 115 deletions app/src/main/assets/swv.properties
Original file line number Diff line number Diff line change
@@ -1,154 +1,56 @@
# ===================================================================
# Smart WebView v8 - Main Configuration File
#
# This is the central place to configure your app's behavior.
# Simply edit the values below and rebuild your project.
# Anne Ajandası - Main Configuration File
# ===================================================================

# ===========================================
# ANDROID BUILD CONFIGURATION
# These values are read by Gradle at build time.
# ===========================================
# build.application.id is reused for both namespace and applicationId.
build.application.id=mgks.os.swv
build.version.code=9
build.version.name=8.1.1
build.application.id=com.anneajandasi.app
build.version.code=1
build.version.name=1.0

# --- SDK Versions ---
# NOTE: Changing these requires a Gradle Sync in Android Studio.
# It's recommended to keep these updated to modern standards.
# build.sdk.compile will be reused for both compileSdk and targetSdk version.
build.sdk.compile=37
build.sdk.min=24

# ===========================================
# APP CONTEXT CONFIGURATION
# These values are read by the SWVContext during app runtime.
# ===========================================
# --- Debug & Development ---
# Enable verbose logging and other debug features. MUST be false for production.
debug.mode=true
debug.mode=false

# --- URL Configuration ---
# The main URL your app will load.
# Example: https://your-website.com
# Example: file:///android_asset/index.html
app.url=https://mgks.github.io/Android-SmartWebView/

# The local HTML file to show when the app is offline.
app.url=https://anneajandasi.com.tr
offline.url=file:///android_asset/web/offline.html

# The base URL for the search feature (used in Drawer Layout).
search.url=https://www.google.com/search?q=
external.url.exception.list=anneajandasi.com.tr,www.anneajandasi.com.tr

# A list of external domains that should still open inside the app's WebView.
# Comma-separated, no spaces. Example: domain1.com,sub.domain2.com
external.url.exception.list=mgks.dev,mgks.github.io


# --- Feature Flags (true/false) ---
# Enable file uploads from a web form (<input type="file">).
feature.uploads=true

# Allow users to capture photos/videos directly from the camera for uploads.
feature.camera.uploads=true

# Allow selecting multiple files for upload.
feature.multiple.uploads=true

# Enable injection of a custom stylesheet. The stylesheet must be placed at `app/src/main/assets/web/custom.css`.
feature.custom.css=false

# Allow users to copy and paste text within the WebView.
feature.copy.paste=true

# Enable the pull-to-refresh gesture.
feature.pull.refresh=false

# Show a progress bar at the bottom during page loads.
feature.progress.bar=false

# Allow users to pinch-to-zoom in the WebView.
feature.pull.refresh=true
feature.progress.bar=true
feature.zoom=false

# Allow the WebView to save form data and use autofill.
feature.save.form=false

# Open external links (not in the exception list) in an external browser/tab.
feature.open.external.urls=true

# If opening external URLs, use modern Chrome Custom Tabs.
feature.chrome.tabs=true

# Exit the app instead of navigating back in WebView history. Default is false.
behavior.back.exits=false

# Show a confirmation dialog before exiting the app on back press.
feature.exit.dialog=true

permissions.on.launch=NOTIFICATIONS

# --- Permissions ---
# Comma-separated list of permission groups to request on app launch.
# The order here determines the order of the request dialogs.
# Available groups: LOCATION, NOTIFICATIONS, STORAGE
permissions.on.launch=NOTIFICATIONS,LOCATION


# --- Security ---
# Verify SSL certificates for HTTPS connections. Set to false only for development with self-signed certs.
security.verify.ssl=true
# Block screenshots, screen recording, and content visibility in the "recents" screen.
# Default is false. Set to true to enforce for the entire app session.
security.block.screenshots=false
# Allow the WebView to accept third-party cookies. Required for some captcha (like Google reCAPTCHA) and social login providers.
# Default is false. Set to true to enable.
security.accept.thirdparty.cookies=false

# --- UI & Theme ---
# Set the default device orientation. 0=Unspecified, 1=Portrait, 2=Landscape
ui.orientation=0

# Set the main app layout. 0=Fullscreen, 1=Drawer Layout
ui.layout=0

# Show the header/toolbar when ui.layout is 1
ui.orientation=1
ui.layout=1
ui.drawer.header=true

# Keep the system splash screen visible until the first page loads.
# If false, a welcome screen inside the app will show during loading.
ui.splash.extend=true

# --- User Agent ---
# Append a custom string to the end of the default User Agent.
agent.postfix.enabled=true
agent.postfix.value=SWVAndroid

# Completely replace the User Agent with a custom string.
agent.postfix.value=AnneAjandasi
agent.override.enabled=false
agent.override.value=Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Mobile Safari/537.36

analytics.gtag.id=

# --- Analytics ---
# Your Google Analytics Measurement ID (e.g., "G-XXXXXXXXXX"). Leave blank to disable.
analytics.gtag.id=G-7XXC1C7CRQ
plugins.enabled=RatingPlugin,NetworkInfoPlugin,SharePlugin,DialogPlugin,AdMobPlugin

plugins.playground.enabled=false

# --- Plugins & Permissions ---
# Comma-separated list of plugins to enable.
# Core Plugins: RatingPlugin, LocationPlugin, DialogPlugin, GeolocationCachePlugin, NetworkInfoPlugin, ClipboardPlugin, SharePlugin
# Premium Plugins: AdMobPlugin, JSInterfacePlugin, ToastPlugin, QRScannerPlugin, BiometricPlugin, ImageCompressionPlugin
plugins.enabled=RatingPlugin,LocationPlugin,GeolocationCachePlugin,NetworkInfoPlugin,ClipboardPlugin,SharePlugin,DialogPlugin,AdMobPlugin,JSInterfacePlugin,ToastPlugin,QRScannerPlugin,BiometricPlugin,ImageCompressionPlugin

# Enable the Playground floating UI for testing plugins. Set to false for production.
plugins.playground.enabled=true

# --- Plugins Configuration ---
# RatingsPlugin
# Only active if plugins.enabled has RatingPlugin enabled.
rating.install.days=3
rating.launch.times=10
rating.launch.times=5
rating.remind.interval=2

# BiometricPlugin
# Only active if plugins.enabled has BiometricPlugin enabled.
biometric.trigger.launch=false