diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..aa724b7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
+local.properties
diff --git a/Screenshot_1.png b/Screenshot_1.png
new file mode 100644
index 0000000..da500eb
Binary files /dev/null and b/Screenshot_1.png differ
diff --git a/Screenshot_2.png b/Screenshot_2.png
new file mode 100644
index 0000000..abba1a1
Binary files /dev/null and b/Screenshot_2.png differ
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
new file mode 100644
index 0000000..cf5cac3
--- /dev/null
+++ b/app/build.gradle.kts
@@ -0,0 +1,49 @@
+plugins {
+ alias(libs.plugins.android.application)
+ alias(libs.plugins.jetbrains.kotlin.android)
+}
+
+android {
+ namespace = "com.jstappdev.e6bflightcomputer"
+ compileSdk = 35
+
+ defaultConfig {
+ applicationId = "com.jstappdev.e6bflightcomputer"
+ minSdk = 26
+ targetSdk = 35
+ versionCode = 1
+ versionName = "1.0"
+ }
+
+ buildTypes {
+ release {
+ isMinifyEnabled = false
+ }
+ }
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+ }
+ kotlinOptions {
+ jvmTarget = "1.8"
+ }
+ buildFeatures {
+ compose = true
+ }
+ composeOptions {
+ kotlinCompilerExtensionVersion = "1.5.1"
+ }
+ packaging {
+ resources {
+ excludes += "/META-INF/{AL2.0,LGPL2.1}"
+ }
+ }
+ buildToolsVersion = "34.0.0"
+}
+
+dependencies {
+ implementation(libs.androidx.activity.ktx)
+ implementation(libs.androidx.appcompat)
+ implementation(libs.androidx.activity.compose)
+ implementation(libs.androidx.ui.graphics.android)
+}
\ No newline at end of file
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..481bb43
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/app/release/app-release.apk b/app/release/app-release.apk
new file mode 100644
index 0000000..d440bb7
Binary files /dev/null and b/app/release/app-release.apk differ
diff --git a/app/release/baselineProfiles/0/app-release.dm b/app/release/baselineProfiles/0/app-release.dm
new file mode 100644
index 0000000..260833d
Binary files /dev/null and b/app/release/baselineProfiles/0/app-release.dm differ
diff --git a/app/release/baselineProfiles/1/app-release.dm b/app/release/baselineProfiles/1/app-release.dm
new file mode 100644
index 0000000..04b0396
Binary files /dev/null and b/app/release/baselineProfiles/1/app-release.dm differ
diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json
new file mode 100644
index 0000000..f979018
--- /dev/null
+++ b/app/release/output-metadata.json
@@ -0,0 +1,37 @@
+{
+ "version": 3,
+ "artifactType": {
+ "type": "APK",
+ "kind": "Directory"
+ },
+ "applicationId": "com.jstappdev.e6bflightcomputer",
+ "variantName": "release",
+ "elements": [
+ {
+ "type": "SINGLE",
+ "filters": [],
+ "attributes": [],
+ "versionCode": 1,
+ "versionName": "0.1",
+ "outputFile": "app-release.apk"
+ }
+ ],
+ "elementType": "File",
+ "baselineProfiles": [
+ {
+ "minApi": 28,
+ "maxApi": 30,
+ "baselineProfiles": [
+ "baselineProfiles/1/app-release.dm"
+ ]
+ },
+ {
+ "minApi": 31,
+ "maxApi": 2147483647,
+ "baselineProfiles": [
+ "baselineProfiles/0/app-release.dm"
+ ]
+ }
+ ],
+ "minSdkVersionForDexing": 26
+}
\ 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..608d40b
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/ic_launcher-playstore.png b/app/src/main/ic_launcher-playstore.png
new file mode 100644
index 0000000..846b2f6
Binary files /dev/null and b/app/src/main/ic_launcher-playstore.png differ
diff --git a/app/src/main/java/com/jstappdev/e6bflightcomputer/Back.kt b/app/src/main/java/com/jstappdev/e6bflightcomputer/Back.kt
new file mode 100644
index 0000000..df4f5f2
--- /dev/null
+++ b/app/src/main/java/com/jstappdev/e6bflightcomputer/Back.kt
@@ -0,0 +1,28 @@
+package com.jstappdev.e6bflightcomputer
+
+import android.content.Intent
+import android.os.Bundle
+import androidx.appcompat.app.AppCompatActivity
+import androidx.appcompat.widget.AppCompatImageButton
+import androidx.appcompat.widget.SwitchCompat
+
+class Back : AppCompatActivity() {
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ setContentView(R.layout.back)
+ val lockButton: AppCompatImageButton = findViewById(R.id.lockButton)
+ val backView: BackView = findViewById(R.id.wind)
+
+ backView.setLockButton(lockButton)
+
+ findViewById(R.id.switch2).setOnCheckedChangeListener { _, _ ->
+ startActivity(
+ Intent(
+ this, Front::class.java
+ )
+ )
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/jstappdev/e6bflightcomputer/BackView.kt b/app/src/main/java/com/jstappdev/e6bflightcomputer/BackView.kt
new file mode 100644
index 0000000..94f6602
--- /dev/null
+++ b/app/src/main/java/com/jstappdev/e6bflightcomputer/BackView.kt
@@ -0,0 +1,367 @@
+package com.jstappdev.e6bflightcomputer
+
+import android.annotation.SuppressLint
+import android.content.Context
+import android.graphics.Canvas
+import android.graphics.Color
+import android.graphics.Matrix
+import android.graphics.Paint
+import android.graphics.drawable.Drawable
+import android.util.AttributeSet
+import android.view.GestureDetector
+import android.view.MotionEvent
+import android.view.ScaleGestureDetector
+import android.view.View
+import androidx.appcompat.widget.AppCompatImageButton
+import androidx.core.content.ContextCompat
+import kotlin.math.atan2
+import kotlin.math.pow
+import kotlin.math.sqrt
+
+
+class BackView @JvmOverloads constructor(
+ context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
+) : View(context, attrs, defStyleAttr) {
+
+ private var sliderMatrixWithTranslation: Matrix = Matrix()
+ private var screenHeight: Int = 0
+ private var screenWidth: Int = 0
+ private var isDotSet: Boolean = false
+ private var isRotating = false
+ private var initialScaleFactor = 1.0f
+ private var sliderY = 0f
+ private var initialX = 0f
+ private var initialY = 0f
+ private val matrix = Matrix()
+ private var sliderDrawable: Drawable? = null
+ private var outerDrawable: Drawable? = null
+ private var innerDrawable: Drawable? = null
+ private val innerMatrix = Matrix()
+ private val gestureDetector = GestureDetector(context, GestureListener())
+ private var scaleGestureDetector = ScaleGestureDetector(context, ScaleListener())
+ private var scaleFactor = 1f
+ private var isZoomedIn = false
+ private var currentRotation = 0f
+ private var lastAngle = 0f
+ private var isPanning = false
+ private var lastTouchX = 0f
+ private var lastTouchY = 0f
+ private val paint = Paint()
+ private var dotX = 0f
+ private var dotY = 0f
+ private lateinit var lockButton: AppCompatImageButton
+ private var lockState: LockState = LockState.UNLOCKED
+
+ enum class LockState {
+ UNLOCKED, PARTIALLY_LOCKED, FULLY_LOCKED
+ }
+
+ fun setLockButton(button: AppCompatImageButton) {
+ this.lockButton = button
+ lockButton.setBackgroundResource(android.R.drawable.ic_menu_rotate)
+
+ lockButton.setOnClickListener { v: View? ->
+ lockState = when (lockState) {
+ LockState.UNLOCKED -> LockState.PARTIALLY_LOCKED
+ LockState.PARTIALLY_LOCKED -> LockState.FULLY_LOCKED
+ LockState.FULLY_LOCKED -> LockState.UNLOCKED
+ }
+ updateLockButton(lockButton)
+ }
+ }
+
+ private fun updateLockButton(v: AppCompatImageButton) {
+ when (lockState) {
+ LockState.UNLOCKED -> {
+ v.setImageDrawable(
+ ContextCompat.getDrawable(
+ context, android.R.drawable.ic_notification_overlay
+ )
+ )
+ v.setBackgroundResource(
+ android.R.drawable.ic_menu_rotate
+ )
+ }
+
+ LockState.PARTIALLY_LOCKED -> {
+ v.setBackgroundResource(android.R.drawable.ic_menu_rotate)
+ v.setImageDrawable(null)
+ }
+
+ LockState.FULLY_LOCKED -> {
+ v.setBackgroundResource(android.R.drawable.ic_lock_lock)
+ v.setImageDrawable(null)
+ }
+ }
+ }
+
+ init {
+ sliderDrawable = ContextCompat.getDrawable(context, R.drawable.wind_slider)
+ sliderDrawable?.setBounds(
+ 0, 0, sliderDrawable!!.intrinsicWidth, sliderDrawable!!.intrinsicHeight
+ )
+ outerDrawable = ContextCompat.getDrawable(context, R.drawable.wind_outer)
+ outerDrawable?.setBounds(
+ 0, 0, outerDrawable!!.intrinsicWidth, outerDrawable!!.intrinsicHeight
+ )
+ innerDrawable = ContextCompat.getDrawable(context, R.drawable.wind_dial)
+ innerDrawable?.setBounds(
+ 0, 0, innerDrawable!!.intrinsicWidth, innerDrawable!!.intrinsicHeight
+ )
+ paint.color = Color.RED
+ paint.style = Paint.Style.FILL
+ }
+
+ private inner class ScaleListener : ScaleGestureDetector.SimpleOnScaleGestureListener() {
+ override fun onScale(detector: ScaleGestureDetector): Boolean {
+ // Adjust the scale factor based on the scale gesture
+ scaleFactor *= detector.scaleFactor
+
+ // Restrict the scale factor to a certain range to prevent excessive zooming
+ scaleFactor = scaleFactor.coerceIn(0.1f, 5.0f)
+
+ // Apply the scale transformation
+ matrix.postScale(
+ detector.scaleFactor, detector.scaleFactor, detector.focusX, detector.focusY
+ )
+
+ // Update the slider matrix to match the new transformation
+ invalidate()
+
+ return true
+ }
+ }
+
+ override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
+ super.onMeasure(widthMeasureSpec, heightMeasureSpec)
+ screenWidth = MeasureSpec.getSize(widthMeasureSpec)
+ screenHeight = MeasureSpec.getSize(heightMeasureSpec)
+ initialScaleFactor = screenWidth.toFloat() / outerDrawable!!.intrinsicWidth.toFloat()
+ scaleFactor = initialScaleFactor
+
+ matrix.reset()
+
+ val drawableWidth = outerDrawable?.intrinsicWidth?.times(scaleFactor) ?: 0f
+ val drawableHeight = outerDrawable?.intrinsicHeight?.times(scaleFactor) ?: 0f
+
+ val dx = (screenWidth - drawableWidth) / 2f
+ val dy = (screenHeight - drawableHeight) / 2f
+
+ initialX = dx
+ initialY = dy
+
+ matrix.postScale(scaleFactor, scaleFactor)
+ matrix.postTranslate(dx, dy)
+
+ invalidate()
+ }
+
+ override fun onDraw(canvas: Canvas) {
+ super.onDraw(canvas)
+
+ // Draw the sliderDrawable with a scaled vertical translation of sliderY
+ canvas.save()
+ sliderMatrixWithTranslation.set(matrix)
+ sliderMatrixWithTranslation.postTranslate(
+ 0f, sliderY * scaleFactor
+ ) // Scale the translation
+ canvas.concat(sliderMatrixWithTranslation)
+ sliderDrawable?.draw(canvas)
+ canvas.restore()
+
+ // Draw the outerDrawable without any additional transformation
+ canvas.save()
+ canvas.concat(matrix)
+ outerDrawable?.draw(canvas)
+
+ innerMatrix.reset()
+ innerMatrix.postRotate(
+ currentRotation,
+ (outerDrawable?.intrinsicWidth ?: 0) / 2f,
+ (outerDrawable?.intrinsicHeight ?: 0) / 2f
+ )
+ canvas.concat(innerMatrix)
+ innerDrawable?.draw(canvas)
+
+ // Draw the wind mark (dot), if set, on top of everything
+ if (isDotSet) {
+ canvas.drawCircle(dotX, dotY, 10f, paint)
+ }
+
+ canvas.restore()
+ }
+
+
+ private inner class GestureListener : GestureDetector.SimpleOnGestureListener() {
+ override fun onDoubleTap(event: MotionEvent): Boolean {
+
+ scaleFactor = if (isZoomedIn) {
+ initialScaleFactor
+ } else {
+ 1.5f
+ }
+
+ val drawableWidth = outerDrawable?.intrinsicWidth?.times(scaleFactor) ?: 0f
+ val drawableHeight = outerDrawable?.intrinsicHeight?.times(scaleFactor) ?: 0f
+
+ val dx = (screenWidth - drawableWidth) / 2f
+ val dy = (screenHeight - drawableHeight) / 2f
+
+ matrix.reset()
+ matrix.postScale(scaleFactor, scaleFactor)
+ matrix.postTranslate(dx, dy + 590f.times(scaleFactor))
+
+ isZoomedIn = !isZoomedIn
+
+ invalidate()
+
+ return true
+ }
+ }
+
+ @SuppressLint("ClickableViewAccessibility")
+ override fun onTouchEvent(event: MotionEvent): Boolean {
+ gestureDetector.onTouchEvent(event)
+ scaleGestureDetector.onTouchEvent(event)
+
+ when (event.action and MotionEvent.ACTION_MASK) {
+ MotionEvent.ACTION_DOWN -> {
+ if (lockState != LockState.FULLY_LOCKED && isTouchInsideDial(event.x, event.y)) {
+ lastAngle = calculateAngle(event.x, event.y)
+ isRotating = true
+ } else {
+ isPanning = true
+ isRotating = false
+ lastTouchX = event.x
+ lastTouchY = event.y
+ }
+ }
+
+ MotionEvent.ACTION_MOVE -> {
+ if (isRotating) {
+ val newAngle = calculateAngle(event.x, event.y)
+ val deltaAngle = newAngle - lastAngle
+ currentRotation += deltaAngle
+ lastAngle = newAngle
+ invalidate()
+ } else if (isPanning) {
+ if (event.pointerCount == 1) {
+ val dx = event.x - lastTouchX
+ val dy = event.y - lastTouchY
+ if (lockState != LockState.FULLY_LOCKED && isTouchOutsideOuterDial(
+ event.x, event.y
+ )
+ ) sliderY += dy
+ else matrix.postTranslate(dx, dy)
+
+ invalidate()
+
+ lastTouchX = event.x
+ lastTouchY = event.y
+ }
+ }
+ }
+
+ MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> {
+ isRotating = false
+ isPanning = false
+ }
+ }
+
+ return true
+ }
+
+ private fun isTouchInsideDial(x: Float, y: Float): Boolean {
+ // Center of the drawable after translation and scaling
+ val centerX = outerDrawable!!.bounds.centerX().toFloat()
+ val centerY = outerDrawable!!.bounds.centerY().toFloat()
+
+ // Calculate the radius of the circle (considering scaling)
+ val radius = (innerDrawable?.intrinsicWidth ?: 0) / 2f * scaleFactor
+
+ // Apply the inverse of the outer matrix (translation + scaling)
+ val inverseOuterMatrix = Matrix()
+ matrix.invert(inverseOuterMatrix)
+
+ val point = floatArrayOf(x, y)
+ inverseOuterMatrix.mapPoints(point)
+
+ // Now apply the inverse of the rotation around the center
+ val angleInRadians = Math.toRadians(-currentRotation.toDouble()).toFloat()
+ val sinAngle = Math.sin(angleInRadians.toDouble()).toFloat()
+ val cosAngle = Math.cos(angleInRadians.toDouble()).toFloat()
+
+ val dx = point[0] - centerX
+ val dy = point[1] - centerY
+
+ // Apply reverse rotation
+ val transformedX = centerX + (dx * cosAngle - dy * sinAngle)
+ val transformedY = centerY + (dx * sinAngle + dy * cosAngle)
+
+ // Calculate the distance from the transformed touch point to the center of the circle
+ val distance =
+ sqrt((transformedX - centerX).pow(2) + (transformedY - centerY).pow(2)) * scaleFactor
+
+ // Optionally, update the dot position if the touch is inside transparent area
+ val isInnerDial = distance <= radius - 170 * scaleFactor
+ if (lockState == LockState.UNLOCKED && isInnerDial && !isPanning && !isRotating) {
+ dotX = transformedX
+ dotY = transformedY
+ isDotSet = true
+ invalidate()
+ }
+
+ return distance <= radius && !isInnerDial
+ }
+
+
+ private fun isTouchOutsideOuterDial(x: Float, y: Float): Boolean {
+ val centerX = outerDrawable!!.bounds.centerX()
+ val centerY = outerDrawable!!.bounds.centerY()
+
+ // Calculate the radius of the circle
+ val radius = (innerDrawable?.intrinsicWidth ?: 0) / 2f
+ // Apply the inverse matrix transformation to get the position before transformation
+ val inverseMatrix = Matrix()
+ matrix.invert(inverseMatrix)
+
+ val point = floatArrayOf(x, y)
+ inverseMatrix.mapPoints(point)
+
+ // Get the transformed touch coordinates
+ val transformedX = point[0]
+ val transformedY = point[1]
+
+ // Calculate the distance from the touch point to the center of the circle
+ val distance = sqrt(((transformedX - centerX).pow(2) + (transformedY - centerY).pow(2)))
+
+ // Return true if the distance is less than or equal to the radius
+ return distance > (radius + 120)
+ }
+
+
+ private fun calculateAngle(x: Float, y: Float): Float {
+ // Get the center of the outerDrawable in screen coordinates
+ val centerX = outerDrawable!!.bounds.centerX()
+ val centerY = outerDrawable!!.bounds.centerY()
+
+ // Apply the inverse matrix transformation to get the position before transformation
+ val inverseMatrix = Matrix()
+ matrix.invert(inverseMatrix)
+
+ val point = floatArrayOf(x, y)
+ inverseMatrix.mapPoints(point)
+
+ // Get the transformed touch coordinates
+ val dx = point[0]
+ val dy = point[1]
+
+ // Calculate the angle from the adjusted touch point to the center of the drawable
+ val angle = Math.toDegrees(
+ atan2((dy - centerY).toDouble(), (dx - centerX).toDouble())
+ ).toFloat()
+
+ // Normalize the angle to be between 0 and 360 degrees
+ return if (angle < 0) angle + 360f else angle
+ }
+}
diff --git a/app/src/main/java/com/jstappdev/e6bflightcomputer/Front.kt b/app/src/main/java/com/jstappdev/e6bflightcomputer/Front.kt
new file mode 100644
index 0000000..4117464
--- /dev/null
+++ b/app/src/main/java/com/jstappdev/e6bflightcomputer/Front.kt
@@ -0,0 +1,27 @@
+package com.jstappdev.e6bflightcomputer
+
+import android.content.Intent
+import android.os.Bundle
+import androidx.appcompat.app.AppCompatActivity
+import androidx.appcompat.widget.AppCompatImageButton
+import androidx.appcompat.widget.SwitchCompat
+
+class Front : AppCompatActivity() {
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ setContentView(R.layout.front)
+ val lockButton: AppCompatImageButton = findViewById(R.id.lockButton)
+ val frontView: FrontView = findViewById(R.id.tas)
+
+ frontView.setLockButton(lockButton)
+
+ findViewById(R.id.switch1).setOnCheckedChangeListener { _, _ ->
+ startActivity(
+ Intent(
+ this, Back::class.java
+ )
+ )
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/jstappdev/e6bflightcomputer/FrontView.kt b/app/src/main/java/com/jstappdev/e6bflightcomputer/FrontView.kt
new file mode 100644
index 0000000..cc3605f
--- /dev/null
+++ b/app/src/main/java/com/jstappdev/e6bflightcomputer/FrontView.kt
@@ -0,0 +1,247 @@
+package com.jstappdev.e6bflightcomputer
+
+import android.annotation.SuppressLint
+import android.content.Context
+import android.graphics.Canvas
+import android.graphics.Matrix
+import android.graphics.drawable.Drawable
+import android.util.AttributeSet
+import android.view.GestureDetector
+import android.view.MotionEvent
+import android.view.ScaleGestureDetector
+import android.view.View
+import androidx.appcompat.widget.AppCompatImageButton
+import androidx.core.content.ContextCompat
+import kotlin.math.atan2
+import kotlin.math.pow
+import kotlin.math.sqrt
+
+class FrontView @JvmOverloads constructor(
+ context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
+) : View(context, attrs, defStyleAttr) {
+
+ private var isRotating = false
+ private var initialScaleFactor = 1.0f
+ private val matrix = Matrix()
+ private var outerDrawable: Drawable? = null
+ private var innerDrawable: Drawable? = null
+ private val innerMatrix = Matrix()
+ private val gestureDetector = GestureDetector(context, GestureListener())
+ private var scaleFactor = 1f
+ private var isZoomedIn = false
+ private var currentRotation = 290.5f
+ private var lastAngle = 0f
+ private var isPanning = false
+ private var lastTouchX = 0f
+ private var lastTouchY = 0f
+ private lateinit var lockButton: AppCompatImageButton
+ private var isLocked = false
+ private var scaleGestureDetector: ScaleGestureDetector
+
+ init {
+ outerDrawable = ContextCompat.getDrawable(context, R.drawable.tasbase)
+ outerDrawable?.setBounds(
+ 0, 0, outerDrawable!!.intrinsicWidth, outerDrawable!!.intrinsicHeight
+ )
+ innerDrawable = ContextCompat.getDrawable(context, R.drawable.tasdial)
+ innerDrawable?.setBounds(
+ 0, 0, innerDrawable!!.intrinsicWidth, innerDrawable!!.intrinsicHeight
+ )
+ scaleGestureDetector = ScaleGestureDetector(context, ScaleListener())
+ }
+
+ private inner class ScaleListener : ScaleGestureDetector.SimpleOnScaleGestureListener() {
+ override fun onScale(detector: ScaleGestureDetector): Boolean {
+ // Adjust the scale factor based on the scale gesture
+ scaleFactor *= detector.scaleFactor
+
+ // Restrict the scale factor to a certain range to prevent excessive zooming
+ scaleFactor = scaleFactor.coerceIn(0.1f, 5.0f)
+
+ // Apply the scale transformation
+ matrix.postScale(
+ detector.scaleFactor, detector.scaleFactor, detector.focusX, detector.focusY
+ )
+
+ // Update the slider matrix to match the new transformation
+ invalidate()
+
+ return true
+ }
+ }
+
+ fun setLockButton(button: AppCompatImageButton) {
+ lockButton = button
+ lockButton.setBackgroundResource(android.R.drawable.ic_menu_rotate)
+
+ lockButton.setOnClickListener { v: View? ->
+ isLocked = !isLocked
+ if (isLocked) {
+ v!!.setBackgroundResource(android.R.drawable.ic_lock_lock)
+ } else {
+ v!!.setBackgroundResource(
+ android.R.drawable.ic_menu_rotate
+ )
+ }
+ }
+ }
+
+ private fun centerDrawable() {
+ matrix.reset()
+
+ val drawableWidth = outerDrawable?.intrinsicWidth?.times(scaleFactor) ?: 0f
+ val drawableHeight = outerDrawable?.intrinsicHeight?.times(scaleFactor) ?: 0f
+
+ val dx = (width - drawableWidth) / 2f
+ val dy = (height - drawableHeight) / 2f
+
+ matrix.postScale(scaleFactor, scaleFactor)
+ matrix.postTranslate(dx, dy)
+ }
+
+ override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
+ super.onMeasure(widthMeasureSpec, heightMeasureSpec)
+ val w = MeasureSpec.getSize(widthMeasureSpec)
+ val h = MeasureSpec.getSize(heightMeasureSpec)
+ initialScaleFactor = w.toFloat() / outerDrawable!!.intrinsicWidth.toFloat()
+ scaleFactor = initialScaleFactor
+
+ matrix.reset()
+
+ val drawableWidth = outerDrawable?.intrinsicWidth?.times(scaleFactor) ?: 0f
+ val drawableHeight = outerDrawable?.intrinsicHeight?.times(scaleFactor) ?: 0f
+
+ val dx = (w - drawableWidth) / 2f
+ val dy = (h - drawableHeight) / 2f
+
+ matrix.postScale(scaleFactor, scaleFactor)
+ matrix.postTranslate(dx, dy)
+ invalidate()
+ }
+
+ override fun onDraw(canvas: Canvas) {
+ super.onDraw(canvas)
+ canvas.save()
+ canvas.concat(matrix)
+ outerDrawable?.draw(canvas)
+ canvas.save()
+
+ innerMatrix.reset()
+ innerMatrix.postRotate(
+ currentRotation,
+ outerDrawable!!.intrinsicWidth / 2f,
+ outerDrawable!!.intrinsicHeight / 2f
+ )
+ canvas.concat(innerMatrix)
+ innerDrawable?.draw(canvas)
+
+ canvas.restore()
+ }
+
+ private inner class GestureListener : GestureDetector.SimpleOnGestureListener() {
+ override fun onDoubleTap(event: MotionEvent): Boolean {
+ isZoomedIn = !isZoomedIn
+ scaleFactor = if (isZoomedIn) {
+ 1.1f
+ } else {
+ initialScaleFactor
+ }
+ centerDrawable()
+ invalidate()
+ return true
+ }
+ }
+
+ @SuppressLint("ClickableViewAccessibility")
+ override fun onTouchEvent(event: MotionEvent): Boolean {
+ gestureDetector.onTouchEvent(event)
+ scaleGestureDetector.onTouchEvent(event)
+
+ when (event.action and MotionEvent.ACTION_MASK) {
+ MotionEvent.ACTION_DOWN -> {
+ if (!isLocked && isTouchInsideCircle(event.x, event.y)) {
+ lastAngle = calculateAngle(event.x, event.y)
+ isRotating = true
+ } else {
+ isPanning = true
+ isRotating = false
+ lastTouchX = event.x
+ lastTouchY = event.y
+ }
+ }
+
+ MotionEvent.ACTION_MOVE -> {
+ if (isRotating) {
+ val newAngle = calculateAngle(event.x, event.y)
+ val deltaAngle = newAngle - lastAngle
+ currentRotation += deltaAngle
+ lastAngle = newAngle
+ invalidate()
+ } else if (isPanning) {
+ val dx = event.x - lastTouchX
+ val dy = event.y - lastTouchY
+ matrix.postTranslate(dx, dy)
+ lastTouchX = event.x
+ lastTouchY = event.y
+ invalidate()
+ }
+ }
+
+ MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> {
+ isRotating = false
+ isPanning = false
+ }
+ }
+
+ return true
+ }
+
+ private fun isTouchInsideCircle(x: Float, y: Float): Boolean {
+ val centerX = outerDrawable!!.bounds.centerX()
+ val centerY = outerDrawable!!.bounds.centerY()
+
+ // Calculate the radius of the circle
+ val radius = (innerDrawable?.intrinsicWidth ?: 0) / 2f - 110
+ // Apply the inverse matrix transformation to get the position before transformation
+ val inverseMatrix = Matrix()
+ matrix.invert(inverseMatrix)
+
+ val point = floatArrayOf(x, y)
+ inverseMatrix.mapPoints(point)
+
+ // Get the transformed touch coordinates
+ val transformedX = point[0]
+ val transformedY = point[1]
+
+ // Calculate the distance from the touch point to the center of the circle
+ val distance = sqrt(((transformedX - centerX).pow(2) + (transformedY - centerY).pow(2)))
+
+ // Return true if the distance is less than or equal to the radius
+ return distance <= radius
+ }
+
+ private fun calculateAngle(x: Float, y: Float): Float {
+ // Get the center of the outerDrawable in screen coordinates
+ val centerX = outerDrawable!!.bounds.centerX()
+ val centerY = outerDrawable!!.bounds.centerY()
+
+ // Apply the inverse matrix transformation to get the position before transformation
+ val inverseMatrix = Matrix()
+ matrix.invert(inverseMatrix)
+
+ val point = floatArrayOf(x, y)
+ inverseMatrix.mapPoints(point)
+
+ // Get the transformed touch coordinates
+ val dx = point[0]
+ val dy = point[1]
+
+ // Calculate the angle from the adjusted touch point to the center of the drawable
+ val angle = Math.toDegrees(
+ atan2((dy - centerY).toDouble(), (dx - centerX).toDouble())
+ ).toFloat()
+
+ // Normalize the angle to be between 0 and 360 degrees
+ return if (angle < 0) angle + 360f else angle
+ }
+}
diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..725b21d
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,10 @@
+
+
+
+
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..a83cd23
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/tasbase.xml b/app/src/main/res/drawable/tasbase.xml
new file mode 100644
index 0000000..6eedc7e
--- /dev/null
+++ b/app/src/main/res/drawable/tasbase.xml
@@ -0,0 +1,3768 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/wind_slider.xml b/app/src/main/res/drawable/wind_slider.xml
new file mode 100644
index 0000000..b12bb17
--- /dev/null
+++ b/app/src/main/res/drawable/wind_slider.xml
@@ -0,0 +1,2625 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/back.xml b/app/src/main/res/layout/back.xml
new file mode 100644
index 0000000..8a0f0da
--- /dev/null
+++ b/app/src/main/res/layout/back.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/front.xml b/app/src/main/res/layout/front.xml
new file mode 100644
index 0000000..29d1771
--- /dev/null
+++ b/app/src/main/res/layout/front.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
\ 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..a83cd23
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ 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..eca70cf
--- /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/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..48f8add
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_background.png b/app/src/main/res/mipmap-hdpi/ic_launcher_background.png
new file mode 100644
index 0000000..cb71ee0
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_background.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..513670b
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png b/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000..513670b
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..6dd82fb
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..0b044ae
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_background.png b/app/src/main/res/mipmap-mdpi/ic_launcher_background.png
new file mode 100644
index 0000000..07ac060
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_background.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..94930c3
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png b/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000..94930c3
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..396ff64
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..95b11c8
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
new file mode 100644
index 0000000..9d7e4b6
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..0539d28
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000..0539d28
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..d3875d5
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..2ed7e82
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
new file mode 100644
index 0000000..8c5adc7
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..4d91461
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000..4d91461
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..440ac0b
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..79ada2d
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
new file mode 100644
index 0000000..b87068d
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..ca9b2bf
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000..ca9b2bf
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..bbf96e5
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..7e0be1f
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ E6B Flight Computer
+
\ 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..278c1f2
--- /dev/null
+++ b/app/src/main/res/values/themes.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/xml/backup_rules.xml b/app/src/main/res/xml/backup_rules.xml
new file mode 100644
index 0000000..fa0f996
--- /dev/null
+++ b/app/src/main/res/xml/backup_rules.xml
@@ -0,0 +1,13 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/xml/data_extraction_rules.xml b/app/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 0000000..9ee9997
--- /dev/null
+++ b/app/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build.gradle.kts b/build.gradle.kts
new file mode 100644
index 0000000..f74b04b
--- /dev/null
+++ b/build.gradle.kts
@@ -0,0 +1,5 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+plugins {
+ alias(libs.plugins.android.application) apply false
+ alias(libs.plugins.jetbrains.kotlin.android) apply false
+}
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..20e2a01
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,23 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. For more details, visit
+# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Kotlin code style for this project: "official" or "obsolete":
+kotlin.code.style=official
+# Enables namespacing of each library's R class so that its R class includes only the
+# resources declared in the library itself and none from the library's dependencies,
+# thereby reducing the size of the R class for that library
+android.nonTransitiveRClass=true
\ No newline at end of file
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
new file mode 100644
index 0000000..f46ae8a
--- /dev/null
+++ b/gradle/libs.versions.toml
@@ -0,0 +1,47 @@
+[versions]
+agp = "8.6.0"
+kotlin = "1.9.0"
+coreKtx = "1.10.1"
+junit = "4.13.2"
+junitVersion = "1.1.5"
+espressoCore = "3.5.1"
+lifecycleRuntimeKtx = "2.6.1"
+activityCompose = "1.8.0"
+composeBom = "2024.04.01"
+appcompat = "1.7.0"
+supportV4 = "28.0.0"
+activityKtx = "1.9.1"
+supportAnnotations = "28.0.0"
+uiGraphicsAndroid = "1.6.8"
+foundationAndroid = "1.6.8"
+material3Android = "1.2.1"
+animationGraphicsAndroid = "1.6.8"
+
+[libraries]
+androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
+junit = { group = "junit", name = "junit", version.ref = "junit" }
+androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
+androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
+androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
+androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
+androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
+androidx-ui = { group = "androidx.compose.ui", name = "ui" }
+androidx-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
+androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
+androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
+androidx-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
+androidx-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
+androidx-material3 = { group = "androidx.compose.material3", name = "material3" }
+androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
+support-v4 = { group = "com.android.support", name = "support-v4", version.ref = "supportV4" }
+androidx-activity-ktx = { group = "androidx.activity", name = "activity-ktx", version.ref = "activityKtx" }
+support-annotations = { group = "com.android.support", name = "support-annotations", version.ref = "supportAnnotations" }
+androidx-ui-graphics-android = { group = "androidx.compose.ui", name = "ui-graphics-android", version.ref = "uiGraphicsAndroid" }
+androidx-foundation-android = { group = "androidx.compose.foundation", name = "foundation-android", version.ref = "foundationAndroid" }
+androidx-material3-android = { group = "androidx.compose.material3", name = "material3-android", version.ref = "material3Android" }
+androidx-animation-graphics-android = { group = "androidx.compose.animation", name = "animation-graphics-android", version.ref = "animationGraphicsAndroid" }
+
+[plugins]
+android-application = { id = "com.android.application", version.ref = "agp" }
+jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
+
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..e708b1c
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..ced6ae4
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Mon Aug 19 09:13:30 CEST 2024
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
new file mode 100644
index 0000000..4f906e0
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,185 @@
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or 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.
+#
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# 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"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# 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
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# 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"
+ which java >/dev/null 2>&1 || 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
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=`expr $i + 1`
+ done
+ case $i in
+ 0) set -- ;;
+ 1) set -- "$args0" ;;
+ 2) set -- "$args0" "$args1" ;;
+ 3) set -- "$args0" "$args1" "$args2" ;;
+ 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=`save "$@"`
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+exec "$JAVACMD" "$@"
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..107acd3
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,89 @@
+@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
+
+@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=.
+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%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="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!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/settings.gradle.kts b/settings.gradle.kts
new file mode 100644
index 0000000..efd9ace
--- /dev/null
+++ b/settings.gradle.kts
@@ -0,0 +1,23 @@
+pluginManagement {
+ repositories {
+ google {
+ content {
+ includeGroupByRegex("com\\.android.*")
+ includeGroupByRegex("com\\.google.*")
+ includeGroupByRegex("androidx.*")
+ }
+ }
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
+dependencyResolutionManagement {
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.name = "E6B Flight Computer"
+include(":app")