Satellite tracker and pass predictor for Android, inspired by Gpredict
Kotlin amsatcelestrakgpsham-radiohamlibhamradiokotlinnasaradiosatellitesatellite-datasatellite-positionsatellite-predictionsatellitessatnogssdrspacespacexstarlink
Set up with Fragments, DrawerLayout and Adaptive Icons
Arty Bishopbff8e44d2822
diff --git a/.gitignore b/.gitignoreindex 39b6783c..6214df79 100644--- a/.gitignore+++ b/.gitignore@@ -34,13 +34,7 @@ captures/# IntelliJ*.iml-.idea/workspace.xml-.idea/tasks.xml-.idea/gradle.xml-.idea/assetWizardSettings.xml-.idea/dictionaries-.idea/libraries-.idea/caches+.idea/# Keystore files# Uncomment the following line if you do not want to check your keystore files in.diff --git a/app/.gitignore b/app/.gitignorenew file mode 100644index 00000000..796b96d1--- /dev/null+++ b/app/.gitignore@@ -0,0 +1 @@+/builddiff --git a/app/build.gradle b/app/build.gradlenew file mode 100644index 00000000..68eca0f4--- /dev/null+++ b/app/build.gradle@@ -0,0 +1,47 @@+apply plugin: 'com.android.application'+apply plugin: 'kotlin-android'+apply plugin: 'kotlin-android-extensions'++android {+ compileSdkVersion 29+ buildToolsVersion "29.0.2"+ defaultConfig {+ applicationId "com.rtbishop.lookingsat"+ minSdkVersion 22+ targetSdkVersion 29+ versionCode 1+ versionName "0.2"+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"+ }+ buildTypes {+ release {+ minifyEnabled false+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'+ }+ }+ compileOptions {+ sourceCompatibility = 1.8+ targetCompatibility = 1.8+ }+ kotlinOptions {+ jvmTarget = "1.8"+ }+}++dependencies {+ implementation fileTree(dir: 'libs', include: ['*.jar'])+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"+ implementation 'androidx.appcompat:appcompat:1.1.0'+ implementation 'androidx.core:core-ktx:1.1.0'+ implementation 'androidx.legacy:legacy-support-v4:1.0.0'+ implementation 'com.google.android.material:material:1.0.0'+ implementation 'androidx.constraintlayout:constraintlayout:1.1.3'+ implementation 'androidx.navigation:navigation-fragment:2.1.0'+ implementation 'androidx.navigation:navigation-ui:2.1.0'+ implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'+ implementation 'androidx.navigation:navigation-fragment-ktx:2.1.0'+ implementation 'androidx.navigation:navigation-ui-ktx:2.1.0'+ testImplementation 'junit:junit:4.12'+ androidTestImplementation 'androidx.test.ext:junit:1.1.1'+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'+}diff --git a/app/proguard-rules.pro b/app/proguard-rules.pronew file mode 100644index 00000000..f1b42451--- /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 SourceFilediff --git a/app/src/androidTest/java/com/rtbishop/lookingsat/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/rtbishop/lookingsat/ExampleInstrumentedTest.ktnew file mode 100644index 00000000..972991c8--- /dev/null+++ b/app/src/androidTest/java/com/rtbishop/lookingsat/ExampleInstrumentedTest.kt@@ -0,0 +1,22 @@+package com.rtbishop.lookingsat++import androidx.test.ext.junit.runners.AndroidJUnit4+import androidx.test.platform.app.InstrumentationRegistry+import org.junit.Assert.assertEquals+import org.junit.Test+import org.junit.runner.RunWith++/**+ * Instrumented test, which will execute on an Android device.+ *+ * See [testing documentation](http://d.android.com/tools/testing).+ */+@RunWith(AndroidJUnit4::class)+class ExampleInstrumentedTest {+ @Test+ fun useAppContext() {+ // Context of the app under test.+ val appContext = InstrumentationRegistry.getInstrumentation().targetContext+ assertEquals("com.rtbishop.lookingsat", appContext.packageName)+ }+}diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xmlnew file mode 100644index 00000000..700bfbde--- /dev/null+++ b/app/src/main/AndroidManifest.xml@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="utf-8"?>+<manifest xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:tools="http://schemas.android.com/tools"+ package="com.rtbishop.lookingsat">++ <application+ android:allowBackup="false"+ android:icon="@mipmap/ic_launcher"+ android:label="@string/app_name"+ android:supportsRtl="true"+ android:theme="@style/AppTheme"+ tools:ignore="GoogleAppIndexingWarning">+ <activity+ android:name=".MainActivity"+ android:label="@string/app_name"+ android:theme="@style/AppTheme.NoActionBar">+ <intent-filter>+ <action android:name="android.intent.action.MAIN" />+ <category android:name="android.intent.category.LAUNCHER" />+ </intent-filter>+ </activity>+ </application>++</manifest>\ No newline at end of filediff --git a/app/src/main/ic_launcher-web.png b/app/src/main/ic_launcher-web.pngnew file mode 100644index 00000000..7f2a7246Binary files /dev/null and b/app/src/main/ic_launcher-web.png differdiff --git a/app/src/main/java/com/rtbishop/lookingsat/MainActivity.kt b/app/src/main/java/com/rtbishop/lookingsat/MainActivity.ktnew file mode 100644index 00000000..4a66927d--- /dev/null+++ b/app/src/main/java/com/rtbishop/lookingsat/MainActivity.kt@@ -0,0 +1,51 @@+package com.rtbishop.lookingsat++import android.os.Bundle+import androidx.appcompat.app.AppCompatActivity+import androidx.appcompat.widget.Toolbar+import androidx.drawerlayout.widget.DrawerLayout+import androidx.lifecycle.ViewModelProviders+import androidx.navigation.findNavController+import androidx.navigation.ui.AppBarConfiguration+import androidx.navigation.ui.navigateUp+import androidx.navigation.ui.setupActionBarWithNavController+import androidx.navigation.ui.setupWithNavController+import com.google.android.material.floatingactionbutton.FloatingActionButton+import com.google.android.material.navigation.NavigationView+import com.google.android.material.snackbar.Snackbar++class MainActivity : AppCompatActivity() {++ private lateinit var appBarConfig: AppBarConfiguration+ private lateinit var mainViewModel: MainViewModel++ override fun onCreate(savedInstanceState: Bundle?) {+ super.onCreate(savedInstanceState)+ setContentView(R.layout.activity_main)++ mainViewModel = ViewModelProviders.of(this).get(MainViewModel::class.java)++ val toolbar: Toolbar = findViewById(R.id.toolbar)+ setSupportActionBar(toolbar)++ val fab: FloatingActionButton = findViewById(R.id.fab)+ fab.setOnClickListener { view ->+ Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)+ .setAction("Action", null).show()+ }++ val drawerLayout: DrawerLayout = findViewById(R.id.drawer_layout)+ val navView: NavigationView = findViewById(R.id.nav_view)+ val navController = findNavController(R.id.nav_host)++ appBarConfig =+ AppBarConfiguration(setOf(R.id.nav_sky, R.id.nav_radar, R.id.nav_map), drawerLayout)+ setupActionBarWithNavController(navController, appBarConfig)+ navView.setupWithNavController(navController)+ }++ override fun onSupportNavigateUp(): Boolean {+ val navController = findNavController(R.id.nav_host)+ return navController.navigateUp(appBarConfig) || super.onSupportNavigateUp()+ }+}diff --git a/app/src/main/java/com/rtbishop/lookingsat/MainViewModel.kt b/app/src/main/java/com/rtbishop/lookingsat/MainViewModel.ktnew file mode 100644index 00000000..e6f3f841--- /dev/null+++ b/app/src/main/java/com/rtbishop/lookingsat/MainViewModel.kt@@ -0,0 +1,6 @@+package com.rtbishop.lookingsat++import android.app.Application+import androidx.lifecycle.AndroidViewModel++class MainViewModel(application: Application) : AndroidViewModel(application)\ No newline at end of filediff --git a/app/src/main/java/com/rtbishop/lookingsat/ui/CreditsFragment.kt b/app/src/main/java/com/rtbishop/lookingsat/ui/CreditsFragment.ktnew file mode 100644index 00000000..d15f1a10--- /dev/null+++ b/app/src/main/java/com/rtbishop/lookingsat/ui/CreditsFragment.kt@@ -0,0 +1,18 @@+package com.rtbishop.lookingsat.ui++import android.os.Bundle+import android.view.LayoutInflater+import android.view.View+import android.view.ViewGroup+import androidx.fragment.app.Fragment+import com.rtbishop.lookingsat.R++class CreditsFragment : Fragment() {++ override fun onCreateView(+ inflater: LayoutInflater, container: ViewGroup?,+ savedInstanceState: Bundle?+ ): View? {+ return inflater.inflate(R.layout.fragment_credits, container, false)+ }+}\ No newline at end of filediff --git a/app/src/main/java/com/rtbishop/lookingsat/ui/RadarFragment.kt b/app/src/main/java/com/rtbishop/lookingsat/ui/RadarFragment.ktnew file mode 100644index 00000000..e7cd843f--- /dev/null+++ b/app/src/main/java/com/rtbishop/lookingsat/ui/RadarFragment.kt@@ -0,0 +1,24 @@+package com.rtbishop.lookingsat.ui++import android.os.Bundle+import android.view.LayoutInflater+import android.view.View+import android.view.ViewGroup+import androidx.fragment.app.Fragment+import androidx.lifecycle.ViewModelProviders+import com.rtbishop.lookingsat.MainViewModel+import com.rtbishop.lookingsat.R++class RadarFragment : Fragment() {++ private lateinit var viewModel: MainViewModel++ override fun onCreateView(+ inflater: LayoutInflater,+ container: ViewGroup?,+ savedInstanceState: Bundle?+ ): View? {+ viewModel = ViewModelProviders.of(this).get(MainViewModel::class.java)+ return inflater.inflate(R.layout.fragment_radar, container, false)+ }+}\ No newline at end of filediff --git a/app/src/main/java/com/rtbishop/lookingsat/ui/SettingsFragment.kt b/app/src/main/java/com/rtbishop/lookingsat/ui/SettingsFragment.ktnew file mode 100644index 00000000..e49267d7--- /dev/null+++ b/app/src/main/java/com/rtbishop/lookingsat/ui/SettingsFragment.kt@@ -0,0 +1,24 @@+package com.rtbishop.lookingsat.ui++import android.os.Bundle+import android.view.LayoutInflater+import android.view.View+import android.view.ViewGroup+import androidx.fragment.app.Fragment+import androidx.lifecycle.ViewModelProviders+import com.rtbishop.lookingsat.MainViewModel+import com.rtbishop.lookingsat.R++class SettingsFragment : Fragment() {++ private lateinit var viewModel: MainViewModel++ override fun onCreateView(+ inflater: LayoutInflater,+ container: ViewGroup?,+ savedInstanceState: Bundle?+ ): View? {+ viewModel = ViewModelProviders.of(this).get(MainViewModel::class.java)+ return inflater.inflate(R.layout.fragment_sky, container, false)+ }+}\ No newline at end of filediff --git a/app/src/main/java/com/rtbishop/lookingsat/ui/SkyFragment.kt b/app/src/main/java/com/rtbishop/lookingsat/ui/SkyFragment.ktnew file mode 100644index 00000000..62d18b14--- /dev/null+++ b/app/src/main/java/com/rtbishop/lookingsat/ui/SkyFragment.kt@@ -0,0 +1,24 @@+package com.rtbishop.lookingsat.ui++import android.os.Bundle+import android.view.LayoutInflater+import android.view.View+import android.view.ViewGroup+import androidx.fragment.app.Fragment+import androidx.lifecycle.ViewModelProviders+import com.rtbishop.lookingsat.MainViewModel+import com.rtbishop.lookingsat.R++class SkyFragment : Fragment() {++ private lateinit var viewModel: MainViewModel++ override fun onCreateView(+ inflater: LayoutInflater,+ container: ViewGroup?,+ savedInstanceState: Bundle?+ ): View? {+ viewModel = ViewModelProviders.of(this).get(MainViewModel::class.java)+ return inflater.inflate(R.layout.fragment_sky, container, false)+ }+}\ No newline at end of filediff --git a/app/src/main/java/com/rtbishop/lookingsat/ui/WorldMapFragment.kt b/app/src/main/java/com/rtbishop/lookingsat/ui/WorldMapFragment.ktnew file mode 100644index 00000000..26ce5b55--- /dev/null+++ b/app/src/main/java/com/rtbishop/lookingsat/ui/WorldMapFragment.kt@@ -0,0 +1,24 @@+package com.rtbishop.lookingsat.ui++import android.os.Bundle+import android.view.LayoutInflater+import android.view.View+import android.view.ViewGroup+import androidx.fragment.app.Fragment+import androidx.lifecycle.ViewModelProviders+import com.rtbishop.lookingsat.MainViewModel+import com.rtbishop.lookingsat.R++class WorldMapFragment : Fragment() {++ private lateinit var viewModel: MainViewModel++ override fun onCreateView(+ inflater: LayoutInflater,+ container: ViewGroup?,+ savedInstanceState: Bundle?+ ): View? {+ viewModel = ViewModelProviders.of(this).get(MainViewModel::class.java)+ return inflater.inflate(R.layout.fragment_worldmap, container, false)+ }+}\ No newline at end of filediff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xmlnew file mode 100644index 00000000..9b3a91d4--- /dev/null+++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml@@ -0,0 +1,16 @@+<vector xmlns:android="http://schemas.android.com/apk/res/android"+ android:width="108dp"+ android:height="108dp"+ android:viewportWidth="195.3748"+ android:viewportHeight="195.3748">+ <group+ android:translateX="47.6874"+ android:translateY="47.6874">+ <path+ android:fillColor="#FFFFFF"+ android:pathData="M73.316,27.261c5.651,5.596 12.245,9.506 18.118,10.903l1.253,-2.797c0.013,-0.028 0.017,-0.058 0.029,-0.086C94.167,32.503 95,29.354 95,26.009c0,-11.08 -9.015,-20.094 -20.095,-20.094c-3.661,0 -7.086,1 -10.046,2.718l-2.427,1.118c0.057,0.214 0.095,0.419 0.158,0.637C64.247,16.059 68.056,22.051 73.316,27.261z" />+ <path+ android:fillColor="#FFFFFF"+ android:pathData="M71.34,29.217c-5.588,-5.534 -9.648,-11.948 -11.433,-18.061c-0.021,-0.073 -0.037,-0.143 -0.058,-0.216L6.164,35.664c-1.003,0.462 -1.442,1.65 -0.98,2.653c0.337,0.732 1.061,1.164 1.818,1.164c0.28,0 0.564,-0.059 0.835,-0.184l49.338,-22.721c-1.338,2.504 -2.141,5.326 -2.306,8.317L29.69,41.416c-0.924,0.606 -1.181,1.846 -0.575,2.769c0.384,0.585 1.022,0.903 1.674,0.903c0.376,0 0.757,-0.106 1.095,-0.328l23.251,-15.258c1,5.675 4.382,10.527 9.082,13.495l-39.246,47.82c-0.701,0.854 -0.577,2.114 0.277,2.815c0.372,0.306 0.821,0.454 1.268,0.454c0.578,0 1.151,-0.25 1.547,-0.731l39.834,-48.536c2.186,0.817 4.541,1.286 7.008,1.286c3.523,0 6.833,-0.918 9.715,-2.517L64.716,88.014c-0.452,1.008 0,2.191 1.007,2.643c0.266,0.119 0.543,0.175 0.817,0.175c0.764,0 1.494,-0.44 1.826,-1.183l21.921,-48.928C84.03,39.095 77.173,34.994 71.34,29.217z" />+ </group>+</vector>diff --git a/app/src/main/res/drawable/ic_add.xml b/app/src/main/res/drawable/ic_add.xmlnew file mode 100644index 00000000..375680b6--- /dev/null+++ b/app/src/main/res/drawable/ic_add.xml@@ -0,0 +1,9 @@+<vector xmlns:android="http://schemas.android.com/apk/res/android"+ android:width="48dp"+ android:height="48dp"+ android:viewportWidth="24.0"+ android:viewportHeight="24.0">+ <path+ android:fillColor="#FFFFFFFF"+ android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />+</vector>diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xmlnew file mode 100644index 00000000..61197a33--- /dev/null+++ b/app/src/main/res/drawable/ic_launcher_background.xml@@ -0,0 +1,8 @@+<shape xmlns:android="http://schemas.android.com/apk/res/android"+ android:shape="rectangle">+ <gradient+ android:angle="270"+ android:endColor="#021B79"+ android:startColor="#061161"+ android:type="linear" />+</shape>\ No newline at end of filediff --git a/app/src/main/res/drawable/ic_sat.xml b/app/src/main/res/drawable/ic_sat.xmlnew file mode 100644index 00000000..ceb6995f--- /dev/null+++ b/app/src/main/res/drawable/ic_sat.xml@@ -0,0 +1,36 @@+<vector xmlns:android="http://schemas.android.com/apk/res/android"+ android:width="128dp"+ android:height="128dp"+ android:viewportWidth="100"+ android:viewportHeight="100">+ <path+ android:fillAlpha="1"+ android:fillColor="#FFFFFF"+ android:fillType="evenOdd"+ android:pathData="m21.276,14.997a2,2 0,0 0,-1.188 0.594l-13.5,13.5a2,2 0,0 0,0 2.813l18.563,18.594a2,2 0,0 0,1.281 0.563l5.531,0.438 -4.031,4.031a2,2 0,0 0,0 2.813l13.687,13.719a2,2 0,0 0,2.844 0l4.031,-4.031 0.438,5.531a2,2 0,0 0,0.562 1.281l18.594,18.563a2,2 0,0 0,2.844 0l13.469,-13.469a2,2 0,0 0,0 -2.844l-18.563,-18.594a2,2 0,0 0,-1.281 -0.563l-5.531,-0.438 4.031,-4.031a2,2 0,0 0,0 -2.844l-13.688,-13.688a2,2 0,0 0,-2.844 0l-4.031,4.031 -0.437,-5.531a2,2 0,0 0,-0.563 -1.281l-18.594,-18.563a2,2 0,0 0,-1.438 -0.594,2 2,0 0,0 -0.188,0zM21.494,19.81 L38.151,36.466 38.713,43.935 34.932,47.716 27.463,47.122 10.807,30.497 21.494,19.81zM56.057,61.279 L63.526,61.872 80.182,78.497 69.494,89.185 52.869,72.528 52.276,65.06 56.057,61.278z"+ android:strokeColor="#00000000" />+ <path+ android:fillAlpha="1"+ android:fillColor="#FFFFFF"+ android:fillType="evenOdd"+ android:pathData="m50.941,13.821a2,2 0,1 0,0 4c8,0 15.973,3.039 22.088,9.153 6.104,6.104 9.144,14.089 9.144,22.078a2,2 0,1 0,3.999 0c0,-9.007 -3.446,-18.038 -10.315,-24.907 -6.878,-6.878 -15.9,-10.325 -24.917,-10.325z"+ android:strokeColor="#00000000" />+ <path+ android:fillAlpha="1"+ android:fillColor="#FFFFFF"+ android:fillType="evenOdd"+ android:pathData="m50.941,6.003a2,2 0,1 0,0 4c10.002,0 19.978,3.8 27.614,11.436 7.635,7.635 11.436,17.622 11.436,27.614a2,2 0,1 0,4 0c0,-11.008 -4.207,-22.042 -12.607,-30.442 -8.4,-8.4 -19.424,-12.607 -30.442,-12.607z"+ android:strokeColor="#00000000" />+ <path+ android:fillAlpha="1"+ android:fillColor="#FFFFFF"+ android:fillType="evenOdd"+ android:pathData="m50.941,21.578a2,2 0,1 0,0 3.999c6.019,0 12.01,2.279 16.603,6.872 4.593,4.593 6.882,10.597 6.882,16.603a2,2 0,1 0,4 0c0,-7.026 -2.696,-14.074 -8.053,-19.431 -5.357,-5.357 -12.398,-8.043 -19.431,-8.043z"+ android:strokeColor="#00000000" />+ <path+ android:fillAlpha="1"+ android:fillColor="#FFFFFF"+ android:fillType="evenOdd"+ android:pathData="m50.941,29.416a2,2 0,1 0,0 3.999c4.006,0 7.997,1.518 11.058,4.579 3.061,3.061 4.579,7.052 4.579,11.058a2,2 0,1 0,3.999 0c0,-5.023 -1.925,-10.06 -5.751,-13.886 -3.826,-3.826 -8.863,-5.751 -13.886,-5.751z"+ android:strokeColor="#00000000" />+</vector>diff --git a/app/src/main/res/drawable/side_nav_bar.xml b/app/src/main/res/drawable/side_nav_bar.xmlnew file mode 100644index 00000000..61197a33--- /dev/null+++ b/app/src/main/res/drawable/side_nav_bar.xml@@ -0,0 +1,8 @@+<shape xmlns:android="http://schemas.android.com/apk/res/android"+ android:shape="rectangle">+ <gradient+ android:angle="270"+ android:endColor="#021B79"+ android:startColor="#061161"+ android:type="linear" />+</shape>\ No newline at end of filediff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xmlnew file mode 100644index 00000000..573b6d07--- /dev/null+++ b/app/src/main/res/layout/activity_main.xml@@ -0,0 +1,25 @@+<?xml version="1.0" encoding="utf-8"?>+<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:app="http://schemas.android.com/apk/res-auto"+ xmlns:tools="http://schemas.android.com/tools"+ android:id="@+id/drawer_layout"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ android:fitsSystemWindows="true"+ tools:openDrawer="start">++ <include+ layout="@layout/app_bar_main"+ android:layout_width="match_parent"+ android:layout_height="match_parent" />++ <com.google.android.material.navigation.NavigationView+ android:id="@+id/nav_view"+ android:layout_width="wrap_content"+ android:layout_height="match_parent"+ android:layout_gravity="start"+ android:fitsSystemWindows="true"+ app:headerLayout="@layout/drawer_header"+ app:menu="@menu/drawer_menu" />++</androidx.drawerlayout.widget.DrawerLayout>diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xmlnew file mode 100644index 00000000..bb71ebde--- /dev/null+++ b/app/src/main/res/layout/app_bar_main.xml@@ -0,0 +1,33 @@+<?xml version="1.0" encoding="utf-8"?>+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:app="http://schemas.android.com/apk/res-auto"+ xmlns:tools="http://schemas.android.com/tools"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ tools:context=".MainActivity">++ <com.google.android.material.appbar.AppBarLayout+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ android:theme="@style/AppTheme.AppBarOverlay">++ <androidx.appcompat.widget.Toolbar+ android:id="@+id/toolbar"+ android:layout_width="match_parent"+ android:layout_height="?attr/actionBarSize"+ android:background="?attr/colorPrimary"+ app:popupTheme="@style/AppTheme.PopupOverlay" />++ </com.google.android.material.appbar.AppBarLayout>++ <include layout="@layout/content_main" />++ <com.google.android.material.floatingactionbutton.FloatingActionButton+ android:id="@+id/fab"+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:layout_gravity="bottom|end"+ android:layout_margin="@dimen/fab_margin"+ app:srcCompat="@drawable/ic_sat" />++</androidx.coordinatorlayout.widget.CoordinatorLayout>\ No newline at end of filediff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xmlnew file mode 100644index 00000000..bc254f09--- /dev/null+++ b/app/src/main/res/layout/content_main.xml@@ -0,0 +1,21 @@+<?xml version="1.0" encoding="utf-8"?>+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:app="http://schemas.android.com/apk/res-auto"+ xmlns:tools="http://schemas.android.com/tools"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ app:layout_behavior="@string/appbar_scrolling_view_behavior"+ tools:showIn="@layout/app_bar_main">++ <fragment+ android:id="@+id/nav_host"+ android:name="androidx.navigation.fragment.NavHostFragment"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ app:defaultNavHost="true"+ app:layout_constraintBottom_toBottomOf="parent"+ app:layout_constraintLeft_toLeftOf="parent"+ app:layout_constraintRight_toRightOf="parent"+ app:layout_constraintTop_toTopOf="parent"+ app:navGraph="@navigation/nav_graph" />+</androidx.constraintlayout.widget.ConstraintLayout>\ No newline at end of filediff --git a/app/src/main/res/layout/drawer_header.xml b/app/src/main/res/layout/drawer_header.xmlnew file mode 100644index 00000000..52fac8e9--- /dev/null+++ b/app/src/main/res/layout/drawer_header.xml@@ -0,0 +1,44 @@+<?xml version="1.0" encoding="utf-8"?>+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:app="http://schemas.android.com/apk/res-auto"+ android:layout_width="match_parent"+ android:layout_height="@dimen/nav_header_height"+ android:background="@drawable/side_nav_bar"+ android:gravity="bottom"+ android:theme="@style/ThemeOverlay.AppCompat.Dark">++ <ImageView+ android:id="@+id/drawer_header_img"+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:layout_marginBottom="8dp"+ android:contentDescription="@string/app_name"+ app:layout_constraintBottom_toTopOf="@+id/drawer_header_title"+ app:layout_constraintStart_toStartOf="@+id/drawer_header_title"+ app:srcCompat="@drawable/ic_sat" />++ <TextView+ android:id="@+id/drawer_header_title"+ android:layout_width="0dp"+ android:layout_height="wrap_content"+ android:layout_marginBottom="8dp"+ android:text="@string/nav_header_title"+ android:textAppearance="@style/TextAppearance.AppCompat.Title"+ android:textColor="@color/colorText"+ app:layout_constraintBottom_toTopOf="@+id/drawer_header_subtitle"+ app:layout_constraintStart_toStartOf="@+id/drawer_header_subtitle" />++ <TextView+ android:id="@+id/drawer_header_subtitle"+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:layout_marginStart="16dp"+ android:layout_marginEnd="16dp"+ android:layout_marginBottom="16dp"+ android:text="@string/nav_header_subtitle"+ android:textColor="@color/colorText"+ app:layout_constraintBottom_toBottomOf="parent"+ app:layout_constraintEnd_toEndOf="parent"+ app:layout_constraintStart_toStartOf="parent" />++</androidx.constraintlayout.widget.ConstraintLayout>diff --git a/app/src/main/res/layout/fragment_credits.xml b/app/src/main/res/layout/fragment_credits.xmlnew file mode 100644index 00000000..1d83d912--- /dev/null+++ b/app/src/main/res/layout/fragment_credits.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="utf-8"?>+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:tools="http://schemas.android.com/tools"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ tools:context=".ui.CreditsFragment" />\ No newline at end of filediff --git a/app/src/main/res/layout/fragment_radar.xml b/app/src/main/res/layout/fragment_radar.xmlnew file mode 100644index 00000000..9194f2f4--- /dev/null+++ b/app/src/main/res/layout/fragment_radar.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="utf-8"?>+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:tools="http://schemas.android.com/tools"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ tools:context=".ui.RadarFragment" />\ No newline at end of filediff --git a/app/src/main/res/layout/fragment_sky.xml b/app/src/main/res/layout/fragment_sky.xmlnew file mode 100644index 00000000..0accb62f--- /dev/null+++ b/app/src/main/res/layout/fragment_sky.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="utf-8"?>+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:tools="http://schemas.android.com/tools"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ tools:context=".ui.SkyFragment" />\ No newline at end of filediff --git a/app/src/main/res/layout/fragment_worldmap.xml b/app/src/main/res/layout/fragment_worldmap.xmlnew file mode 100644index 00000000..54f77ef9--- /dev/null+++ b/app/src/main/res/layout/fragment_worldmap.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="utf-8"?>+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:tools="http://schemas.android.com/tools"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ tools:context=".ui.WorldMapFragment" />\ No newline at end of filediff --git a/app/src/main/res/menu/drawer_menu.xml b/app/src/main/res/menu/drawer_menu.xmlnew file mode 100644index 00000000..b9fefc66--- /dev/null+++ b/app/src/main/res/menu/drawer_menu.xml@@ -0,0 +1,33 @@+<?xml version="1.0" encoding="utf-8"?>+<menu xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:tools="http://schemas.android.com/tools"+ tools:showIn="navigation_view">++ <group android:checkableBehavior="single">+ <item+ android:id="@+id/nav_sky"+ android:title="@string/menu_sky" />+ <item+ android:id="@+id/nav_radar"+ android:title="@string/menu_radar" />+ <item+ android:id="@+id/nav_map"+ android:title="@string/menu_map" />+ </group>++ <item+ android:id="@+id/nav_settings"+ android:title="@string/menu_settings" />++ <item android:title="@string/menu_about">+ <menu>+ <item+ android:id="@+id/nav_github"+ android:title="@string/menu_github" />+ <item+ android:id="@+id/nav_credits"+ android:title="@string/menu_credits" />+ </menu>+ </item>++</menu>diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xmlnew file mode 100644index 00000000..eca70cfe--- /dev/null+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml@@ -0,0 +1,5 @@+<?xml version="1.0" encoding="utf-8"?>+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">+ <background android:drawable="@drawable/ic_launcher_background" />+ <foreground android:drawable="@drawable/ic_launcher_foreground" />+</adaptive-icon>\ No newline at end of filediff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xmlnew file mode 100644index 00000000..eca70cfe--- /dev/null+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml@@ -0,0 +1,5 @@+<?xml version="1.0" encoding="utf-8"?>+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">+ <background android:drawable="@drawable/ic_launcher_background" />+ <foreground android:drawable="@drawable/ic_launcher_foreground" />+</adaptive-icon>\ No newline at end of filediff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.pngnew file mode 100644index 00000000..d135db39Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differdiff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.pngnew file mode 100644index 00000000..ab1a04c3Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differdiff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.pngnew file mode 100644index 00000000..80fd9b5bBinary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differdiff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.pngnew file mode 100644index 00000000..e8436192Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differdiff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.pngnew file mode 100644index 00000000..bdafbe95Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differdiff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.pngnew file mode 100644index 00000000..9bcd078fBinary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differdiff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngnew file mode 100644index 00000000..2287210dBinary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differdiff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.pngnew file mode 100644index 00000000..534fa0e3Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differdiff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngnew file mode 100644index 00000000..eb082f1dBinary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differdiff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.pngnew file mode 100644index 00000000..1fc35464Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differdiff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xmlnew file mode 100644index 00000000..26dbe969--- /dev/null+++ b/app/src/main/res/navigation/nav_graph.xml@@ -0,0 +1,37 @@+<?xml version="1.0" encoding="utf-8"?>+<navigation xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:app="http://schemas.android.com/apk/res-auto"+ xmlns:tools="http://schemas.android.com/tools"+ android:id="@+id/mobile_navigation"+ app:startDestination="@id/nav_sky">++ <fragment+ android:id="@+id/nav_sky"+ android:name="com.rtbishop.lookingsat.ui.SkyFragment"+ android:label="@string/menu_sky"+ tools:layout="@layout/fragment_sky" />++ <fragment+ android:id="@+id/nav_radar"+ android:name="com.rtbishop.lookingsat.ui.RadarFragment"+ android:label="@string/menu_radar"+ tools:layout="@layout/fragment_radar" />++ <fragment+ android:id="@+id/nav_map"+ android:name="com.rtbishop.lookingsat.ui.WorldMapFragment"+ android:label="@string/menu_map"+ tools:layout="@layout/fragment_worldmap" />++ <fragment+ android:id="@+id/nav_settings"+ android:name="com.rtbishop.lookingsat.ui.SettingsFragment"+ android:label="@string/menu_settings" />++ <fragment+ android:id="@+id/nav_credits"+ android:name="com.rtbishop.lookingsat.ui.CreditsFragment"+ android:label="@string/menu_credits"+ tools:layout="@layout/fragment_credits" />++</navigation>\ No newline at end of filediff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xmlnew file mode 100644index 00000000..0eda446f--- /dev/null+++ b/app/src/main/res/values/colors.xml@@ -0,0 +1,7 @@+<?xml version="1.0" encoding="utf-8"?>+<resources>+ <color name="colorPrimary">#021B79</color>+ <color name="colorPrimaryDark">#061161</color>+ <color name="colorAccent">#021B79</color>+ <color name="colorText">@android:color/white</color>+</resources>diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xmlnew file mode 100644index 00000000..c69a1a96--- /dev/null+++ b/app/src/main/res/values/dimens.xml@@ -0,0 +1,7 @@+<resources>+ <dimen name="activity_horizontal_margin">16dp</dimen>+ <dimen name="activity_vertical_margin">16dp</dimen>+ <dimen name="nav_header_vertical_spacing">16dp</dimen>+ <dimen name="nav_header_height">240dp</dimen>+ <dimen name="fab_margin">16dp</dimen>+</resources>diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xmlnew file mode 100644index 00000000..5c36091c--- /dev/null+++ b/app/src/main/res/values/strings.xml@@ -0,0 +1,13 @@+<resources>+ <string name="app_name">LookingSat</string>+ <string name="nav_header_title">L∞kingSat</string>+ <string name="nav_header_subtitle">https://github.com/rt-bishop/LookingSat</string>++ <string name="menu_sky">Sky at a Glance</string>+ <string name="menu_radar">Radar View</string>+ <string name="menu_map">Map View</string>+ <string name="menu_settings">Settings</string>+ <string name="menu_about">About</string>+ <string name="menu_github">GitHub</string>+ <string name="menu_credits">Credits</string>+</resources>diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xmlnew file mode 100644index 00000000..1fa325a1--- /dev/null+++ b/app/src/main/res/values/styles.xml@@ -0,0 +1,19 @@+<resources>++ <style name="AppTheme" parent="Theme.AppCompat">+ <item name="colorPrimary">@color/colorPrimary</item>+ <item name="colorPrimaryDark">@color/colorPrimaryDark</item>+ <item name="colorAccent">@color/colorAccent</item>+ </style>++ <style name="AppTheme.NoActionBar">+ <item name="windowActionBar">false</item>+ <item name="windowNoTitle">true</item>+ <item name="android:statusBarColor">@android:color/transparent</item>+ </style>++ <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />++ <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat" />++</resources>diff --git a/app/src/test/java/com/rtbishop/lookingsat/ExampleUnitTest.kt b/app/src/test/java/com/rtbishop/lookingsat/ExampleUnitTest.ktnew file mode 100644index 00000000..264f2da1--- /dev/null+++ b/app/src/test/java/com/rtbishop/lookingsat/ExampleUnitTest.kt@@ -0,0 +1,16 @@+package com.rtbishop.lookingsat++import org.junit.Assert.assertEquals+import org.junit.Test++/**+ * Example local unit test, which will execute on the development machine (host).+ *+ * See [testing documentation](http://d.android.com/tools/testing).+ */+class ExampleUnitTest {+ @Test+ fun addition_isCorrect() {+ assertEquals(4, 2 + 2)+ }+}diff --git a/build.gradle b/build.gradlenew file mode 100644index 00000000..e3245e7f--- /dev/null+++ b/build.gradle@@ -0,0 +1,28 @@+// Top-level build file where you can add configuration options common to all sub-projects/modules.++buildscript {+ ext.kotlin_version = '1.3.50'+ repositories {+ google()+ jcenter()++ }+ dependencies {+ classpath 'com.android.tools.build:gradle:3.5.1'+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"+ // NOTE: Do not place your application dependencies here; they belong+ // in the individual module build.gradle files+ }+}++allprojects {+ repositories {+ google()+ jcenter()++ }+}++task clean(type: Delete) {+ delete rootProject.buildDir+}diff --git a/gradle.properties b/gradle.propertiesnew file mode 100644index 00000000..23339e0d--- /dev/null+++ b/gradle.properties@@ -0,0 +1,21 @@+# 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=-Xmx1536m+# When configured, Gradle will run in incubating parallel mode.+# This option should only be used with decoupled projects. More details, visit+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec: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+# Automatically convert third-party libraries to use AndroidX+android.enableJetifier=true+# Kotlin code style for this project: "official" or "obsolete":+kotlin.code.style=officialdiff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jarnew file mode 100644index 00000000..f6b961fdBinary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differdiff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.propertiesnew file mode 100644index 00000000..3d581013--- /dev/null+++ b/gradle/wrapper/gradle-wrapper.properties@@ -0,0 +1,6 @@+#Wed Oct 16 17:05:20 BST 2019+distributionBase=GRADLE_USER_HOME+distributionPath=wrapper/dists+zipStoreBase=GRADLE_USER_HOME+zipStorePath=wrapper/dists+distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zipdiff --git a/gradlew b/gradlewnew file mode 100755index 00000000..cccdd3d5--- /dev/null+++ b/gradlew@@ -0,0 +1,172 @@+#!/usr/bin/env sh++##############################################################################+##+## 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=""++# 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, switch paths to Windows format before running java+if $cygwin ; 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=$((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"++# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then+ cd "$(dirname "$0")"+fi++exec "$JAVACMD" "$@"diff --git a/gradlew.bat b/gradlew.batnew file mode 100644index 00000000..f9553162--- /dev/null+++ b/gradlew.bat@@ -0,0 +1,84 @@+@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 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=++@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 init++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 init++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++:init+@rem Get command-line arguments, handling Windows variants++if not "%OS%" == "Windows_NT" goto win9xME_args++:win9xME_args+@rem Slurp the command line arguments.+set CMD_LINE_ARGS=+set _SKIP=2++:win9xME_args_slurp+if "x%~1" == "x" goto execute++set CMD_LINE_ARGS=%*++: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 %CMD_LINE_ARGS%++: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++:omegadiff --git a/settings.gradle b/settings.gradlenew file mode 100644index 00000000..145d71d1--- /dev/null+++ b/settings.gradle@@ -0,0 +1,2 @@+include ':app'+rootProject.name='LookingSat'