Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
farmerbb committed Oct 7, 2021
1 parent e6fdecf commit 2056218
Show file tree
Hide file tree
Showing 6 changed files with 171 additions and 133 deletions.
26 changes: 6 additions & 20 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,16 @@ android {
applicationId "com.farmerbb.secondscreen"
minSdkVersion 17

/* targetSdkVersion is explicitly set to API 29.
* This is the latest API level that Android allows using reflection to set resolution
* and DPI on non-rooted devices with (on Android 9 and later)
*
* After November 1, 2021, the following changes will need to be made to SecondScreen:
*
* - Add verbiage somewhere in the app (a snackbar, maybe?) encouraging users to download
* the SecondScreen Support Library as that will be the only way for users on non-rooted
* devices running Android 9 or later to set resolution / DPI without a reboot
*
* - Re-implement the changes made in commit 434328b (and reverted in 3d36992) setting
* the default UI refresh method to "soft reboot" on Android 9 and later
*/
//noinspection OldTargetApi
targetSdkVersion 29
targetSdkVersion 30

versionCode 184
versionName "2.9.2"

resConfigs "en", "es", "fr", "sk", "nl", "it", "zh"
vectorDrawables.useSupportLibrary = true

buildConfigField "float", "TESTED_API_VERSION", "30.0f"
buildConfigField "float", "TESTED_API_VERSION", "31.0f"
buildConfigField "String", "SUPPORT_APPLICATION_ID", "\"com.farmerbb.secondscreen.support\""
buildConfigField "long", "TIMESTAMP", "${System.currentTimeMillis()}L"
}
Expand Down Expand Up @@ -107,12 +94,11 @@ android {

dependencies {
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'org.apache.commons:commons-lang3:3.11'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'eu.chainfire:libsuperuser:1.1.0.202004101746'
//noinspection GradleDependency
implementation 'me.weishu:free_reflection:2.2.0'
implementation 'moe.banana:toast-compat:1.0.5'
implementation 'org.lsposed.hiddenapibypass:hiddenapibypass:2.0'
implementation group:'com.twofortyfouram', name:'android-plugin-api-for-locale', version:'[1.0.2,2.0['
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
package com.farmerbb.secondscreen;

import android.app.Application;
import android.content.Context;
import android.os.Build;

import me.weishu.reflection.Reflection;
import org.lsposed.hiddenapibypass.HiddenApiBypass;

public class SecondScreenApplication extends Application {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
Reflection.unseal(base);
public void onCreate() {
super.onCreate();

if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
HiddenApiBypass.addHiddenApiExemptions("");
}
}
}
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.android.tools.build:gradle:7.0.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

plugins {
id 'se.patrikerdes.use-latest-versions' version '0.2.15'
id 'com.github.ben-manes.versions' version '0.36.0'
id 'se.patrikerdes.use-latest-versions' version '0.2.17'
id 'com.github.ben-manes.versions' version '0.39.0'
}

dependencyUpdates {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 2056218

Please sign in to comment.