Copyright update, libs and gradle update

This commit is contained in:
Arty Bishop committed 2020-02-25 21:21:13 +00:00
1 parent d4d6c7b8d9
commit 7c19bb5b52
74 files changed
+816 -114

No files matched your search

@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -28,4 +28,4 @@ class Look4SatApp : Application() {
val appComponent: AppComponent by lazy {
DaggerAppComponent.factory().create(applicationContext)
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -257,4 +257,4 @@ fun SharedPreferences.Editor.putDouble(key: String, double: Double) {
fun SharedPreferences.getDouble(key: String, default: Double): Double {
return Double.fromBits(getLong(key, default.toRawBits()))
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -41,4 +41,4 @@ class AndroidModule {
fun provideLocationManager(context: Context): LocationManager {
return context.getSystemService(Context.LOCATION_SERVICE) as LocationManager
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -35,4 +35,4 @@ interface AppComponent {
}
fun inject(viewModel: MainViewModel)
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -45,4 +45,4 @@ class NetworkModule {
fun provideOkHttpClient(): OkHttpClient {
return OkHttpClient()
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -42,4 +42,4 @@ class StorageModule {
fun provideTransmittersDao(db: TransmittersDb): TransmittersDao {
return db.transmittersDao()
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -48,4 +48,4 @@ class RemoteDataSource @Inject constructor(
suspend fun fetchTransmittersList(): List<Transmitter> {
return api.fetchTransmittersList()
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -26,4 +26,4 @@ interface TransmittersApi {
@GET("transmitters/")
suspend fun fetchTransmittersList(): List<Transmitter>
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -39,4 +39,4 @@ class Repository @Inject constructor(
suspend fun getTransmittersForSat(id: Int): List<Transmitter> {
return localSource.getTransmittersForSat(id)
}
}
}
@@ -1,3 +1,22 @@
/*
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package com.rtbishop.look4sat.repo
data class SatEntry(val id: Int, val name: String, var isSelected: Boolean = false)
data class SatEntry(val id: Int, val name: String, var isSelected: Boolean = false)
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -29,4 +29,4 @@ data class SatPass(
val pass: SatPassTime,
var progress: Int = 0,
var active: Boolean = false
)
)
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -35,4 +35,4 @@ data class Transmitter(
@SerializedName("mode") val mode: String?,
@SerializedName("invert") val isInverted: Boolean,
@SerializedName("norad_cat_id") val noradCatId: Int
)
)
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -31,4 +31,4 @@ class LocalDataSource @Inject constructor(private val transmittersDao: Transmitt
suspend fun getTransmittersForSat(id: Int): List<Transmitter> {
return transmittersDao.getTransmittersForSat(id)
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -33,4 +33,4 @@ interface TransmittersDao {
@Query("SELECT * FROM transmitters WHERE isAlive = 1 and noradCatId = :id")
suspend fun getTransmittersForSat(id: Int): List<Transmitter>
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -27,4 +27,4 @@ import com.rtbishop.look4sat.repo.Transmitter
abstract class TransmittersDb : RoomDatabase() {
abstract fun transmittersDao(): TransmittersDao
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -51,4 +51,4 @@ class AboutFragment : Fragment() {
textVersion.text = String.format(getString(R.string.app_version), BuildConfig.VERSION_NAME)
textThanks.movementMethod = LinkMovementMethod.getInstance()
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -20,6 +20,7 @@
package com.rtbishop.look4sat.ui
import android.Manifest
import android.annotation.SuppressLint
import android.content.Intent
import android.content.pm.ActivityInfo
import android.content.pm.PackageManager
@@ -75,6 +76,7 @@ class MainActivity : AppCompatActivity() {
setupDrawer()
}
@SuppressLint("SourceLockedOrientationActivity")
private fun setupComponents() {
val navController = findNavController(R.id.nav_host)
val navView: NavigationView = findViewById(R.id.nav_view)
@@ -187,4 +189,4 @@ class MainActivity : AppCompatActivity() {
val navController = findNavController(R.id.nav_host)
return navController.navigateUp(appBarConfig) || super.onSupportNavigateUp()
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -313,4 +313,4 @@ class MapViewFragment : Fragment() {
return value * 180 / Math.PI
}
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -278,4 +278,4 @@ class PassListFragment : Fragment() {
if (resetToNull) aosTimerText.text =
String.format(getString(R.string.pat_timer), 0, 0, 0)
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -266,4 +266,4 @@ class PolarViewFragment : Fragment() {
return value * 180 / Math.PI
}
}
}
}
@@ -1,3 +1,22 @@
/*
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package com.rtbishop.look4sat.ui
import android.app.Dialog
@@ -144,4 +163,4 @@ class SatEntryDialog : AppCompatDialogFragment(), SearchView.OnQueryTextListener
interface EntriesSubmitListener {
fun onEntriesSubmit(list: MutableList<Int>)
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -151,4 +151,4 @@ class SettingsFragment : PreferenceFragmentCompat(),
super.onPause()
preferenceManager.sharedPreferences.unregisterOnSharedPreferenceChangeListener(this)
}
}
}
@@ -1,3 +1,22 @@
/*
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package com.rtbishop.look4sat.ui.adapters
import android.view.LayoutInflater
@@ -40,4 +59,4 @@ internal class SatEntryAdapter(private var entriesList: MutableList<SatEntry>) :
itemView.setOnClickListener { satEntry.isSelected = satEntryItem.isChecked }
}
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -172,4 +172,4 @@ class SatPassAdapter(val viewModel: MainViewModel) :
}
}
}
}
}
@@ -1,5 +1,5 @@
/*
* Look4Sat. Amateur radio & weather satellites passes calculator for Android.
* Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
* Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -113,4 +113,4 @@ class TransmitterAdapter : RecyclerView.Adapter<TransmitterAdapter.TransmitterHo
}
}
}
}
}