mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 03:54:17 +01:00
Updated Android package ID to io.github.lime3ds.android
This commit is contained in:
parent
714934add8
commit
0929a9ada9
@ -26,7 +26,7 @@ val downloadedJniLibsPath = "${buildDir}/downloadedJniLibs"
|
|||||||
|
|
||||||
@Suppress("UnstableApiUsage")
|
@Suppress("UnstableApiUsage")
|
||||||
android {
|
android {
|
||||||
namespace = "io.github.lime3ds"
|
namespace = "io.github.lime3ds.android"
|
||||||
|
|
||||||
compileSdkVersion = "android-34"
|
compileSdkVersion = "android-34"
|
||||||
ndkVersion = "26.1.10909125"
|
ndkVersion = "26.1.10909125"
|
||||||
@ -61,7 +61,7 @@ android {
|
|||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO If this is ever modified, change application_id in strings.xml
|
// TODO If this is ever modified, change application_id in strings.xml
|
||||||
applicationId = "io.github.lime3ds"
|
applicationId = "io.github.lime3ds.android"
|
||||||
minSdk = 28
|
minSdk = 28
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = autoVersion
|
versionCode = autoVersion
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name="io.github.lime3ds.LimeApplication"
|
android:name="io.github.lime3ds.android.LimeApplication"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:allowBackup="false"
|
android:allowBackup="false"
|
||||||
@ -46,7 +46,7 @@
|
|||||||
android:resource="@xml/game_mode_config" />
|
android:resource="@xml/game_mode_config" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name="io.github.lime3ds.ui.main.MainActivity"
|
android:name="io.github.lime3ds.android.ui.main.MainActivity"
|
||||||
android:theme="@style/Theme.Lime.Splash.Main"
|
android:theme="@style/Theme.Lime.Splash.Main"
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
|
|
||||||
@ -59,13 +59,13 @@
|
|||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name="io.github.lime3ds.features.settings.ui.SettingsActivity"
|
android:name="io.github.lime3ds.android.features.settings.ui.SettingsActivity"
|
||||||
android:configChanges="orientation|screenSize|uiMode"
|
android:configChanges="orientation|screenSize|uiMode"
|
||||||
android:theme="@style/Theme.Lime.Main"
|
android:theme="@style/Theme.Lime.Main"
|
||||||
android:label="@string/preferences_settings"/>
|
android:label="@string/preferences_settings"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name="io.github.lime3ds.activities.EmulationActivity"
|
android:name="io.github.lime3ds.android.activities.EmulationActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:theme="@style/Theme.Lime.Main"
|
android:theme="@style/Theme.Lime.Main"
|
||||||
android:launchMode="singleTop">
|
android:launchMode="singleTop">
|
||||||
@ -80,12 +80,12 @@
|
|||||||
|
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<service android:name="io.github.lime3ds.utils.ForegroundService" android:foregroundServiceType="specialUse">
|
<service android:name="io.github.lime3ds.android.utils.ForegroundService" android:foregroundServiceType="specialUse">
|
||||||
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="Keep emulation running in background"/>
|
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="Keep emulation running in background"/>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name="io.github.lime3ds.features.cheats.ui.CheatsActivity"
|
android:name="io.github.lime3ds.android.features.cheats.ui.CheatsActivity"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:theme="@style/Theme.Lime.Main"
|
android:theme="@style/Theme.Lime.Main"
|
||||||
android:label="@string/cheats"/>
|
android:label="@string/cheats"/>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds
|
package io.github.lime3ds.android
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.app.Application
|
import android.app.Application
|
||||||
@ -10,12 +10,12 @@ import android.app.NotificationChannel
|
|||||||
import android.app.NotificationManager
|
import android.app.NotificationManager
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import io.github.lime3ds.utils.DirectoryInitialization
|
import io.github.lime3ds.android.utils.DirectoryInitialization
|
||||||
import io.github.lime3ds.utils.DocumentsTree
|
import io.github.lime3ds.android.utils.DocumentsTree
|
||||||
import io.github.lime3ds.utils.GpuDriverHelper
|
import io.github.lime3ds.android.utils.GpuDriverHelper
|
||||||
import io.github.lime3ds.utils.PermissionsHandler
|
import io.github.lime3ds.android.utils.PermissionsHandler
|
||||||
import io.github.lime3ds.utils.Log
|
import io.github.lime3ds.android.utils.Log
|
||||||
import io.github.lime3ds.utils.MemoryUtil
|
import io.github.lime3ds.android.utils.MemoryUtil
|
||||||
|
|
||||||
class LimeApplication : Application() {
|
class LimeApplication : Application() {
|
||||||
private fun createNotificationChannel() {
|
private fun createNotificationChannel() {
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds
|
package io.github.lime3ds.android
|
||||||
|
|
||||||
import android.Manifest.permission
|
import android.Manifest.permission
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
@ -20,10 +20,10 @@ import androidx.annotation.Keep
|
|||||||
import androidx.core.content.ContextCompat
|
import androidx.core.content.ContextCompat
|
||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import io.github.lime3ds.activities.EmulationActivity
|
import io.github.lime3ds.android.activities.EmulationActivity
|
||||||
import io.github.lime3ds.utils.EmulationMenuSettings
|
import io.github.lime3ds.android.utils.EmulationMenuSettings
|
||||||
import io.github.lime3ds.utils.FileUtil
|
import io.github.lime3ds.android.utils.FileUtil
|
||||||
import io.github.lime3ds.utils.Log
|
import io.github.lime3ds.android.utils.Log
|
||||||
import java.lang.ref.WeakReference
|
import java.lang.ref.WeakReference
|
||||||
import java.util.Date
|
import java.util.Date
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.activities
|
package io.github.lime3ds.android.activities
|
||||||
|
|
||||||
import android.Manifest.permission
|
import android.Manifest.permission
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
@ -25,24 +25,24 @@ import androidx.core.view.WindowInsetsCompat
|
|||||||
import androidx.core.view.WindowInsetsControllerCompat
|
import androidx.core.view.WindowInsetsControllerCompat
|
||||||
import androidx.navigation.fragment.NavHostFragment
|
import androidx.navigation.fragment.NavHostFragment
|
||||||
import androidx.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.camera.StillImageCameraHelper.OnFilePickerResult
|
import io.github.lime3ds.android.camera.StillImageCameraHelper.OnFilePickerResult
|
||||||
import io.github.lime3ds.contracts.OpenFileResultContract
|
import io.github.lime3ds.android.contracts.OpenFileResultContract
|
||||||
import io.github.lime3ds.databinding.ActivityEmulationBinding
|
import io.github.lime3ds.android.databinding.ActivityEmulationBinding
|
||||||
import io.github.lime3ds.display.ScreenAdjustmentUtil
|
import io.github.lime3ds.android.display.ScreenAdjustmentUtil
|
||||||
import io.github.lime3ds.features.hotkeys.HotkeyUtility
|
import io.github.lime3ds.android.features.hotkeys.HotkeyUtility
|
||||||
import io.github.lime3ds.features.settings.model.SettingsViewModel
|
import io.github.lime3ds.android.features.settings.model.SettingsViewModel
|
||||||
import io.github.lime3ds.features.settings.model.view.InputBindingSetting
|
import io.github.lime3ds.android.features.settings.model.view.InputBindingSetting
|
||||||
import io.github.lime3ds.fragments.MessageDialogFragment
|
import io.github.lime3ds.android.fragments.MessageDialogFragment
|
||||||
import io.github.lime3ds.utils.ControllerMappingHelper
|
import io.github.lime3ds.android.utils.ControllerMappingHelper
|
||||||
import io.github.lime3ds.utils.FileBrowserHelper
|
import io.github.lime3ds.android.utils.FileBrowserHelper
|
||||||
import io.github.lime3ds.utils.ForegroundService
|
import io.github.lime3ds.android.utils.ForegroundService
|
||||||
import io.github.lime3ds.utils.EmulationLifecycleUtil
|
import io.github.lime3ds.android.utils.EmulationLifecycleUtil
|
||||||
import io.github.lime3ds.utils.EmulationMenuSettings
|
import io.github.lime3ds.android.utils.EmulationMenuSettings
|
||||||
import io.github.lime3ds.utils.ThemeUtil
|
import io.github.lime3ds.android.utils.ThemeUtil
|
||||||
import io.github.lime3ds.viewmodel.EmulationViewModel
|
import io.github.lime3ds.android.viewmodel.EmulationViewModel
|
||||||
|
|
||||||
class EmulationActivity : AppCompatActivity() {
|
class EmulationActivity : AppCompatActivity() {
|
||||||
private val preferences: SharedPreferences
|
private val preferences: SharedPreferences
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.adapters
|
package io.github.lime3ds.android.adapters
|
||||||
|
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
@ -13,11 +13,11 @@ import androidx.recyclerview.widget.AsyncDifferConfig
|
|||||||
import androidx.recyclerview.widget.DiffUtil
|
import androidx.recyclerview.widget.DiffUtil
|
||||||
import androidx.recyclerview.widget.ListAdapter
|
import androidx.recyclerview.widget.ListAdapter
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.CardDriverOptionBinding
|
import io.github.lime3ds.android.databinding.CardDriverOptionBinding
|
||||||
import io.github.lime3ds.utils.GpuDriverMetadata
|
import io.github.lime3ds.android.utils.GpuDriverMetadata
|
||||||
import io.github.lime3ds.viewmodel.DriverViewModel
|
import io.github.lime3ds.android.viewmodel.DriverViewModel
|
||||||
import io.github.lime3ds.utils.GpuDriverHelper
|
import io.github.lime3ds.android.utils.GpuDriverHelper
|
||||||
|
|
||||||
class DriverAdapter(private val driverViewModel: DriverViewModel) :
|
class DriverAdapter(private val driverViewModel: DriverViewModel) :
|
||||||
ListAdapter<Pair<Uri, GpuDriverMetadata>, DriverAdapter.DriverViewHolder>(
|
ListAdapter<Pair<Uri, GpuDriverMetadata>, DriverAdapter.DriverViewHolder>(
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.adapters
|
package io.github.lime3ds.android.adapters
|
||||||
|
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import android.os.SystemClock
|
import android.os.SystemClock
|
||||||
@ -23,15 +23,15 @@ import androidx.recyclerview.widget.ListAdapter
|
|||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.google.android.material.color.MaterialColors
|
import com.google.android.material.color.MaterialColors
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import io.github.lime3ds.HomeNavigationDirections
|
import io.github.lime3ds.android.HomeNavigationDirections
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.adapters.GameAdapter.GameViewHolder
|
import io.github.lime3ds.android.adapters.GameAdapter.GameViewHolder
|
||||||
import io.github.lime3ds.databinding.CardGameBinding
|
import io.github.lime3ds.android.databinding.CardGameBinding
|
||||||
import io.github.lime3ds.features.cheats.ui.CheatsFragmentDirections
|
import io.github.lime3ds.android.features.cheats.ui.CheatsFragmentDirections
|
||||||
import io.github.lime3ds.model.Game
|
import io.github.lime3ds.android.model.Game
|
||||||
import io.github.lime3ds.utils.GameIconUtils
|
import io.github.lime3ds.android.utils.GameIconUtils
|
||||||
import io.github.lime3ds.viewmodel.GamesViewModel
|
import io.github.lime3ds.android.viewmodel.GamesViewModel
|
||||||
|
|
||||||
class GameAdapter(private val activity: AppCompatActivity) :
|
class GameAdapter(private val activity: AppCompatActivity) :
|
||||||
ListAdapter<Game, GameViewHolder>(AsyncDifferConfig.Builder(DiffCallback()).build()),
|
ListAdapter<Game, GameViewHolder>(AsyncDifferConfig.Builder(DiffCallback()).build()),
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.adapters
|
package io.github.lime3ds.android.adapters
|
||||||
|
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
@ -19,11 +19,11 @@ import androidx.lifecycle.repeatOnLifecycle
|
|||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.CardHomeOptionBinding
|
import io.github.lime3ds.android.databinding.CardHomeOptionBinding
|
||||||
import io.github.lime3ds.fragments.MessageDialogFragment
|
import io.github.lime3ds.android.fragments.MessageDialogFragment
|
||||||
import io.github.lime3ds.model.HomeSetting
|
import io.github.lime3ds.android.model.HomeSetting
|
||||||
import io.github.lime3ds.viewmodel.GamesViewModel
|
import io.github.lime3ds.android.viewmodel.GamesViewModel
|
||||||
|
|
||||||
class HomeSettingAdapter(
|
class HomeSettingAdapter(
|
||||||
private val activity: AppCompatActivity,
|
private val activity: AppCompatActivity,
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.adapters
|
package io.github.lime3ds.android.adapters
|
||||||
|
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@ -10,10 +10,10 @@ import android.view.ViewGroup
|
|||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import androidx.recyclerview.widget.RecyclerView.ViewHolder
|
import androidx.recyclerview.widget.RecyclerView.ViewHolder
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.databinding.ListItemSettingBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingBinding
|
||||||
import io.github.lime3ds.fragments.LicenseBottomSheetDialogFragment
|
import io.github.lime3ds.android.fragments.LicenseBottomSheetDialogFragment
|
||||||
import io.github.lime3ds.model.License
|
import io.github.lime3ds.android.model.License
|
||||||
|
|
||||||
class LicenseAdapter(private val activity: AppCompatActivity, var licenses: List<License>) :
|
class LicenseAdapter(private val activity: AppCompatActivity, var licenses: List<License>) :
|
||||||
RecyclerView.Adapter<LicenseAdapter.LicenseViewHolder>(),
|
RecyclerView.Adapter<LicenseAdapter.LicenseViewHolder>(),
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.adapters
|
package io.github.lime3ds.android.adapters
|
||||||
|
|
||||||
import android.text.Html
|
import android.text.Html
|
||||||
import android.text.method.LinkMovementMethod
|
import android.text.method.LinkMovementMethod
|
||||||
@ -13,11 +13,11 @@ import androidx.appcompat.app.AppCompatActivity
|
|||||||
import androidx.core.content.res.ResourcesCompat
|
import androidx.core.content.res.ResourcesCompat
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.google.android.material.button.MaterialButton
|
import com.google.android.material.button.MaterialButton
|
||||||
import io.github.lime3ds.databinding.PageSetupBinding
|
import io.github.lime3ds.android.databinding.PageSetupBinding
|
||||||
import io.github.lime3ds.model.SetupCallback
|
import io.github.lime3ds.android.model.SetupCallback
|
||||||
import io.github.lime3ds.model.SetupPage
|
import io.github.lime3ds.android.model.SetupPage
|
||||||
import io.github.lime3ds.model.StepState
|
import io.github.lime3ds.android.model.StepState
|
||||||
import io.github.lime3ds.utils.ViewUtils
|
import io.github.lime3ds.android.utils.ViewUtils
|
||||||
|
|
||||||
class SetupAdapter(val activity: AppCompatActivity, val pages: List<SetupPage>) :
|
class SetupAdapter(val activity: AppCompatActivity, val pages: List<SetupPage>) :
|
||||||
RecyclerView.Adapter<SetupAdapter.SetupPageViewHolder>() {
|
RecyclerView.Adapter<SetupAdapter.SetupPageViewHolder>() {
|
@ -2,11 +2,11 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.applets
|
package io.github.lime3ds.android.applets
|
||||||
|
|
||||||
import androidx.annotation.Keep
|
import androidx.annotation.Keep
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.fragments.MiiSelectorDialogFragment
|
import io.github.lime3ds.android.fragments.MiiSelectorDialogFragment
|
||||||
import java.io.Serializable
|
import java.io.Serializable
|
||||||
|
|
||||||
@Keep
|
@Keep
|
@ -2,17 +2,17 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.applets
|
package io.github.lime3ds.android.applets
|
||||||
|
|
||||||
import android.text.InputFilter
|
import android.text.InputFilter
|
||||||
import android.text.Spanned
|
import android.text.Spanned
|
||||||
import androidx.annotation.Keep
|
import androidx.annotation.Keep
|
||||||
import io.github.lime3ds.LimeApplication.Companion.appContext
|
import io.github.lime3ds.android.LimeApplication.Companion.appContext
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.fragments.KeyboardDialogFragment
|
import io.github.lime3ds.android.fragments.KeyboardDialogFragment
|
||||||
import io.github.lime3ds.fragments.MessageDialogFragment
|
import io.github.lime3ds.android.fragments.MessageDialogFragment
|
||||||
import io.github.lime3ds.utils.Log
|
import io.github.lime3ds.android.utils.Log
|
||||||
import java.io.Serializable
|
import java.io.Serializable
|
||||||
|
|
||||||
@Keep
|
@Keep
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.camera
|
package io.github.lime3ds.android.camera
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
import androidx.activity.result.PickVisualMediaRequest
|
import androidx.activity.result.PickVisualMediaRequest
|
||||||
@ -12,8 +12,8 @@ import androidx.core.graphics.drawable.toBitmap
|
|||||||
import coil.executeBlocking
|
import coil.executeBlocking
|
||||||
import coil.imageLoader
|
import coil.imageLoader
|
||||||
import coil.request.ImageRequest
|
import coil.request.ImageRequest
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
|
|
||||||
// Used in native code.
|
// Used in native code.
|
||||||
object StillImageCameraHelper {
|
object StillImageCameraHelper {
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.contracts
|
package io.github.lime3ds.android.contracts
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
@ -2,15 +2,15 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.display
|
package io.github.lime3ds.android.display
|
||||||
|
|
||||||
import android.view.WindowManager
|
import android.view.WindowManager
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.features.settings.model.BooleanSetting
|
import io.github.lime3ds.android.features.settings.model.BooleanSetting
|
||||||
import io.github.lime3ds.features.settings.model.IntSetting
|
import io.github.lime3ds.android.features.settings.model.IntSetting
|
||||||
import io.github.lime3ds.features.settings.model.Settings
|
import io.github.lime3ds.android.features.settings.model.Settings
|
||||||
import io.github.lime3ds.features.settings.utils.SettingsFile
|
import io.github.lime3ds.android.features.settings.utils.SettingsFile
|
||||||
import io.github.lime3ds.utils.EmulationMenuSettings
|
import io.github.lime3ds.android.utils.EmulationMenuSettings
|
||||||
|
|
||||||
class ScreenAdjustmentUtil(private val windowManager: WindowManager,
|
class ScreenAdjustmentUtil(private val windowManager: WindowManager,
|
||||||
private val settings: Settings) {
|
private val settings: Settings) {
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.display
|
package io.github.lime3ds.android.display
|
||||||
|
|
||||||
enum class ScreenLayout(val int: Int) {
|
enum class ScreenLayout(val int: Int) {
|
||||||
// These must match what is defined in src/common/settings.h
|
// These must match what is defined in src/common/settings.h
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.cheats.model
|
package io.github.lime3ds.android.features.cheats.model
|
||||||
|
|
||||||
import androidx.annotation.Keep
|
import androidx.annotation.Keep
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.cheats.model
|
package io.github.lime3ds.android.features.cheats.model
|
||||||
|
|
||||||
import androidx.annotation.Keep
|
import androidx.annotation.Keep
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.cheats.model
|
package io.github.lime3ds.android.features.cheats.model
|
||||||
|
|
||||||
import androidx.lifecycle.ViewModel
|
import androidx.lifecycle.ViewModel
|
||||||
import kotlinx.coroutines.flow.MutableStateFlow
|
import kotlinx.coroutines.flow.MutableStateFlow
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.cheats.ui
|
package io.github.lime3ds.android.features.cheats.ui
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
@ -21,10 +21,10 @@ import androidx.lifecycle.repeatOnLifecycle
|
|||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.FragmentCheatDetailsBinding
|
import io.github.lime3ds.android.databinding.FragmentCheatDetailsBinding
|
||||||
import io.github.lime3ds.features.cheats.model.Cheat
|
import io.github.lime3ds.android.features.cheats.model.Cheat
|
||||||
import io.github.lime3ds.features.cheats.model.CheatsViewModel
|
import io.github.lime3ds.android.features.cheats.model.CheatsViewModel
|
||||||
|
|
||||||
class CheatDetailsFragment : Fragment() {
|
class CheatDetailsFragment : Fragment() {
|
||||||
private val cheatsViewModel: CheatsViewModel by activityViewModels()
|
private val cheatsViewModel: CheatsViewModel by activityViewModels()
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.cheats.ui
|
package io.github.lime3ds.android.features.cheats.ui
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -23,10 +23,10 @@ import androidx.recyclerview.widget.LinearLayoutManager
|
|||||||
import com.google.android.material.divider.MaterialDividerItemDecoration
|
import com.google.android.material.divider.MaterialDividerItemDecoration
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.FragmentCheatListBinding
|
import io.github.lime3ds.android.databinding.FragmentCheatListBinding
|
||||||
import io.github.lime3ds.features.cheats.model.CheatsViewModel
|
import io.github.lime3ds.android.features.cheats.model.CheatsViewModel
|
||||||
import io.github.lime3ds.ui.main.MainActivity
|
import io.github.lime3ds.android.ui.main.MainActivity
|
||||||
|
|
||||||
class CheatListFragment : Fragment() {
|
class CheatListFragment : Fragment() {
|
||||||
private var _binding: FragmentCheatListBinding? = null
|
private var _binding: FragmentCheatListBinding? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.cheats.ui
|
package io.github.lime3ds.android.features.cheats.ui
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@ -12,10 +12,10 @@ import androidx.appcompat.app.AppCompatActivity
|
|||||||
import androidx.core.view.WindowCompat
|
import androidx.core.view.WindowCompat
|
||||||
import androidx.navigation.fragment.NavHostFragment
|
import androidx.navigation.fragment.NavHostFragment
|
||||||
import com.google.android.material.color.MaterialColors
|
import com.google.android.material.color.MaterialColors
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.ActivityCheatsBinding
|
import io.github.lime3ds.android.databinding.ActivityCheatsBinding
|
||||||
import io.github.lime3ds.utils.InsetsHelper
|
import io.github.lime3ds.android.utils.InsetsHelper
|
||||||
import io.github.lime3ds.utils.ThemeUtil
|
import io.github.lime3ds.android.utils.ThemeUtil
|
||||||
|
|
||||||
class CheatsActivity : AppCompatActivity() {
|
class CheatsActivity : AppCompatActivity() {
|
||||||
private lateinit var binding: ActivityCheatsBinding
|
private lateinit var binding: ActivityCheatsBinding
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.cheats.ui
|
package io.github.lime3ds.android.features.cheats.ui
|
||||||
|
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@ -11,9 +11,9 @@ import android.widget.CompoundButton
|
|||||||
import androidx.fragment.app.FragmentActivity
|
import androidx.fragment.app.FragmentActivity
|
||||||
import androidx.lifecycle.ViewModelProvider
|
import androidx.lifecycle.ViewModelProvider
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import io.github.lime3ds.databinding.ListItemCheatBinding
|
import io.github.lime3ds.android.databinding.ListItemCheatBinding
|
||||||
import io.github.lime3ds.features.cheats.model.Cheat
|
import io.github.lime3ds.android.features.cheats.model.Cheat
|
||||||
import io.github.lime3ds.features.cheats.model.CheatsViewModel
|
import io.github.lime3ds.android.features.cheats.model.CheatsViewModel
|
||||||
|
|
||||||
class CheatsAdapter(
|
class CheatsAdapter(
|
||||||
private val activity: FragmentActivity,
|
private val activity: FragmentActivity,
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.cheats.ui
|
package io.github.lime3ds.android.features.cheats.ui
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
@ -25,12 +25,12 @@ import androidx.slidingpanelayout.widget.SlidingPaneLayout
|
|||||||
import com.google.android.material.transition.MaterialSharedAxis
|
import com.google.android.material.transition.MaterialSharedAxis
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.databinding.FragmentCheatsBinding
|
import io.github.lime3ds.android.databinding.FragmentCheatsBinding
|
||||||
import io.github.lime3ds.features.cheats.model.Cheat
|
import io.github.lime3ds.android.features.cheats.model.Cheat
|
||||||
import io.github.lime3ds.features.cheats.model.CheatsViewModel
|
import io.github.lime3ds.android.features.cheats.model.CheatsViewModel
|
||||||
import io.github.lime3ds.ui.TwoPaneOnBackPressedCallback
|
import io.github.lime3ds.android.ui.TwoPaneOnBackPressedCallback
|
||||||
import io.github.lime3ds.ui.main.MainActivity
|
import io.github.lime3ds.android.ui.main.MainActivity
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
|
|
||||||
class CheatsFragment : Fragment(), SlidingPaneLayout.PanelSlideListener {
|
class CheatsFragment : Fragment(), SlidingPaneLayout.PanelSlideListener {
|
||||||
private var cheatListLastFocus: View? = null
|
private var cheatListLastFocus: View? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.hotkeys
|
package io.github.lime3ds.android.features.hotkeys
|
||||||
|
|
||||||
enum class Hotkey(val button: Int) {
|
enum class Hotkey(val button: Int) {
|
||||||
SWAP_SCREEN(10001),
|
SWAP_SCREEN(10001),
|
@ -2,10 +2,10 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.hotkeys
|
package io.github.lime3ds.android.features.hotkeys
|
||||||
|
|
||||||
import io.github.lime3ds.utils.EmulationLifecycleUtil
|
import io.github.lime3ds.android.utils.EmulationLifecycleUtil
|
||||||
import io.github.lime3ds.display.ScreenAdjustmentUtil
|
import io.github.lime3ds.android.display.ScreenAdjustmentUtil
|
||||||
|
|
||||||
class HotkeyUtility(private val screenAdjustmentUtil: ScreenAdjustmentUtil) {
|
class HotkeyUtility(private val screenAdjustmentUtil: ScreenAdjustmentUtil) {
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
interface AbstractBooleanSetting : AbstractSetting {
|
interface AbstractBooleanSetting : AbstractSetting {
|
||||||
var boolean: Boolean
|
var boolean: Boolean
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
interface AbstractFloatSetting : AbstractSetting {
|
interface AbstractFloatSetting : AbstractSetting {
|
||||||
var float: Float
|
var float: Float
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
interface AbstractIntSetting : AbstractSetting {
|
interface AbstractIntSetting : AbstractSetting {
|
||||||
var int: Int
|
var int: Int
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
interface AbstractSetting {
|
interface AbstractSetting {
|
||||||
val key: String?
|
val key: String?
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
interface AbstractShortSetting : AbstractSetting {
|
interface AbstractShortSetting : AbstractSetting {
|
||||||
var short: Short
|
var short: Short
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
interface AbstractStringSetting : AbstractSetting {
|
interface AbstractStringSetting : AbstractSetting {
|
||||||
var string: String
|
var string: String
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
enum class BooleanSetting(
|
enum class BooleanSetting(
|
||||||
override val key: String,
|
override val key: String,
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
enum class FloatSetting(
|
enum class FloatSetting(
|
||||||
override val key: String,
|
override val key: String,
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
enum class IntSetting(
|
enum class IntSetting(
|
||||||
override val key: String,
|
override val key: String,
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
enum class ScaledFloatSetting(
|
enum class ScaledFloatSetting(
|
||||||
override val key: String,
|
override val key: String,
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A semantically-related group of Settings objects. These Settings are
|
* A semantically-related group of Settings objects. These Settings are
|
@ -2,13 +2,13 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsActivityView
|
import io.github.lime3ds.android.features.settings.ui.SettingsActivityView
|
||||||
import io.github.lime3ds.features.settings.utils.SettingsFile
|
import io.github.lime3ds.android.features.settings.utils.SettingsFile
|
||||||
import java.util.TreeMap
|
import java.util.TreeMap
|
||||||
|
|
||||||
class Settings {
|
class Settings {
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
import androidx.lifecycle.ViewModel
|
import androidx.lifecycle.ViewModel
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model
|
package io.github.lime3ds.android.features.settings.model
|
||||||
|
|
||||||
enum class StringSetting(
|
enum class StringSetting(
|
||||||
override val key: String,
|
override val key: String,
|
@ -2,10 +2,10 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model.view
|
package io.github.lime3ds.android.features.settings.model.view
|
||||||
|
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractStringSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractStringSetting
|
||||||
|
|
||||||
class DateTimeSetting(
|
class DateTimeSetting(
|
||||||
setting: AbstractSetting?,
|
setting: AbstractSetting?,
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model.view
|
package io.github.lime3ds.android.features.settings.model.view
|
||||||
|
|
||||||
class HeaderSetting(titleId: Int) : SettingsItem(null, titleId, 0) {
|
class HeaderSetting(titleId: Int) : SettingsItem(null, titleId, 0) {
|
||||||
override val type = TYPE_HEADER
|
override val type = TYPE_HEADER
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model.view
|
package io.github.lime3ds.android.features.settings.model.view
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
@ -11,12 +11,12 @@ import android.view.InputDevice.MotionRange
|
|||||||
import android.view.KeyEvent
|
import android.view.KeyEvent
|
||||||
import android.widget.Toast
|
import android.widget.Toast
|
||||||
import androidx.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.features.hotkeys.Hotkey
|
import io.github.lime3ds.android.features.hotkeys.Hotkey
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
import io.github.lime3ds.features.settings.model.Settings
|
import io.github.lime3ds.android.features.settings.model.Settings
|
||||||
|
|
||||||
class InputBindingSetting(
|
class InputBindingSetting(
|
||||||
val abstractSetting: AbstractSetting,
|
val abstractSetting: AbstractSetting,
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model.view
|
package io.github.lime3ds.android.features.settings.model.view
|
||||||
|
|
||||||
class RunnableSetting(
|
class RunnableSetting(
|
||||||
titleId: Int,
|
titleId: Int,
|
@ -2,10 +2,10 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model.view
|
package io.github.lime3ds.android.features.settings.model.view
|
||||||
|
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ViewModel abstraction for an Item in the RecyclerView powering SettingsFragments.
|
* ViewModel abstraction for an Item in the RecyclerView powering SettingsFragments.
|
@ -2,11 +2,11 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model.view
|
package io.github.lime3ds.android.features.settings.model.view
|
||||||
|
|
||||||
import io.github.lime3ds.features.settings.model.AbstractIntSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractIntSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractShortSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractShortSetting
|
||||||
|
|
||||||
class SingleChoiceSetting(
|
class SingleChoiceSetting(
|
||||||
setting: AbstractSetting?,
|
setting: AbstractSetting?,
|
@ -2,14 +2,14 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model.view
|
package io.github.lime3ds.android.features.settings.model.view
|
||||||
|
|
||||||
import io.github.lime3ds.features.settings.model.AbstractFloatSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractFloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractIntSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractIntSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
import io.github.lime3ds.features.settings.model.FloatSetting
|
import io.github.lime3ds.android.features.settings.model.FloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.ScaledFloatSetting
|
import io.github.lime3ds.android.features.settings.model.ScaledFloatSetting
|
||||||
import io.github.lime3ds.utils.Log
|
import io.github.lime3ds.android.utils.Log
|
||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
class SliderSetting(
|
class SliderSetting(
|
@ -2,10 +2,10 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model.view
|
package io.github.lime3ds.android.features.settings.model.view
|
||||||
|
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractStringSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractStringSetting
|
||||||
|
|
||||||
class StringInputSetting(
|
class StringInputSetting(
|
||||||
setting: AbstractSetting?,
|
setting: AbstractSetting?,
|
@ -2,11 +2,11 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model.view
|
package io.github.lime3ds.android.features.settings.model.view
|
||||||
|
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractShortSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractShortSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractStringSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractStringSetting
|
||||||
|
|
||||||
class StringSingleChoiceSetting(
|
class StringSingleChoiceSetting(
|
||||||
setting: AbstractSetting?,
|
setting: AbstractSetting?,
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model.view
|
package io.github.lime3ds.android.features.settings.model.view
|
||||||
|
|
||||||
class SubmenuSetting(
|
class SubmenuSetting(
|
||||||
titleId: Int,
|
titleId: Int,
|
@ -2,11 +2,11 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.model.view
|
package io.github.lime3ds.android.features.settings.model.view
|
||||||
|
|
||||||
import io.github.lime3ds.features.settings.model.AbstractBooleanSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractBooleanSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractIntSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractIntSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
|
|
||||||
class SwitchSetting(
|
class SwitchSetting(
|
||||||
setting: AbstractSetting,
|
setting: AbstractSetting,
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui
|
package io.github.lime3ds.android.features.settings.ui
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
@ -21,23 +21,23 @@ import androidx.core.view.WindowInsetsCompat
|
|||||||
import androidx.core.view.updatePadding
|
import androidx.core.view.updatePadding
|
||||||
import androidx.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
import com.google.android.material.color.MaterialColors
|
import com.google.android.material.color.MaterialColors
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.ActivitySettingsBinding
|
import io.github.lime3ds.android.databinding.ActivitySettingsBinding
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import io.github.lime3ds.features.settings.model.BooleanSetting
|
import io.github.lime3ds.android.features.settings.model.BooleanSetting
|
||||||
import io.github.lime3ds.features.settings.model.FloatSetting
|
import io.github.lime3ds.android.features.settings.model.FloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.IntSetting
|
import io.github.lime3ds.android.features.settings.model.IntSetting
|
||||||
import io.github.lime3ds.features.settings.model.ScaledFloatSetting
|
import io.github.lime3ds.android.features.settings.model.ScaledFloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.Settings
|
import io.github.lime3ds.android.features.settings.model.Settings
|
||||||
import io.github.lime3ds.features.settings.model.SettingsViewModel
|
import io.github.lime3ds.android.features.settings.model.SettingsViewModel
|
||||||
import io.github.lime3ds.features.settings.model.StringSetting
|
import io.github.lime3ds.android.features.settings.model.StringSetting
|
||||||
import io.github.lime3ds.features.settings.utils.SettingsFile
|
import io.github.lime3ds.android.features.settings.utils.SettingsFile
|
||||||
import io.github.lime3ds.utils.SystemSaveGame
|
import io.github.lime3ds.android.utils.SystemSaveGame
|
||||||
import io.github.lime3ds.utils.DirectoryInitialization
|
import io.github.lime3ds.android.utils.DirectoryInitialization
|
||||||
import io.github.lime3ds.utils.InsetsHelper
|
import io.github.lime3ds.android.utils.InsetsHelper
|
||||||
import io.github.lime3ds.utils.ThemeUtil
|
import io.github.lime3ds.android.utils.ThemeUtil
|
||||||
|
|
||||||
class SettingsActivity : AppCompatActivity(), SettingsActivityView {
|
class SettingsActivity : AppCompatActivity(), SettingsActivityView {
|
||||||
private val presenter = SettingsActivityPresenter(this)
|
private val presenter = SettingsActivityPresenter(this)
|
@ -2,15 +2,15 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui
|
package io.github.lime3ds.android.features.settings.ui
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.features.settings.model.Settings
|
import io.github.lime3ds.android.features.settings.model.Settings
|
||||||
import io.github.lime3ds.utils.SystemSaveGame
|
import io.github.lime3ds.android.utils.SystemSaveGame
|
||||||
import io.github.lime3ds.utils.DirectoryInitialization
|
import io.github.lime3ds.android.utils.DirectoryInitialization
|
||||||
import io.github.lime3ds.utils.Log
|
import io.github.lime3ds.android.utils.Log
|
||||||
|
|
||||||
class SettingsActivityPresenter(private val activityView: SettingsActivityView) {
|
class SettingsActivityPresenter(private val activityView: SettingsActivityView) {
|
||||||
val settings: Settings get() = activityView.settings
|
val settings: Settings get() = activityView.settings
|
@ -2,9 +2,9 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui
|
package io.github.lime3ds.android.features.settings.ui
|
||||||
|
|
||||||
import io.github.lime3ds.features.settings.model.Settings
|
import io.github.lime3ds.android.features.settings.model.Settings
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstraction for the Activity that manages SettingsFragments.
|
* Abstraction for the Activity that manages SettingsFragments.
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui
|
package io.github.lime3ds.android.features.settings.ui
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
@ -24,42 +24,42 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
|||||||
import com.google.android.material.slider.Slider
|
import com.google.android.material.slider.Slider
|
||||||
import com.google.android.material.timepicker.MaterialTimePicker
|
import com.google.android.material.timepicker.MaterialTimePicker
|
||||||
import com.google.android.material.timepicker.TimeFormat
|
import com.google.android.material.timepicker.TimeFormat
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.DialogSliderBinding
|
import io.github.lime3ds.android.databinding.DialogSliderBinding
|
||||||
import io.github.lime3ds.databinding.DialogSoftwareKeyboardBinding
|
import io.github.lime3ds.android.databinding.DialogSoftwareKeyboardBinding
|
||||||
import io.github.lime3ds.databinding.ListItemSettingBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingBinding
|
||||||
import io.github.lime3ds.databinding.ListItemSettingSwitchBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingSwitchBinding
|
||||||
import io.github.lime3ds.databinding.ListItemSettingsHeaderBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingsHeaderBinding
|
||||||
import io.github.lime3ds.features.settings.model.AbstractBooleanSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractBooleanSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractFloatSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractFloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractIntSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractIntSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractStringSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractStringSetting
|
||||||
import io.github.lime3ds.features.settings.model.FloatSetting
|
import io.github.lime3ds.android.features.settings.model.FloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.ScaledFloatSetting
|
import io.github.lime3ds.android.features.settings.model.ScaledFloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractShortSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractShortSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.DateTimeSetting
|
import io.github.lime3ds.android.features.settings.model.view.DateTimeSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.InputBindingSetting
|
import io.github.lime3ds.android.features.settings.model.view.InputBindingSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.model.view.SingleChoiceSetting
|
import io.github.lime3ds.android.features.settings.model.view.SingleChoiceSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SliderSetting
|
import io.github.lime3ds.android.features.settings.model.view.SliderSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.StringInputSetting
|
import io.github.lime3ds.android.features.settings.model.view.StringInputSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.StringSingleChoiceSetting
|
import io.github.lime3ds.android.features.settings.model.view.StringSingleChoiceSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SubmenuSetting
|
import io.github.lime3ds.android.features.settings.model.view.SubmenuSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SwitchSetting
|
import io.github.lime3ds.android.features.settings.model.view.SwitchSetting
|
||||||
import io.github.lime3ds.features.settings.ui.viewholder.DateTimeViewHolder
|
import io.github.lime3ds.android.features.settings.ui.viewholder.DateTimeViewHolder
|
||||||
import io.github.lime3ds.features.settings.ui.viewholder.HeaderViewHolder
|
import io.github.lime3ds.android.features.settings.ui.viewholder.HeaderViewHolder
|
||||||
import io.github.lime3ds.features.settings.ui.viewholder.InputBindingSettingViewHolder
|
import io.github.lime3ds.android.features.settings.ui.viewholder.InputBindingSettingViewHolder
|
||||||
import io.github.lime3ds.features.settings.ui.viewholder.RunnableViewHolder
|
import io.github.lime3ds.android.features.settings.ui.viewholder.RunnableViewHolder
|
||||||
import io.github.lime3ds.features.settings.ui.viewholder.SettingViewHolder
|
import io.github.lime3ds.android.features.settings.ui.viewholder.SettingViewHolder
|
||||||
import io.github.lime3ds.features.settings.ui.viewholder.SingleChoiceViewHolder
|
import io.github.lime3ds.android.features.settings.ui.viewholder.SingleChoiceViewHolder
|
||||||
import io.github.lime3ds.features.settings.ui.viewholder.SliderViewHolder
|
import io.github.lime3ds.android.features.settings.ui.viewholder.SliderViewHolder
|
||||||
import io.github.lime3ds.features.settings.ui.viewholder.StringInputViewHolder
|
import io.github.lime3ds.android.features.settings.ui.viewholder.StringInputViewHolder
|
||||||
import io.github.lime3ds.features.settings.ui.viewholder.SubmenuViewHolder
|
import io.github.lime3ds.android.features.settings.ui.viewholder.SubmenuViewHolder
|
||||||
import io.github.lime3ds.features.settings.ui.viewholder.SwitchSettingViewHolder
|
import io.github.lime3ds.android.features.settings.ui.viewholder.SwitchSettingViewHolder
|
||||||
import io.github.lime3ds.fragments.MessageDialogFragment
|
import io.github.lime3ds.android.fragments.MessageDialogFragment
|
||||||
import io.github.lime3ds.fragments.MotionBottomSheetDialogFragment
|
import io.github.lime3ds.android.fragments.MotionBottomSheetDialogFragment
|
||||||
import io.github.lime3ds.utils.SystemSaveGame
|
import io.github.lime3ds.android.utils.SystemSaveGame
|
||||||
import java.lang.IllegalStateException
|
import java.lang.IllegalStateException
|
||||||
import java.lang.NumberFormatException
|
import java.lang.NumberFormatException
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui
|
package io.github.lime3ds.android.features.settings.ui
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -15,9 +15,9 @@ import androidx.core.view.updatePadding
|
|||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import com.google.android.material.divider.MaterialDividerItemDecoration
|
import com.google.android.material.divider.MaterialDividerItemDecoration
|
||||||
import io.github.lime3ds.databinding.FragmentSettingsBinding
|
import io.github.lime3ds.android.databinding.FragmentSettingsBinding
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
|
|
||||||
class SettingsFragment : Fragment(), SettingsFragmentView {
|
class SettingsFragment : Fragment(), SettingsFragmentView {
|
||||||
override var activityView: SettingsActivityView? = null
|
override var activityView: SettingsActivityView? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui
|
package io.github.lime3ds.android.features.settings.ui
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
@ -12,35 +12,35 @@ import android.hardware.camera2.CameraManager
|
|||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
import androidx.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.features.settings.model.AbstractBooleanSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractBooleanSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractIntSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractIntSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractStringSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractStringSetting
|
||||||
import io.github.lime3ds.features.settings.model.BooleanSetting
|
import io.github.lime3ds.android.features.settings.model.BooleanSetting
|
||||||
import io.github.lime3ds.features.settings.model.IntSetting
|
import io.github.lime3ds.android.features.settings.model.IntSetting
|
||||||
import io.github.lime3ds.features.settings.model.ScaledFloatSetting
|
import io.github.lime3ds.android.features.settings.model.ScaledFloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.Settings
|
import io.github.lime3ds.android.features.settings.model.Settings
|
||||||
import io.github.lime3ds.features.settings.model.StringSetting
|
import io.github.lime3ds.android.features.settings.model.StringSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractShortSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractShortSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.DateTimeSetting
|
import io.github.lime3ds.android.features.settings.model.view.DateTimeSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.HeaderSetting
|
import io.github.lime3ds.android.features.settings.model.view.HeaderSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.InputBindingSetting
|
import io.github.lime3ds.android.features.settings.model.view.InputBindingSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.RunnableSetting
|
import io.github.lime3ds.android.features.settings.model.view.RunnableSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.model.view.SingleChoiceSetting
|
import io.github.lime3ds.android.features.settings.model.view.SingleChoiceSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SliderSetting
|
import io.github.lime3ds.android.features.settings.model.view.SliderSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.StringInputSetting
|
import io.github.lime3ds.android.features.settings.model.view.StringInputSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.StringSingleChoiceSetting
|
import io.github.lime3ds.android.features.settings.model.view.StringSingleChoiceSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SubmenuSetting
|
import io.github.lime3ds.android.features.settings.model.view.SubmenuSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SwitchSetting
|
import io.github.lime3ds.android.features.settings.model.view.SwitchSetting
|
||||||
import io.github.lime3ds.features.settings.utils.SettingsFile
|
import io.github.lime3ds.android.features.settings.utils.SettingsFile
|
||||||
import io.github.lime3ds.fragments.ResetSettingsDialogFragment
|
import io.github.lime3ds.android.fragments.ResetSettingsDialogFragment
|
||||||
import io.github.lime3ds.utils.BirthdayMonth
|
import io.github.lime3ds.android.utils.BirthdayMonth
|
||||||
import io.github.lime3ds.utils.Log
|
import io.github.lime3ds.android.utils.Log
|
||||||
import io.github.lime3ds.utils.SystemSaveGame
|
import io.github.lime3ds.android.utils.SystemSaveGame
|
||||||
import io.github.lime3ds.utils.ThemeUtil
|
import io.github.lime3ds.android.utils.ThemeUtil
|
||||||
|
|
||||||
class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView) {
|
class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView) {
|
||||||
private var menuTag: String? = null
|
private var menuTag: String? = null
|
@ -2,10 +2,10 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui
|
package io.github.lime3ds.android.features.settings.ui
|
||||||
|
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstraction for a screen showing a list of settings. Instances of
|
* Abstraction for a screen showing a list of settings. Instances of
|
@ -2,19 +2,19 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui.viewholder
|
package io.github.lime3ds.android.features.settings.ui.viewholder
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import io.github.lime3ds.databinding.ListItemSettingBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingBinding
|
||||||
import java.time.Instant
|
import java.time.Instant
|
||||||
import java.time.ZoneId
|
import java.time.ZoneId
|
||||||
import java.time.ZonedDateTime
|
import java.time.ZonedDateTime
|
||||||
import java.time.format.DateTimeFormatter
|
import java.time.format.DateTimeFormatter
|
||||||
import java.time.format.FormatStyle
|
import java.time.format.FormatStyle
|
||||||
import io.github.lime3ds.features.settings.model.view.DateTimeSetting
|
import io.github.lime3ds.android.features.settings.model.view.DateTimeSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsAdapter
|
import io.github.lime3ds.android.features.settings.ui.SettingsAdapter
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
|
|
||||||
class DateTimeViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
class DateTimeViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
@ -2,12 +2,12 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui.viewholder
|
package io.github.lime3ds.android.features.settings.ui.viewholder
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import io.github.lime3ds.databinding.ListItemSettingsHeaderBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingsHeaderBinding
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsAdapter
|
import io.github.lime3ds.android.features.settings.ui.SettingsAdapter
|
||||||
|
|
||||||
class HeaderViewHolder(val binding: ListItemSettingsHeaderBinding, adapter: SettingsAdapter) :
|
class HeaderViewHolder(val binding: ListItemSettingsHeaderBinding, adapter: SettingsAdapter) :
|
||||||
SettingViewHolder(binding.root, adapter) {
|
SettingViewHolder(binding.root, adapter) {
|
@ -2,15 +2,15 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui.viewholder
|
package io.github.lime3ds.android.features.settings.ui.viewholder
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import androidx.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.databinding.ListItemSettingBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingBinding
|
||||||
import io.github.lime3ds.features.settings.model.view.InputBindingSetting
|
import io.github.lime3ds.android.features.settings.model.view.InputBindingSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsAdapter
|
import io.github.lime3ds.android.features.settings.ui.SettingsAdapter
|
||||||
|
|
||||||
class InputBindingSettingViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
class InputBindingSettingViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
||||||
SettingViewHolder(binding.root, adapter) {
|
SettingViewHolder(binding.root, adapter) {
|
@ -2,14 +2,14 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui.viewholder
|
package io.github.lime3ds.android.features.settings.ui.viewholder
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.databinding.ListItemSettingBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingBinding
|
||||||
import io.github.lime3ds.features.settings.model.view.RunnableSetting
|
import io.github.lime3ds.android.features.settings.model.view.RunnableSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsAdapter
|
import io.github.lime3ds.android.features.settings.ui.SettingsAdapter
|
||||||
|
|
||||||
class RunnableViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
class RunnableViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
||||||
SettingViewHolder(binding.root, adapter) {
|
SettingViewHolder(binding.root, adapter) {
|
@ -2,12 +2,12 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui.viewholder
|
package io.github.lime3ds.android.features.settings.ui.viewholder
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsAdapter
|
import io.github.lime3ds.android.features.settings.ui.SettingsAdapter
|
||||||
|
|
||||||
abstract class SettingViewHolder(itemView: View, protected val adapter: SettingsAdapter) :
|
abstract class SettingViewHolder(itemView: View, protected val adapter: SettingsAdapter) :
|
||||||
RecyclerView.ViewHolder(itemView), View.OnClickListener, View.OnLongClickListener {
|
RecyclerView.ViewHolder(itemView), View.OnClickListener, View.OnLongClickListener {
|
@ -2,14 +2,14 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui.viewholder
|
package io.github.lime3ds.android.features.settings.ui.viewholder
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import io.github.lime3ds.databinding.ListItemSettingBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingBinding
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.model.view.SingleChoiceSetting
|
import io.github.lime3ds.android.features.settings.model.view.SingleChoiceSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.StringSingleChoiceSetting
|
import io.github.lime3ds.android.features.settings.model.view.StringSingleChoiceSetting
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsAdapter
|
import io.github.lime3ds.android.features.settings.ui.SettingsAdapter
|
||||||
|
|
||||||
class SingleChoiceViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
class SingleChoiceViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
||||||
SettingViewHolder(binding.root, adapter) {
|
SettingViewHolder(binding.root, adapter) {
|
@ -2,17 +2,17 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui.viewholder
|
package io.github.lime3ds.android.features.settings.ui.viewholder
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import io.github.lime3ds.databinding.ListItemSettingBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingBinding
|
||||||
import io.github.lime3ds.features.settings.model.AbstractFloatSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractFloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.AbstractIntSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractIntSetting
|
||||||
import io.github.lime3ds.features.settings.model.FloatSetting
|
import io.github.lime3ds.android.features.settings.model.FloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.ScaledFloatSetting
|
import io.github.lime3ds.android.features.settings.model.ScaledFloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.model.view.SliderSetting
|
import io.github.lime3ds.android.features.settings.model.view.SliderSetting
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsAdapter
|
import io.github.lime3ds.android.features.settings.ui.SettingsAdapter
|
||||||
|
|
||||||
class SliderViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
class SliderViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
||||||
SettingViewHolder(binding.root, adapter) {
|
SettingViewHolder(binding.root, adapter) {
|
@ -2,13 +2,13 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui.viewholder
|
package io.github.lime3ds.android.features.settings.ui.viewholder
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import io.github.lime3ds.databinding.ListItemSettingBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingBinding
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.model.view.StringInputSetting
|
import io.github.lime3ds.android.features.settings.model.view.StringInputSetting
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsAdapter
|
import io.github.lime3ds.android.features.settings.ui.SettingsAdapter
|
||||||
|
|
||||||
class StringInputViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
class StringInputViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
||||||
SettingViewHolder(binding.root, adapter) {
|
SettingViewHolder(binding.root, adapter) {
|
@ -2,13 +2,13 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui.viewholder
|
package io.github.lime3ds.android.features.settings.ui.viewholder
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import io.github.lime3ds.databinding.ListItemSettingBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingBinding
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.model.view.SubmenuSetting
|
import io.github.lime3ds.android.features.settings.model.view.SubmenuSetting
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsAdapter
|
import io.github.lime3ds.android.features.settings.ui.SettingsAdapter
|
||||||
|
|
||||||
class SubmenuViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
class SubmenuViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
||||||
SettingViewHolder(binding.root, adapter) {
|
SettingViewHolder(binding.root, adapter) {
|
@ -2,14 +2,14 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.ui.viewholder
|
package io.github.lime3ds.android.features.settings.ui.viewholder
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.widget.CompoundButton
|
import android.widget.CompoundButton
|
||||||
import io.github.lime3ds.databinding.ListItemSettingSwitchBinding
|
import io.github.lime3ds.android.databinding.ListItemSettingSwitchBinding
|
||||||
import io.github.lime3ds.features.settings.model.view.SettingsItem
|
import io.github.lime3ds.android.features.settings.model.view.SettingsItem
|
||||||
import io.github.lime3ds.features.settings.model.view.SwitchSetting
|
import io.github.lime3ds.android.features.settings.model.view.SwitchSetting
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsAdapter
|
import io.github.lime3ds.android.features.settings.ui.SettingsAdapter
|
||||||
|
|
||||||
class SwitchSettingViewHolder(val binding: ListItemSettingSwitchBinding, adapter: SettingsAdapter) :
|
class SwitchSettingViewHolder(val binding: ListItemSettingSwitchBinding, adapter: SettingsAdapter) :
|
||||||
SettingViewHolder(binding.root, adapter) {
|
SettingViewHolder(binding.root, adapter) {
|
@ -2,25 +2,25 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.features.settings.utils
|
package io.github.lime3ds.android.features.settings.utils
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import androidx.documentfile.provider.DocumentFile
|
import androidx.documentfile.provider.DocumentFile
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.features.settings.model.AbstractSetting
|
import io.github.lime3ds.android.features.settings.model.AbstractSetting
|
||||||
import io.github.lime3ds.features.settings.model.BooleanSetting
|
import io.github.lime3ds.android.features.settings.model.BooleanSetting
|
||||||
import io.github.lime3ds.features.settings.model.FloatSetting
|
import io.github.lime3ds.android.features.settings.model.FloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.IntSetting
|
import io.github.lime3ds.android.features.settings.model.IntSetting
|
||||||
import io.github.lime3ds.features.settings.model.ScaledFloatSetting
|
import io.github.lime3ds.android.features.settings.model.ScaledFloatSetting
|
||||||
import io.github.lime3ds.features.settings.model.SettingSection
|
import io.github.lime3ds.android.features.settings.model.SettingSection
|
||||||
import io.github.lime3ds.features.settings.model.Settings.SettingsSectionMap
|
import io.github.lime3ds.android.features.settings.model.Settings.SettingsSectionMap
|
||||||
import io.github.lime3ds.features.settings.model.StringSetting
|
import io.github.lime3ds.android.features.settings.model.StringSetting
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsActivityView
|
import io.github.lime3ds.android.features.settings.ui.SettingsActivityView
|
||||||
import io.github.lime3ds.utils.BiMap
|
import io.github.lime3ds.android.utils.BiMap
|
||||||
import io.github.lime3ds.utils.DirectoryInitialization.userDirectory
|
import io.github.lime3ds.android.utils.DirectoryInitialization.userDirectory
|
||||||
import io.github.lime3ds.utils.Log
|
import io.github.lime3ds.android.utils.Log
|
||||||
import org.ini4j.Wini
|
import org.ini4j.Wini
|
||||||
import java.io.BufferedReader
|
import java.io.BufferedReader
|
||||||
import java.io.FileNotFoundException
|
import java.io.FileNotFoundException
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.content.ClipData
|
import android.content.ClipData
|
||||||
import android.content.ClipboardManager
|
import android.content.ClipboardManager
|
||||||
@ -23,10 +23,10 @@ import androidx.fragment.app.Fragment
|
|||||||
import androidx.fragment.app.activityViewModels
|
import androidx.fragment.app.activityViewModels
|
||||||
import androidx.navigation.findNavController
|
import androidx.navigation.findNavController
|
||||||
import com.google.android.material.transition.MaterialSharedAxis
|
import com.google.android.material.transition.MaterialSharedAxis
|
||||||
import io.github.lime3ds.BuildConfig
|
import io.github.lime3ds.android.BuildConfig
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.FragmentAboutBinding
|
import io.github.lime3ds.android.databinding.FragmentAboutBinding
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
|
|
||||||
class AboutFragment : Fragment() {
|
class AboutFragment : Fragment() {
|
||||||
private var _binding: FragmentAboutBinding? = null
|
private var _binding: FragmentAboutBinding? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
@ -14,11 +14,11 @@ import androidx.fragment.app.FragmentActivity
|
|||||||
import androidx.fragment.app.activityViewModels
|
import androidx.fragment.app.activityViewModels
|
||||||
import androidx.lifecycle.ViewModelProvider
|
import androidx.lifecycle.ViewModelProvider
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.DialogCitraDirectoryBinding
|
import io.github.lime3ds.android.databinding.DialogCitraDirectoryBinding
|
||||||
import io.github.lime3ds.ui.main.MainActivity
|
import io.github.lime3ds.android.ui.main.MainActivity
|
||||||
import io.github.lime3ds.utils.PermissionsHandler
|
import io.github.lime3ds.android.utils.PermissionsHandler
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
|
|
||||||
class CitraDirectoryDialogFragment : DialogFragment() {
|
class CitraDirectoryDialogFragment : DialogFragment() {
|
||||||
private lateinit var binding: DialogCitraDirectoryBinding
|
private lateinit var binding: DialogCitraDirectoryBinding
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
@ -23,14 +23,14 @@ import kotlinx.coroutines.Dispatchers
|
|||||||
import kotlinx.coroutines.flow.collectLatest
|
import kotlinx.coroutines.flow.collectLatest
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.DialogCopyDirBinding
|
import io.github.lime3ds.android.databinding.DialogCopyDirBinding
|
||||||
import io.github.lime3ds.model.SetupCallback
|
import io.github.lime3ds.android.model.SetupCallback
|
||||||
import io.github.lime3ds.utils.CitraDirectoryHelper
|
import io.github.lime3ds.android.utils.CitraDirectoryHelper
|
||||||
import io.github.lime3ds.utils.FileUtil
|
import io.github.lime3ds.android.utils.FileUtil
|
||||||
import io.github.lime3ds.utils.PermissionsHandler
|
import io.github.lime3ds.android.utils.PermissionsHandler
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
|
|
||||||
class CopyDirProgressDialog : DialogFragment() {
|
class CopyDirProgressDialog : DialogFragment() {
|
||||||
private var _binding: DialogCopyDirBinding? = null
|
private var _binding: DialogCopyDirBinding? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -19,11 +19,11 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
|||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.flow.collectLatest
|
import kotlinx.coroutines.flow.collectLatest
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.NativeLibrary.InstallStatus
|
import io.github.lime3ds.android.NativeLibrary.InstallStatus
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.DialogProgressBarBinding
|
import io.github.lime3ds.android.databinding.DialogProgressBarBinding
|
||||||
import io.github.lime3ds.viewmodel.GamesViewModel
|
import io.github.lime3ds.android.viewmodel.GamesViewModel
|
||||||
import io.github.lime3ds.viewmodel.SystemFilesViewModel
|
import io.github.lime3ds.android.viewmodel.SystemFilesViewModel
|
||||||
|
|
||||||
class DownloadSystemFilesDialogFragment : DialogFragment() {
|
class DownloadSystemFilesDialogFragment : DialogFragment() {
|
||||||
private var _binding: DialogProgressBarBinding? = null
|
private var _binding: DialogProgressBarBinding? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
@ -21,14 +21,14 @@ import androidx.recyclerview.widget.GridLayoutManager
|
|||||||
import com.google.android.material.transition.MaterialSharedAxis
|
import com.google.android.material.transition.MaterialSharedAxis
|
||||||
import kotlinx.coroutines.flow.collectLatest
|
import kotlinx.coroutines.flow.collectLatest
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.adapters.DriverAdapter
|
import io.github.lime3ds.android.adapters.DriverAdapter
|
||||||
import io.github.lime3ds.databinding.FragmentDriverManagerBinding
|
import io.github.lime3ds.android.databinding.FragmentDriverManagerBinding
|
||||||
import io.github.lime3ds.utils.FileUtil.asDocumentFile
|
import io.github.lime3ds.android.utils.FileUtil.asDocumentFile
|
||||||
import io.github.lime3ds.utils.FileUtil.inputStream
|
import io.github.lime3ds.android.utils.FileUtil.inputStream
|
||||||
import io.github.lime3ds.utils.GpuDriverHelper
|
import io.github.lime3ds.android.utils.GpuDriverHelper
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
import io.github.lime3ds.viewmodel.DriverViewModel
|
import io.github.lime3ds.android.viewmodel.DriverViewModel
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
|
|
||||||
class DriverManagerFragment : Fragment() {
|
class DriverManagerFragment : Fragment() {
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -16,9 +16,9 @@ import androidx.lifecycle.lifecycleScope
|
|||||||
import androidx.lifecycle.repeatOnLifecycle
|
import androidx.lifecycle.repeatOnLifecycle
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.DialogProgressBarBinding
|
import io.github.lime3ds.android.databinding.DialogProgressBarBinding
|
||||||
import io.github.lime3ds.viewmodel.DriverViewModel
|
import io.github.lime3ds.android.viewmodel.DriverViewModel
|
||||||
|
|
||||||
class DriversLoadingDialogFragment : DialogFragment() {
|
class DriversLoadingDialogFragment : DialogFragment() {
|
||||||
private val driverViewModel: DriverViewModel by activityViewModels()
|
private val driverViewModel: DriverViewModel by activityViewModels()
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
@ -43,30 +43,30 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
|||||||
import com.google.android.material.slider.Slider
|
import com.google.android.material.slider.Slider
|
||||||
import kotlinx.coroutines.flow.collectLatest
|
import kotlinx.coroutines.flow.collectLatest
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.EmulationNavigationDirections
|
import io.github.lime3ds.android.EmulationNavigationDirections
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.activities.EmulationActivity
|
import io.github.lime3ds.android.activities.EmulationActivity
|
||||||
import io.github.lime3ds.databinding.DialogCheckboxBinding
|
import io.github.lime3ds.android.databinding.DialogCheckboxBinding
|
||||||
import io.github.lime3ds.databinding.DialogSliderBinding
|
import io.github.lime3ds.android.databinding.DialogSliderBinding
|
||||||
import io.github.lime3ds.databinding.FragmentEmulationBinding
|
import io.github.lime3ds.android.databinding.FragmentEmulationBinding
|
||||||
import io.github.lime3ds.display.ScreenAdjustmentUtil
|
import io.github.lime3ds.android.display.ScreenAdjustmentUtil
|
||||||
import io.github.lime3ds.display.ScreenLayout
|
import io.github.lime3ds.android.display.ScreenLayout
|
||||||
import io.github.lime3ds.features.settings.model.SettingsViewModel
|
import io.github.lime3ds.android.features.settings.model.SettingsViewModel
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsActivity
|
import io.github.lime3ds.android.features.settings.ui.SettingsActivity
|
||||||
import io.github.lime3ds.features.settings.utils.SettingsFile
|
import io.github.lime3ds.android.features.settings.utils.SettingsFile
|
||||||
import io.github.lime3ds.model.Game
|
import io.github.lime3ds.android.model.Game
|
||||||
import io.github.lime3ds.utils.DirectoryInitialization
|
import io.github.lime3ds.android.utils.DirectoryInitialization
|
||||||
import io.github.lime3ds.utils.DirectoryInitialization.DirectoryInitializationState
|
import io.github.lime3ds.android.utils.DirectoryInitialization.DirectoryInitializationState
|
||||||
import io.github.lime3ds.utils.EmulationMenuSettings
|
import io.github.lime3ds.android.utils.EmulationMenuSettings
|
||||||
import io.github.lime3ds.utils.FileUtil
|
import io.github.lime3ds.android.utils.FileUtil
|
||||||
import io.github.lime3ds.utils.GameHelper
|
import io.github.lime3ds.android.utils.GameHelper
|
||||||
import io.github.lime3ds.utils.GameIconUtils
|
import io.github.lime3ds.android.utils.GameIconUtils
|
||||||
import io.github.lime3ds.utils.EmulationLifecycleUtil
|
import io.github.lime3ds.android.utils.EmulationLifecycleUtil
|
||||||
import io.github.lime3ds.utils.Log
|
import io.github.lime3ds.android.utils.Log
|
||||||
import io.github.lime3ds.utils.ViewUtils
|
import io.github.lime3ds.android.utils.ViewUtils
|
||||||
import io.github.lime3ds.viewmodel.EmulationViewModel
|
import io.github.lime3ds.android.viewmodel.EmulationViewModel
|
||||||
|
|
||||||
class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.FrameCallback {
|
class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.FrameCallback {
|
||||||
private val preferences: SharedPreferences
|
private val preferences: SharedPreferences
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -25,14 +25,14 @@ import com.google.android.material.color.MaterialColors
|
|||||||
import com.google.android.material.transition.MaterialFadeThrough
|
import com.google.android.material.transition.MaterialFadeThrough
|
||||||
import kotlinx.coroutines.flow.collectLatest
|
import kotlinx.coroutines.flow.collectLatest
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.adapters.GameAdapter
|
import io.github.lime3ds.android.adapters.GameAdapter
|
||||||
import io.github.lime3ds.databinding.FragmentGamesBinding
|
import io.github.lime3ds.android.databinding.FragmentGamesBinding
|
||||||
import io.github.lime3ds.features.settings.model.Settings
|
import io.github.lime3ds.android.features.settings.model.Settings
|
||||||
import io.github.lime3ds.model.Game
|
import io.github.lime3ds.android.model.Game
|
||||||
import io.github.lime3ds.viewmodel.GamesViewModel
|
import io.github.lime3ds.android.viewmodel.GamesViewModel
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
|
|
||||||
class GamesFragment : Fragment() {
|
class GamesFragment : Fragment() {
|
||||||
private var _binding: FragmentGamesBinding? = null
|
private var _binding: FragmentGamesBinding? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -24,21 +24,21 @@ import androidx.navigation.fragment.findNavController
|
|||||||
import androidx.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
import androidx.recyclerview.widget.GridLayoutManager
|
import androidx.recyclerview.widget.GridLayoutManager
|
||||||
import com.google.android.material.transition.MaterialSharedAxis
|
import com.google.android.material.transition.MaterialSharedAxis
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.adapters.HomeSettingAdapter
|
import io.github.lime3ds.android.adapters.HomeSettingAdapter
|
||||||
import io.github.lime3ds.databinding.FragmentHomeSettingsBinding
|
import io.github.lime3ds.android.databinding.FragmentHomeSettingsBinding
|
||||||
import io.github.lime3ds.features.settings.model.Settings
|
import io.github.lime3ds.android.features.settings.model.Settings
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsActivity
|
import io.github.lime3ds.android.features.settings.ui.SettingsActivity
|
||||||
import io.github.lime3ds.features.settings.utils.SettingsFile
|
import io.github.lime3ds.android.features.settings.utils.SettingsFile
|
||||||
import io.github.lime3ds.model.HomeSetting
|
import io.github.lime3ds.android.model.HomeSetting
|
||||||
import io.github.lime3ds.ui.main.MainActivity
|
import io.github.lime3ds.android.ui.main.MainActivity
|
||||||
import io.github.lime3ds.utils.GameHelper
|
import io.github.lime3ds.android.utils.GameHelper
|
||||||
import io.github.lime3ds.utils.PermissionsHandler
|
import io.github.lime3ds.android.utils.PermissionsHandler
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
import io.github.lime3ds.utils.GpuDriverHelper
|
import io.github.lime3ds.android.utils.GpuDriverHelper
|
||||||
import io.github.lime3ds.utils.Log
|
import io.github.lime3ds.android.utils.Log
|
||||||
import io.github.lime3ds.viewmodel.DriverViewModel
|
import io.github.lime3ds.android.viewmodel.DriverViewModel
|
||||||
|
|
||||||
class HomeSettingsFragment : Fragment() {
|
class HomeSettingsFragment : Fragment() {
|
||||||
private var _binding: FragmentHomeSettingsBinding? = null
|
private var _binding: FragmentHomeSettingsBinding? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -20,9 +20,9 @@ import androidx.lifecycle.lifecycleScope
|
|||||||
import androidx.lifecycle.repeatOnLifecycle
|
import androidx.lifecycle.repeatOnLifecycle
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.DialogProgressBarBinding
|
import io.github.lime3ds.android.databinding.DialogProgressBarBinding
|
||||||
import io.github.lime3ds.viewmodel.TaskViewModel
|
import io.github.lime3ds.android.viewmodel.TaskViewModel
|
||||||
|
|
||||||
class IndeterminateProgressDialogFragment : DialogFragment() {
|
class IndeterminateProgressDialogFragment : DialogFragment() {
|
||||||
private val taskViewModel: TaskViewModel by activityViewModels()
|
private val taskViewModel: TaskViewModel by activityViewModels()
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
@ -10,10 +10,10 @@ import android.os.Bundle
|
|||||||
import android.text.InputFilter
|
import android.text.InputFilter
|
||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.applets.SoftwareKeyboard
|
import io.github.lime3ds.android.applets.SoftwareKeyboard
|
||||||
import io.github.lime3ds.databinding.DialogSoftwareKeyboardBinding
|
import io.github.lime3ds.android.databinding.DialogSoftwareKeyboardBinding
|
||||||
import io.github.lime3ds.utils.SerializableHelper.serializable
|
import io.github.lime3ds.android.utils.SerializableHelper.serializable
|
||||||
|
|
||||||
class KeyboardDialogFragment : DialogFragment() {
|
class KeyboardDialogFragment : DialogFragment() {
|
||||||
private lateinit var config: SoftwareKeyboard.KeyboardConfig
|
private lateinit var config: SoftwareKeyboard.KeyboardConfig
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
@ -10,9 +10,9 @@ import android.view.View
|
|||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
||||||
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
|
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
|
||||||
import io.github.lime3ds.databinding.DialogLicenseBinding
|
import io.github.lime3ds.android.databinding.DialogLicenseBinding
|
||||||
import io.github.lime3ds.model.License
|
import io.github.lime3ds.android.model.License
|
||||||
import io.github.lime3ds.utils.SerializableHelper.parcelable
|
import io.github.lime3ds.android.utils.SerializableHelper.parcelable
|
||||||
|
|
||||||
class LicenseBottomSheetDialogFragment : BottomSheetDialogFragment() {
|
class LicenseBottomSheetDialogFragment : BottomSheetDialogFragment() {
|
||||||
private var _binding: DialogLicenseBinding? = null
|
private var _binding: DialogLicenseBinding? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
@ -18,11 +18,11 @@ import androidx.fragment.app.activityViewModels
|
|||||||
import androidx.navigation.findNavController
|
import androidx.navigation.findNavController
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import com.google.android.material.transition.MaterialSharedAxis
|
import com.google.android.material.transition.MaterialSharedAxis
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.adapters.LicenseAdapter
|
import io.github.lime3ds.android.adapters.LicenseAdapter
|
||||||
import io.github.lime3ds.databinding.FragmentLicensesBinding
|
import io.github.lime3ds.android.databinding.FragmentLicensesBinding
|
||||||
import io.github.lime3ds.model.License
|
import io.github.lime3ds.android.model.License
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
|
|
||||||
class LicensesFragment : Fragment() {
|
class LicensesFragment : Fragment() {
|
||||||
private var _binding: FragmentLicensesBinding? = null
|
private var _binding: FragmentLicensesBinding? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
@ -10,7 +10,7 @@ import android.net.Uri
|
|||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
|
|
||||||
class MessageDialogFragment : DialogFragment() {
|
class MessageDialogFragment : DialogFragment() {
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
@ -2,16 +2,16 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.applets.MiiSelector
|
import io.github.lime3ds.android.applets.MiiSelector
|
||||||
import io.github.lime3ds.utils.SerializableHelper.serializable
|
import io.github.lime3ds.android.utils.SerializableHelper.serializable
|
||||||
|
|
||||||
class MiiSelectorDialogFragment : DialogFragment() {
|
class MiiSelectorDialogFragment : DialogFragment() {
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -14,10 +14,10 @@ import android.view.View
|
|||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
||||||
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
|
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.databinding.DialogInputBinding
|
import io.github.lime3ds.android.databinding.DialogInputBinding
|
||||||
import io.github.lime3ds.features.settings.model.view.InputBindingSetting
|
import io.github.lime3ds.android.features.settings.model.view.InputBindingSetting
|
||||||
import io.github.lime3ds.utils.Log
|
import io.github.lime3ds.android.utils.Log
|
||||||
import kotlin.math.abs
|
import kotlin.math.abs
|
||||||
|
|
||||||
class MotionBottomSheetDialogFragment : BottomSheetDialogFragment() {
|
class MotionBottomSheetDialogFragment : BottomSheetDialogFragment() {
|
@ -2,14 +2,14 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.features.settings.ui.SettingsActivity
|
import io.github.lime3ds.android.features.settings.ui.SettingsActivity
|
||||||
|
|
||||||
class ResetSettingsDialogFragment : DialogFragment() {
|
class ResetSettingsDialogFragment : DialogFragment() {
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
@ -27,13 +27,13 @@ import androidx.recyclerview.widget.GridLayoutManager
|
|||||||
import info.debatty.java.stringsimilarity.Jaccard
|
import info.debatty.java.stringsimilarity.Jaccard
|
||||||
import info.debatty.java.stringsimilarity.JaroWinkler
|
import info.debatty.java.stringsimilarity.JaroWinkler
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.adapters.GameAdapter
|
import io.github.lime3ds.android.adapters.GameAdapter
|
||||||
import io.github.lime3ds.databinding.FragmentSearchBinding
|
import io.github.lime3ds.android.databinding.FragmentSearchBinding
|
||||||
import io.github.lime3ds.model.Game
|
import io.github.lime3ds.android.model.Game
|
||||||
import io.github.lime3ds.viewmodel.GamesViewModel
|
import io.github.lime3ds.android.viewmodel.GamesViewModel
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
import java.time.temporal.ChronoField
|
import java.time.temporal.ChronoField
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
@ -11,9 +11,9 @@ import androidx.fragment.app.DialogFragment
|
|||||||
import androidx.fragment.app.FragmentActivity
|
import androidx.fragment.app.FragmentActivity
|
||||||
import androidx.lifecycle.ViewModelProvider
|
import androidx.lifecycle.ViewModelProvider
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.ui.main.MainActivity
|
import io.github.lime3ds.android.ui.main.MainActivity
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
|
|
||||||
class SelectUserDirectoryDialogFragment : DialogFragment() {
|
class SelectUserDirectoryDialogFragment : DialogFragment() {
|
||||||
private lateinit var mainActivity: MainActivity
|
private lateinit var mainActivity: MainActivity
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.Manifest
|
import android.Manifest
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
@ -30,21 +30,21 @@ import androidx.preference.PreferenceManager
|
|||||||
import androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback
|
import androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback
|
||||||
import com.google.android.material.snackbar.Snackbar
|
import com.google.android.material.snackbar.Snackbar
|
||||||
import com.google.android.material.transition.MaterialFadeThrough
|
import com.google.android.material.transition.MaterialFadeThrough
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.adapters.SetupAdapter
|
import io.github.lime3ds.android.adapters.SetupAdapter
|
||||||
import io.github.lime3ds.databinding.FragmentSetupBinding
|
import io.github.lime3ds.android.databinding.FragmentSetupBinding
|
||||||
import io.github.lime3ds.features.settings.model.Settings
|
import io.github.lime3ds.android.features.settings.model.Settings
|
||||||
import io.github.lime3ds.model.SetupCallback
|
import io.github.lime3ds.android.model.SetupCallback
|
||||||
import io.github.lime3ds.model.SetupPage
|
import io.github.lime3ds.android.model.SetupPage
|
||||||
import io.github.lime3ds.model.StepState
|
import io.github.lime3ds.android.model.StepState
|
||||||
import io.github.lime3ds.ui.main.MainActivity
|
import io.github.lime3ds.android.ui.main.MainActivity
|
||||||
import io.github.lime3ds.utils.CitraDirectoryHelper
|
import io.github.lime3ds.android.utils.CitraDirectoryHelper
|
||||||
import io.github.lime3ds.utils.GameHelper
|
import io.github.lime3ds.android.utils.GameHelper
|
||||||
import io.github.lime3ds.utils.PermissionsHandler
|
import io.github.lime3ds.android.utils.PermissionsHandler
|
||||||
import io.github.lime3ds.utils.ViewUtils
|
import io.github.lime3ds.android.utils.ViewUtils
|
||||||
import io.github.lime3ds.viewmodel.GamesViewModel
|
import io.github.lime3ds.android.viewmodel.GamesViewModel
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
|
|
||||||
class SetupFragment : Fragment() {
|
class SetupFragment : Fragment() {
|
||||||
private var _binding: FragmentSetupBinding? = null
|
private var _binding: FragmentSetupBinding? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
@ -11,7 +11,7 @@ import android.net.Uri
|
|||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
|
|
||||||
class SetupWarningDialogFragment : DialogFragment() {
|
class SetupWarningDialogFragment : DialogFragment() {
|
||||||
private var titleId: Int = 0
|
private var titleId: Int = 0
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.fragments
|
package io.github.lime3ds.android.fragments
|
||||||
|
|
||||||
import android.content.res.Resources
|
import android.content.res.Resources
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -26,18 +26,18 @@ import androidx.preference.PreferenceManager
|
|||||||
import com.google.android.material.textfield.MaterialAutoCompleteTextView
|
import com.google.android.material.textfield.MaterialAutoCompleteTextView
|
||||||
import com.google.android.material.transition.MaterialSharedAxis
|
import com.google.android.material.transition.MaterialSharedAxis
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.HomeNavigationDirections
|
import io.github.lime3ds.android.HomeNavigationDirections
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.activities.EmulationActivity
|
import io.github.lime3ds.android.activities.EmulationActivity
|
||||||
import io.github.lime3ds.databinding.FragmentSystemFilesBinding
|
import io.github.lime3ds.android.databinding.FragmentSystemFilesBinding
|
||||||
import io.github.lime3ds.features.settings.model.Settings
|
import io.github.lime3ds.android.features.settings.model.Settings
|
||||||
import io.github.lime3ds.model.Game
|
import io.github.lime3ds.android.model.Game
|
||||||
import io.github.lime3ds.utils.SystemSaveGame
|
import io.github.lime3ds.android.utils.SystemSaveGame
|
||||||
import io.github.lime3ds.viewmodel.GamesViewModel
|
import io.github.lime3ds.android.viewmodel.GamesViewModel
|
||||||
import io.github.lime3ds.viewmodel.HomeViewModel
|
import io.github.lime3ds.android.viewmodel.HomeViewModel
|
||||||
import io.github.lime3ds.viewmodel.SystemFilesViewModel
|
import io.github.lime3ds.android.viewmodel.SystemFilesViewModel
|
||||||
|
|
||||||
class SystemFilesFragment : Fragment() {
|
class SystemFilesFragment : Fragment() {
|
||||||
private var _binding: FragmentSystemFilesBinding? = null
|
private var _binding: FragmentSystemFilesBinding? = null
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.model
|
package io.github.lime3ds.android.model
|
||||||
|
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import android.provider.DocumentsContract
|
import android.provider.DocumentsContract
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.model
|
package io.github.lime3ds.android.model
|
||||||
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import java.util.HashSet
|
import java.util.HashSet
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.model
|
package io.github.lime3ds.android.model
|
||||||
|
|
||||||
import androidx.annotation.Keep
|
import androidx.annotation.Keep
|
||||||
import java.io.IOException
|
import java.io.IOException
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.model
|
package io.github.lime3ds.android.model
|
||||||
|
|
||||||
import kotlinx.coroutines.flow.MutableStateFlow
|
import kotlinx.coroutines.flow.MutableStateFlow
|
||||||
import kotlinx.coroutines.flow.StateFlow
|
import kotlinx.coroutines.flow.StateFlow
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.model
|
package io.github.lime3ds.android.model
|
||||||
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import androidx.annotation.StringRes
|
import androidx.annotation.StringRes
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.model
|
package io.github.lime3ds.android.model
|
||||||
|
|
||||||
data class SetupPage(
|
data class SetupPage(
|
||||||
val iconId: Int,
|
val iconId: Int,
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.overlay
|
package io.github.lime3ds.android.overlay
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
@ -21,10 +21,10 @@ import android.view.View
|
|||||||
import android.view.View.OnTouchListener
|
import android.view.View.OnTouchListener
|
||||||
import androidx.core.content.ContextCompat
|
import androidx.core.content.ContextCompat
|
||||||
import androidx.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
import io.github.lime3ds.LimeApplication
|
import io.github.lime3ds.android.LimeApplication
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
import io.github.lime3ds.R
|
import io.github.lime3ds.android.R
|
||||||
import io.github.lime3ds.utils.EmulationMenuSettings
|
import io.github.lime3ds.android.utils.EmulationMenuSettings
|
||||||
import java.lang.NullPointerException
|
import java.lang.NullPointerException
|
||||||
import kotlin.math.min
|
import kotlin.math.min
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.overlay
|
package io.github.lime3ds.android.overlay
|
||||||
|
|
||||||
import android.content.res.Resources
|
import android.content.res.Resources
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
@ -10,7 +10,7 @@ import android.graphics.Canvas
|
|||||||
import android.graphics.Rect
|
import android.graphics.Rect
|
||||||
import android.graphics.drawable.BitmapDrawable
|
import android.graphics.drawable.BitmapDrawable
|
||||||
import android.view.MotionEvent
|
import android.view.MotionEvent
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom [BitmapDrawable] that is capable
|
* Custom [BitmapDrawable] that is capable
|
@ -2,7 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
package io.github.lime3ds.overlay
|
package io.github.lime3ds.android.overlay
|
||||||
|
|
||||||
import android.content.res.Resources
|
import android.content.res.Resources
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
@ -10,7 +10,7 @@ import android.graphics.Canvas
|
|||||||
import android.graphics.Rect
|
import android.graphics.Rect
|
||||||
import android.graphics.drawable.BitmapDrawable
|
import android.graphics.drawable.BitmapDrawable
|
||||||
import android.view.MotionEvent
|
import android.view.MotionEvent
|
||||||
import io.github.lime3ds.NativeLibrary
|
import io.github.lime3ds.android.NativeLibrary
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom [BitmapDrawable] that is capable
|
* Custom [BitmapDrawable] that is capable
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user