commit 306a86785226140c4f634c482218afc7dede5cf1 Author: ua1zbe Date: Wed Sep 23 08:42:20 2026 +0300 Initial commit: APRS map for aprs.radiorubka.org diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b08832 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +*.iml +.gradle/ +local.properties +.idea/ +.DS_Store +build/ +.cxx/ +.externalNativeBuild/ +.kotlin/ +captures/ +*.apk +*.aab \ No newline at end of file diff --git a/app/build.gradle.kts b/app/build.gradle.kts new file mode 100644 index 0000000..03df060 --- /dev/null +++ b/app/build.gradle.kts @@ -0,0 +1,39 @@ +plugins { + id("com.android.application") + id("org.jetbrains.kotlin.android") +} + +android { + namespace = "ru.ua1zbe.aprsmap" + compileSdk = 34 + + defaultConfig { + applicationId = "ru.ua1zbe.aprsmap" + minSdk = 26 + targetSdk = 34 + versionCode = 1 + versionName = "1.0" + } + + buildTypes { + release { + isMinifyEnabled = false + } + } + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + + lint { + checkReleaseBuilds = false + abortOnError = false + } +} + +kotlin { + compilerOptions { + jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17) + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..bc67852 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/ru/ua1zbe/aprsmap/MainActivity.kt b/app/src/main/java/ru/ua1zbe/aprsmap/MainActivity.kt new file mode 100644 index 0000000..225fd0b --- /dev/null +++ b/app/src/main/java/ru/ua1zbe/aprsmap/MainActivity.kt @@ -0,0 +1,101 @@ +package ru.ua1zbe.aprsmap + +import android.annotation.SuppressLint +import android.app.Activity +import android.graphics.Color +import android.graphics.PorterDuff +import android.graphics.PorterDuffColorFilter +import android.os.Bundle +import android.view.Gravity +import android.view.ViewGroup +import android.webkit.WebChromeClient +import android.webkit.WebSettings +import android.webkit.WebView +import android.webkit.WebViewClient +import android.widget.FrameLayout +import android.widget.ProgressBar + +class MainActivity : Activity() { + + private lateinit var webView: WebView + private lateinit var progress: ProgressBar + + @SuppressLint("SetJavaScriptEnabled") + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + + val root = FrameLayout(this).apply { + setBackgroundColor(Color.rgb(6, 11, 20)) + } + + webView = WebView(this).apply { + layoutParams = FrameLayout.LayoutParams( + ViewGroup.LayoutParams.MATCH_PARENT, + ViewGroup.LayoutParams.MATCH_PARENT + ) + setBackgroundColor(Color.rgb(6, 11, 20)) + setInitialScale(0) + + settings.javaScriptEnabled = true + settings.domStorageEnabled = true + settings.databaseEnabled = true + settings.setSupportZoom(true) + settings.builtInZoomControls = true + settings.displayZoomControls = false + settings.useWideViewPort = true + settings.loadWithOverviewMode = true + settings.mediaPlaybackRequiresUserGesture = false + settings.mixedContentMode = WebSettings.MIXED_CONTENT_NEVER_ALLOW + + webViewClient = object : WebViewClient() { + override fun shouldOverrideUrlLoading(view: WebView, url: String): Boolean { + if (url.startsWith("http://") || url.startsWith("https://")) { + view.loadUrl(url) + } + return true + } + } + + webChromeClient = object : WebChromeClient() { + override fun onProgressChanged(view: WebView, newProgress: Int) { + val bar = this@MainActivity.progress + if (newProgress < 100) { + bar.visibility = ProgressBar.VISIBLE + bar.progress = newProgress + } else { + bar.visibility = ProgressBar.GONE + } + } + } + } + + progress = ProgressBar(this, null, android.R.attr.progressBarStyleHorizontal).apply { + max = 100 + progress = 0 + layoutParams = FrameLayout.LayoutParams( + ViewGroup.LayoutParams.MATCH_PARENT, + (2 * resources.displayMetrics.density).toInt() + ).apply { gravity = Gravity.TOP } + val d = progressDrawable?.mutate() + d?.colorFilter = PorterDuffColorFilter(Color.rgb(0, 229, 255), PorterDuff.Mode.SRC_IN) + progressDrawable = d + visibility = ProgressBar.GONE + } + + root.addView(webView) + root.addView(progress) + setContentView(root) + + webView.loadUrl(getString(R.string.map_url)) + } + + @Deprecated("Deprecated in Java") + override fun onBackPressed() { + finish() + } + + override fun onDestroy() { + webView.destroy() + super.onDestroy() + } +} \ No newline at end of file diff --git a/app/src/main/java/ru/ua1zbe/aprsmap/SplashActivity.kt b/app/src/main/java/ru/ua1zbe/aprsmap/SplashActivity.kt new file mode 100644 index 0000000..03a062a --- /dev/null +++ b/app/src/main/java/ru/ua1zbe/aprsmap/SplashActivity.kt @@ -0,0 +1,31 @@ +package ru.ua1zbe.aprsmap + +import android.app.Activity +import android.content.Intent +import android.os.Bundle +import android.os.Handler +import android.os.Looper +import android.view.WindowManager + +class SplashActivity : Activity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN) + setContentView(SplashView(this)) + + if (savedInstanceState == null) { + Handler(Looper.getMainLooper()).postDelayed({ + if (!isFinishing && !isDestroyed) { + startActivity(Intent(this, MainActivity::class.java)) + overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out) + finish() + } + }, SPLASH_DURATION_MS) + } + } + + companion object { + private const val SPLASH_DURATION_MS = 2600L + } +} \ No newline at end of file diff --git a/app/src/main/java/ru/ua1zbe/aprsmap/SplashView.kt b/app/src/main/java/ru/ua1zbe/aprsmap/SplashView.kt new file mode 100644 index 0000000..5abce63 --- /dev/null +++ b/app/src/main/java/ru/ua1zbe/aprsmap/SplashView.kt @@ -0,0 +1,141 @@ +package ru.ua1zbe.aprsmap + +import android.animation.ValueAnimator +import android.content.Context +import android.graphics.Canvas +import android.graphics.Color +import android.graphics.LinearGradient +import android.graphics.Paint +import android.graphics.Shader +import android.view.View +import android.view.animation.DecelerateInterpolator +import kotlin.math.sin + +class SplashView(context: Context) : View(context) { + + private val bgPaint = Paint() + private val textPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply { textAlign = Paint.Align.CENTER } + private val subPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply { + textAlign = Paint.Align.CENTER + color = Color.rgb(140, 180, 205) + } + private val progressPaint = Paint(Paint.ANTI_ALIAS_FLAG) + private val glowPaint = Paint(Paint.ANTI_ALIAS_FLAG) + + private var progress = 0f + + private val animator = ValueAnimator.ofFloat(0f, 1f).apply { + duration = 2400L + interpolator = DecelerateInterpolator() + addUpdateListener { + progress = it.animatedValue as Float + postInvalidateOnAnimation() + } + } + + init { + glowPaint.maskFilter = android.graphics.BlurMaskFilter( + dp(28).toFloat(), + android.graphics.BlurMaskFilter.Blur.NORMAL + ) + background = null + } + + override fun onAttachedToWindow() { + super.onAttachedToWindow() + animator.start() + } + + override fun onDetachedFromWindow() { + super.onDetachedFromWindow() + animator.cancel() + } + + override fun onDraw(canvas: Canvas) { + val w = width.toFloat() + val h = height.toFloat() + val t = progress + + if (t <= 0f) return + + bgPaint.shader = LinearGradient( + 0f, 0f, w, h, + intArrayOf( + Color.HSVToColor(floatArrayOf(206f + 18f * t, 0.45f, 0.05f)), + Color.HSVToColor(floatArrayOf(196f + 24f * t, 0.55f, 0.09f)), + Color.rgb(6, 11, 20) + ), + floatArrayOf(0f, 0.55f, 1f), + Shader.TileMode.CLAMP + ) + canvas.drawRect(0f, 0f, w, h, bgPaint) + + val ease = 1f - (1f - t) * (1f - t) + + val textDp = dp(64).toFloat() + textPaint.textSize = textDp * ease + + val text = TEXT + val fullWidth = textPaint.measureText(text) + val spacing = fullWidth / text.length + + var x = w / 2f - fullWidth / 2f + spacing / 2f + val baseY = h / 2f + textPaint.textSize * 0.36f - dp(8).toFloat() + var i = 0 + + glowPaint.color = Color.rgb(0, 229, 255) + val glowRadius = (dp(34).toFloat()) * (0.7f + 0.3f * sin(t * Math.PI.toFloat() * 2f)) + canvas.drawCircle(w / 2f, h / 2f - dp(6).toFloat(), glowRadius, glowPaint) + + for (ch in text) { + val wave = sin((i * 0.9f) + t * Math.PI.toFloat() * 2f) * dp(10).toFloat() * (1f - t * 0.7f) + val y = baseY - wave + + textPaint.shader = LinearGradient( + 0f, y - textPaint.textSize, 0f, y, + intArrayOf(Color.rgb(0, 229, 255), Color.rgb(0, 230, 118)), + null, Shader.TileMode.CLAMP + ) + textPaint.setShadowLayer(dp(6).toFloat(), 0f, 0f, Color.rgb(0, 229, 255)) + + val cx = x + canvas.save() + canvas.translate(cx, y) + canvas.drawText(ch.toString(), 0f, 0f, textPaint) + canvas.restore() + + textPaint.clearShadowLayer() + x += spacing + i++ + } + + subPaint.textSize = dp(14).toFloat() + subPaint.alpha = (255 * ease).toInt() + canvas.drawText(SUBTITLE, w / 2f, baseY + dp(46).toFloat(), subPaint) + + val lineY = h - dp(10).toFloat() + val lineLen = w * 0.55f + progressPaint.color = Color.rgb(30, 60, 90) + canvas.drawRoundRect( + w / 2f - lineLen / 2f, lineY - dp(2).toFloat(), + w / 2f + lineLen / 2f, lineY + dp(2).toFloat(), + dp(2).toFloat(), dp(2).toFloat(), progressPaint + ) + progressPaint.shader = LinearGradient( + w / 2f - lineLen / 2f, 0f, w / 2f + lineLen / 2f, 0f, + Color.rgb(0, 229, 255), Color.rgb(0, 230, 118), Shader.TileMode.CLAMP + ) + canvas.drawRoundRect( + w / 2f - lineLen / 2f, lineY - dp(2).toFloat(), + w / 2f - lineLen / 2f + lineLen * t, lineY + dp(2).toFloat(), + dp(2).toFloat(), dp(2).toFloat(), progressPaint + ) + } + + private fun dp(v: Int): Int = (v * resources.displayMetrics.density).toInt() + + companion object { + private const val TEXT = "APRS" + private const val SUBTITLE = "aprs.radiorubka.org" + } +} \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..4a44adc --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..ac94b34 --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..ac94b34 --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..edd55c9 --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #0A1626 + #060B14 + #060B14 + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..08c4501 --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,5 @@ + + + APRS RadioRubka + https://aprs.radiorubka.org/?center=67.5096,32.8271&zoom=8 + \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..45e203e --- /dev/null +++ b/app/src/main/res/values/themes.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..03c4890 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,4 @@ +plugins { + id("com.android.application") version "8.13.2" apply false + id("org.jetbrains.kotlin.android") version "2.2.21" apply false +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..295c9e9 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,9 @@ +org.gradle.jvmargs=-Xmx768m -XX:MaxMetaspaceSize=384m -XX:+UseSerialGC -Dfile.encoding=UTF-8 +kotlin.daemon.jvmargs=-Xmx512m -XX:+UseSerialGC +org.gradle.workers.max=1 +org.gradle.daemon=false +org.gradle.parallel=false +org.gradle.caching=false +kotlin.compiler.execution.strategy=in-process +android.nonTransitiveRClass=true +android.useAndroidX=false \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..f8e1ee3 Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..bad7c24 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100755 index 0000000..adff685 --- /dev/null +++ b/gradlew @@ -0,0 +1,248 @@ +#!/bin/sh + +# +# Copyright © 2015 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..e509b2d --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,93 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000..5ff56b0 --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1,18 @@ +pluginManagement { + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + } +} + +rootProject.name = "APRSmap" +include(":app") \ No newline at end of file