mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Code Cleanup
Reduce Minimun Required versio to Android 5.0 (Lollipop) Improved Build time
This commit is contained in:
parent
464b99473d
commit
9f8f5cdb7a
15
build.gradle
15
build.gradle
@ -23,12 +23,10 @@ android {
|
|||||||
defaultConfig {
|
defaultConfig {
|
||||||
archivesBaseName = 'droidify'
|
archivesBaseName = 'droidify'
|
||||||
applicationId 'com.looker.droidify'
|
applicationId 'com.looker.droidify'
|
||||||
minSdk 28
|
minSdk 21
|
||||||
targetSdk 31
|
targetSdk 31
|
||||||
versionCode 3
|
versionCode 3
|
||||||
versionName '0.3'
|
versionName '0.3'
|
||||||
|
|
||||||
vectorDrawables.useSupportLibrary true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets.all {
|
sourceSets.all {
|
||||||
@ -36,6 +34,15 @@ android {
|
|||||||
it.java.srcDirs += new File(javaDir.parentFile, 'kotlin')
|
it.java.srcDirs += new File(javaDir.parentFile, 'kotlin')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = compileOptions.sourceCompatibility.toString()
|
||||||
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
debug {
|
debug {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
@ -103,8 +110,10 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:' + versions.kotlin
|
||||||
implementation 'androidx.core:core-ktx:1.6.0'
|
implementation 'androidx.core:core-ktx:1.6.0'
|
||||||
implementation 'androidx.fragment:fragment-ktx:1.3.6'
|
implementation 'androidx.fragment:fragment-ktx:1.3.6'
|
||||||
|
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
|
||||||
implementation 'androidx.viewpager2:viewpager2:1.0.0'
|
implementation 'androidx.viewpager2:viewpager2:1.0.0'
|
||||||
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2'
|
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2'
|
||||||
implementation 'io.reactivex.rxjava3:rxjava:3.1.1'
|
implementation 'io.reactivex.rxjava3:rxjava:3.1.1'
|
||||||
|
@ -4,7 +4,6 @@ import android.app.AlertDialog
|
|||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.net.Uri
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.text.InputFilter
|
import android.text.InputFilter
|
||||||
import android.text.InputType
|
import android.text.InputType
|
||||||
@ -13,6 +12,7 @@ import android.view.View
|
|||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.view.WindowManager
|
import android.view.WindowManager
|
||||||
import android.widget.*
|
import android.widget.*
|
||||||
|
import androidx.core.net.toUri
|
||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import com.looker.droidify.BuildConfig
|
import com.looker.droidify.BuildConfig
|
||||||
@ -109,16 +109,14 @@ class SettingsFragment : ScreenFragment() {
|
|||||||
getString(R.string.incompatible_versions_summary)
|
getString(R.string.incompatible_versions_summary)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
// Adding Credits to Foxy
|
|
||||||
//TODO "Fix Linking"
|
|
||||||
|
|
||||||
preferences.addCategory("Credits") {
|
preferences.addCategory("Credits") {
|
||||||
addText(
|
addText(
|
||||||
title = "Based on an App by kitsunyan",
|
title = "Based on an App by kitsunyan",
|
||||||
summary = "FoxyDroid"
|
summary = "FoxyDroid"
|
||||||
).also {
|
).apply {
|
||||||
setOnClickListener {
|
setOnClickListener {
|
||||||
openURI(urlToSite = "https://github.com/kitsunyan/foxy-droid/")
|
openURI()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addText(
|
addText(
|
||||||
@ -127,14 +125,10 @@ class SettingsFragment : ScreenFragment() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// End Credits
|
|
||||||
|
|
||||||
disposable = Preferences.observable.subscribe(this::updatePreference)
|
disposable = Preferences.observable.subscribe(this::updatePreference)
|
||||||
updatePreference(null)
|
updatePreference(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add Text for Credits
|
|
||||||
|
|
||||||
private fun LinearLayout.addText(title: String, summary: String) {
|
private fun LinearLayout.addText(title: String, summary: String) {
|
||||||
val text = TextView(context)
|
val text = TextView(context)
|
||||||
val subText = TextView(context)
|
val subText = TextView(context)
|
||||||
@ -156,11 +150,11 @@ class SettingsFragment : ScreenFragment() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun openURI(urlToSite: String) {
|
private fun openURI() {
|
||||||
val browserIntent = Intent(Intent.ACTION_VIEW, Uri.parse(urlToSite))
|
val browserIntent =
|
||||||
|
Intent(Intent.ACTION_VIEW, "https://github.com/kitsunyan/foxy-droid/".toUri())
|
||||||
startActivity(browserIntent)
|
startActivity(browserIntent)
|
||||||
}
|
}
|
||||||
// End Add Text for Credits
|
|
||||||
|
|
||||||
override fun onDestroyView() {
|
override fun onDestroyView() {
|
||||||
super.onDestroyView()
|
super.onDestroyView()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user