Skip to content

Commit

Permalink
Revert completely to v3.2.1
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Nijmeh <[email protected]>
  • Loading branch information
tytydraco committed Jul 7, 2024
1 parent 185fdb5 commit 915fdf1
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 54 deletions.
28 changes: 14 additions & 14 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ plugins {


android {
compileSdk 34
compileSdk 33

defaultConfig {
applicationId "com.draco.ladb"
minSdk 26
targetSdk 34
versionCode 46
versionName "2.4.2"
targetSdk 33
versionCode 47
versionName "2.4.3"

ndk {
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64'
Expand Down Expand Up @@ -55,18 +55,18 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1-Beta'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'

implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'androidx.fragment:fragment-ktx:1.8.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.2'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.2'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.2'
implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.preference:preference-ktx:1.2.0'
implementation 'androidx.fragment:fragment-ktx:1.6.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'

implementation 'com.github.javiersantos:PiracyChecker:1.2.8'

implementation 'com.google.android.material:material:1.12.0'
implementation 'com.google.android.gms:play-services-oss-licenses:17.1.0'
implementation 'com.google.android.material:material:1.9.0'
implementation 'com.google.android.gms:play-services-oss-licenses:17.0.1'
}
26 changes: 13 additions & 13 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="internalOnly">
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="internalOnly">

<uses-feature
android:name="android.software.leanback"
android:required="false"/>
android:required="false" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false"/>
android:required="false" />

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission
android:name="android.permission.WRITE_SECURE_SETTINGS"
tools:ignore="ProtectedPermissions"/>
tools:ignore="ProtectedPermissions" />

<application
android:banner="@drawable/banner"
Expand All @@ -27,18 +27,18 @@
android:name=".views.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".views.HelpActivity"
android:label="@string/more"/>
android:label="@string/more" />
<activity
android:name=".views.BookmarksActivity"
android:label="@string/bookmarks"/>
android:label="@string/bookmarks" />

<service
android:name=".services.QSTile"
Expand All @@ -47,7 +47,7 @@
android:label="@string/app_name"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE"/>
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>

Expand All @@ -58,7 +58,7 @@
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
android:resource="@xml/provider_paths" />
</provider>
</application>

Expand Down
16 changes: 1 addition & 15 deletions app/src/main/java/com/draco/ladb/services/QSTile.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.draco.ladb.services

import android.app.PendingIntent
import android.content.Intent
import android.os.Build
import android.service.quicksettings.TileService
import com.draco.ladb.views.MainActivity

Expand All @@ -11,18 +9,6 @@ class QSTile : TileService() {
super.onClick()
val intent = Intent(applicationContext, MainActivity::class.java)
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
val pendingIntent = PendingIntent.getActivity(
applicationContext,
0,
intent,
PendingIntent.FLAG_IMMUTABLE
)
startActivityAndCollapse(pendingIntent)
} else {
startActivityAndCollapse(intent)
}

startActivityAndCollapse(intent)
}
}
7 changes: 1 addition & 6 deletions app/src/main/java/com/draco/ladb/utils/ADB.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ADB(private val context: Context) {
private val sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context)

private val adbPath = "${context.applicationInfo.nativeLibraryDir}/libadb.so"
private val scriptPath = "${context.getExternalFilesDir(null)}/script.sh"

/**
* Is the shell ready to handle commands?
Expand Down Expand Up @@ -126,15 +127,9 @@ class ADB(private val context: Context) {
}

adb(false, listOf("start-server")).waitFor()

debug("Attempting to connect to localhost...")
debug("This may take a minute")
adb(false, listOf("connect", "localhost")).waitFor(1, TimeUnit.MINUTES)

debug("Waiting for device to connect...")
debug("This may take a minute")
val waitProcess = adb(false, listOf("wait-for-device")).waitFor(1, TimeUnit.MINUTES)

if (!waitProcess) {
debug("Your device didn't connect to LADB")
debug("If a reboot doesn't work, please contact support")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ package com.draco.ladb.viewmodels

import android.app.Activity
import android.app.Application
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Parcelable
import androidx.core.content.edit
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "2.0.0"
ext.kotlin_version = "1.8.20"
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.2'
classpath 'com.android.tools.build:gradle:7.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.6'

Expand Down
3 changes: 0 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ android.useAndroidX=true
kotlin.code.style=official
DEBUG_ANTIPIRACY=false
RELEASE_ANTIPIRACY=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Jun 03 20:49:13 PDT 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit 915fdf1

Please sign in to comment.