mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-02-02 14:07:32 +01:00
fixed missing dependencies
This commit is contained in:
parent
d5ec9f8e7b
commit
7cf14ca401
@ -42,8 +42,14 @@ dependencies {
|
|||||||
implementation "androidx.appcompat:appcompat:$appcompatVersion"
|
implementation "androidx.appcompat:appcompat:$appcompatVersion"
|
||||||
implementation "androidx.mediarouter:mediarouter:$mediarouterVersion"
|
implementation "androidx.mediarouter:mediarouter:$mediarouterVersion"
|
||||||
implementation "androidx.preference:preference:$preferenceVersion"
|
implementation "androidx.preference:preference:$preferenceVersion"
|
||||||
|
|
||||||
implementation "androidx.navigation:navigation-fragment:$navigationVersion"
|
implementation "androidx.navigation:navigation-fragment:$navigationVersion"
|
||||||
implementation "androidx.navigation:navigation-ui:$navigationVersion"
|
implementation "androidx.navigation:navigation-ui:$navigationVersion"
|
||||||
|
implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion"
|
||||||
|
implementation "androidx.navigation:navigation-ui-ktx:$navigationVersion"
|
||||||
|
|
||||||
|
implementation "androidx.lifecycle:lifecycle-service:$lifecycleVersion"
|
||||||
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
0
play-services-core/src/main/kotlin/org/microg/gms/provision/ProvisionService.kt
Normal file → Executable file
0
play-services-core/src/main/kotlin/org/microg/gms/provision/ProvisionService.kt
Normal file → Executable file
0
play-services-core/src/main/kotlin/org/microg/gms/ui/AppIconPreference.kt
Normal file → Executable file
0
play-services-core/src/main/kotlin/org/microg/gms/ui/AppIconPreference.kt
Normal file → Executable file
4
play-services-core/src/main/kotlin/org/microg/gms/ui/DeviceRegistrationFragment.kt
Normal file → Executable file
4
play-services-core/src/main/kotlin/org/microg/gms/ui/DeviceRegistrationFragment.kt
Normal file → Executable file
@ -11,8 +11,8 @@ import android.view.View
|
|||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import com.google.android.gms.R
|
import com.mgoogle.android.gms.R
|
||||||
import com.google.android.gms.databinding.DeviceRegistrationFragmentBinding
|
import com.mgoogle.android.gms.databinding.DeviceRegistrationFragmentBinding
|
||||||
import org.microg.gms.checkin.CheckinPrefs
|
import org.microg.gms.checkin.CheckinPrefs
|
||||||
|
|
||||||
class DeviceRegistrationFragment : Fragment(R.layout.device_registration_fragment) {
|
class DeviceRegistrationFragment : Fragment(R.layout.device_registration_fragment) {
|
||||||
|
2
play-services-core/src/main/kotlin/org/microg/gms/ui/DeviceRegistrationPreferencesFragment.kt
Normal file → Executable file
2
play-services-core/src/main/kotlin/org/microg/gms/ui/DeviceRegistrationPreferencesFragment.kt
Normal file → Executable file
@ -11,7 +11,7 @@ import android.text.format.DateUtils
|
|||||||
import androidx.preference.Preference
|
import androidx.preference.Preference
|
||||||
import androidx.preference.PreferenceCategory
|
import androidx.preference.PreferenceCategory
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
import androidx.preference.PreferenceFragmentCompat
|
||||||
import com.google.android.gms.R
|
import com.mgoogle.android.gms.R
|
||||||
import org.microg.gms.checkin.CheckinPrefs
|
import org.microg.gms.checkin.CheckinPrefs
|
||||||
import org.microg.gms.checkin.LastCheckinInfo
|
import org.microg.gms.checkin.LastCheckinInfo
|
||||||
|
|
||||||
|
0
play-services-core/src/main/kotlin/org/microg/gms/ui/PreferenceSwitchBarCallback.kt
Normal file → Executable file
0
play-services-core/src/main/kotlin/org/microg/gms/ui/PreferenceSwitchBarCallback.kt
Normal file → Executable file
2
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationAllAppsFragment.kt
Normal file → Executable file
2
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationAllAppsFragment.kt
Normal file → Executable file
@ -14,7 +14,7 @@ import androidx.navigation.fragment.findNavController
|
|||||||
import androidx.preference.Preference
|
import androidx.preference.Preference
|
||||||
import androidx.preference.PreferenceCategory
|
import androidx.preference.PreferenceCategory
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
import androidx.preference.PreferenceFragmentCompat
|
||||||
import com.google.android.gms.R
|
import com.mgoogle.android.gms.R
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
import org.microg.gms.gcm.GcmDatabase
|
import org.microg.gms.gcm.GcmDatabase
|
||||||
|
4
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationAppFragment.kt
Normal file → Executable file
4
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationAppFragment.kt
Normal file → Executable file
@ -17,8 +17,8 @@ import androidx.appcompat.content.res.AppCompatResources
|
|||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.fragment.app.findFragment
|
import androidx.fragment.app.findFragment
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import com.google.android.gms.R
|
import com.mgoogle.android.gms.R
|
||||||
import com.google.android.gms.databinding.PushNotificationAppFragmentBinding
|
import com.mgoogle.android.gms.databinding.PushNotificationAppFragmentBinding
|
||||||
|
|
||||||
|
|
||||||
class PushNotificationAppFragment : Fragment(R.layout.push_notification_fragment) {
|
class PushNotificationAppFragment : Fragment(R.layout.push_notification_fragment) {
|
||||||
|
2
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationAppPreferencesFragment.kt
Normal file → Executable file
2
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationAppPreferencesFragment.kt
Normal file → Executable file
@ -13,7 +13,7 @@ import androidx.preference.Preference
|
|||||||
import androidx.preference.PreferenceCategory
|
import androidx.preference.PreferenceCategory
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
import androidx.preference.PreferenceFragmentCompat
|
||||||
import androidx.preference.TwoStatePreference
|
import androidx.preference.TwoStatePreference
|
||||||
import com.google.android.gms.R
|
import com.mgoogle.android.gms.R
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
import org.microg.gms.gcm.GcmDatabase
|
import org.microg.gms.gcm.GcmDatabase
|
||||||
|
4
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationFragment.kt
Normal file → Executable file
4
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationFragment.kt
Normal file → Executable file
@ -9,8 +9,8 @@ import android.view.*
|
|||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import androidx.navigation.fragment.findNavController
|
import androidx.navigation.fragment.findNavController
|
||||||
import com.google.android.gms.R
|
import com.mgoogle.android.gms.R
|
||||||
import com.google.android.gms.databinding.PushNotificationFragmentBinding
|
import com.mgoogle.android.gms.databinding.PushNotificationFragmentBinding
|
||||||
import org.microg.gms.checkin.CheckinPrefs
|
import org.microg.gms.checkin.CheckinPrefs
|
||||||
import org.microg.gms.gcm.GcmPrefs
|
import org.microg.gms.gcm.GcmPrefs
|
||||||
|
|
||||||
|
2
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationPreferencesFragment.kt
Normal file → Executable file
2
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationPreferencesFragment.kt
Normal file → Executable file
@ -14,7 +14,7 @@ import androidx.navigation.fragment.findNavController
|
|||||||
import androidx.preference.Preference
|
import androidx.preference.Preference
|
||||||
import androidx.preference.PreferenceCategory
|
import androidx.preference.PreferenceCategory
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
import androidx.preference.PreferenceFragmentCompat
|
||||||
import com.google.android.gms.R
|
import com.mgoogle.android.gms.R
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
import org.microg.gms.gcm.GcmDatabase
|
import org.microg.gms.gcm.GcmDatabase
|
||||||
|
@ -1,61 +0,0 @@
|
|||||||
/*
|
|
||||||
* SPDX-FileCopyrightText: 2020, microG Project Team
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.microg.gms.ui
|
|
||||||
|
|
||||||
import android.os.Bundle
|
|
||||||
import android.view.*
|
|
||||||
import androidx.fragment.app.Fragment
|
|
||||||
import androidx.navigation.fragment.findNavController
|
|
||||||
import com.google.android.gms.R
|
|
||||||
import com.google.android.gms.databinding.SafetyNetFragmentBinding
|
|
||||||
import org.microg.gms.checkin.CheckinPrefs
|
|
||||||
import org.microg.gms.snet.SafetyNetPrefs
|
|
||||||
|
|
||||||
class SafetyNetFragment : Fragment(R.layout.safety_net_fragment) {
|
|
||||||
|
|
||||||
private lateinit var binding: SafetyNetFragmentBinding
|
|
||||||
|
|
||||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
|
||||||
binding = SafetyNetFragmentBinding.inflate(inflater, container, false)
|
|
||||||
binding.switchBarCallback = object : PreferenceSwitchBarCallback {
|
|
||||||
override fun onChecked(newStatus: Boolean) {
|
|
||||||
SafetyNetPrefs.get(requireContext()).isEnabled = newStatus
|
|
||||||
binding.safetynetEnabled = newStatus
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return binding.root
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onResume() {
|
|
||||||
super.onResume()
|
|
||||||
binding.checkinEnabled = CheckinPrefs.get(requireContext()).isEnabled
|
|
||||||
binding.safetynetEnabled = SafetyNetPrefs.get(requireContext()).isEnabled
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onActivityCreated(savedInstanceState: Bundle?) {
|
|
||||||
super.onActivityCreated(savedInstanceState)
|
|
||||||
setHasOptionsMenu(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
|
|
||||||
menu.add(0, MENU_ADVANCED, 0, R.string.menu_advanced)
|
|
||||||
super.onCreateOptionsMenu(menu, inflater)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
|
||||||
return when (item.itemId) {
|
|
||||||
MENU_ADVANCED -> {
|
|
||||||
findNavController().navigate(R.id.openSafetyNetAdvancedSettings)
|
|
||||||
true
|
|
||||||
}
|
|
||||||
else -> super.onOptionsItemSelected(item)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
companion object {
|
|
||||||
private const val MENU_ADVANCED = Menu.FIRST
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
/*
|
|
||||||
* SPDX-FileCopyrightText: 2020, microG Project Team
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.microg.gms.ui
|
|
||||||
|
|
||||||
import android.os.Bundle
|
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
|
||||||
import com.google.android.gms.R
|
|
||||||
|
|
||||||
class SafetyNetPreferencesFragment : PreferenceFragmentCompat() {
|
|
||||||
|
|
||||||
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
|
|
||||||
addPreferencesFromResource(R.xml.preferences_safetynet)
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user