Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit c6efd50

Browse files
author
Rafał Borcz
committed
Remove unused strings and update dependencies
1 parent 33e8529 commit c6efd50

File tree

13 files changed

+194
-225
lines changed

13 files changed

+194
-225
lines changed

app/build.gradle

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
apply plugin: 'com.android.application'
2-
apply plugin: 'kotlin-android-extensions'
32
apply plugin: 'kotlin-android'
43

54
android {
6-
compileSdkVersion 29
5+
namespace 'com.thelittlefireman.appkillermanager_exemple'
6+
compileSdkVersion 33
77
defaultConfig {
88
applicationId "com.thelittlefireman.appkillermanager_exemple"
99
minSdkVersion 15
10-
targetSdkVersion 29
11-
versionCode 4
12-
versionName "3.0.0"
10+
targetSdkVersion 33
11+
versionCode 5
12+
versionName "3.0.1"
1313
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1414
}
1515

@@ -19,20 +19,17 @@ android {
1919
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2020
}
2121
}
22-
//buildToolsVersion '27.0.3'
2322
}
2423

2524
dependencies {
2625
implementation project(path: ':appkillermanager')
2726

28-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
27+
implementation "androidx.core:core-ktx:1.9.0"
28+
implementation 'androidx.appcompat:appcompat:1.5.1'
29+
implementation 'com.jakewharton.timber:timber:5.0.1'
30+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
2931

30-
implementation "androidx.core:core-ktx:1.2.0"
31-
implementation 'androidx.appcompat:appcompat:1.1.0'
32-
implementation 'com.jakewharton.timber:timber:4.7.1'
33-
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
34-
35-
testImplementation 'junit:junit:4.13'
36-
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
37-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
32+
testImplementation 'junit:junit:4.13.2'
33+
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
34+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
3835
}

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.thelittlefireman.appkillermanager_exemple">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<application
65
android:allowBackup="true"
@@ -9,13 +8,14 @@
98
android:roundIcon="@mipmap/ic_launcher_round"
109
android:supportsRtl="true"
1110
android:theme="@style/AppTheme">
12-
<activity android:name=".MainActivity">
11+
<activity
12+
android:name=".MainActivity"
13+
android:exported="true">
1314
<intent-filter>
1415
<action android:name="android.intent.action.MAIN" />
1516

1617
<category android:name="android.intent.category.LAUNCHER" />
1718
</intent-filter>
1819
</activity>
1920
</application>
20-
21-
</manifest>
21+
</manifest>

appkillermanager/build.gradle

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'kotlin-android-extensions'
32
apply plugin: 'kotlin-android'
4-
apply plugin: "com.github.ben-manes.versions"
53

64
android {
7-
compileSdkVersion 29
8-
5+
namespace 'com.thelittlefireman.appkillermanager'
6+
compileSdkVersion 33
97
defaultConfig {
108
minSdkVersion 15
11-
targetSdkVersion 29
12-
13-
versionCode rootProject.ext.libVersionCode
14-
versionName rootProject.ext.libVersionName
15-
9+
targetSdkVersion 33
1610
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17-
1811
}
1912

2013
buildTypes {
21-
debug {
22-
23-
}
14+
debug {}
2415
release {
2516
minifyEnabled false
2617
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
@@ -30,23 +21,6 @@ android {
3021
}
3122

3223
dependencies {
33-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
34-
implementation 'com.jakewharton.timber:timber:4.7.1'
35-
implementation "androidx.core:core-ktx:1.2.0"
24+
implementation 'com.jakewharton.timber:timber:5.0.1'
25+
implementation "androidx.core:core-ktx:1.9.0"
3626
}
37-
38-
dependencyUpdates.resolutionStrategy {
39-
componentSelection { rules ->
40-
rules.all { ComponentSelection selection ->
41-
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
42-
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
43-
}
44-
if (rejected) {
45-
selection.reject('Release candidate')
46-
}
47-
}
48-
}
49-
}
50-
51-
// applied specifically at the bottom
52-
apply from: './scripts/bintrayConfig.gradle'

appkillermanager/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.thelittlefireman.appkillermanager">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32

43
<uses-permission android:name="oppo.permission.OPPO_COMPONENT_SAFE" />
54
<uses-permission android:name="android.permission.INTERNET" />

appkillermanager/src/main/java/com/thelittlefireman/appkillermanager/utils/ActionsUtils.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ object ActionsUtils {
4242
fun isIntentAvailable(ctx: Context?, intent: Intent?): Boolean {
4343
return if (ctx != null && intent != null) {
4444
val mgr = ctx.packageManager
45-
val list = mgr.queryIntentActivities(intent,
46-
PackageManager.MATCH_DEFAULT_ONLY)
47-
list != null && list.size > 0
45+
val list = mgr.queryIntentActivities(
46+
intent,
47+
PackageManager.MATCH_DEFAULT_ONLY
48+
)
49+
list.size > 0
4850
} else {
4951
false
5052
}

appkillermanager/src/main/java/com/thelittlefireman/appkillermanager/utils/SystemUtils.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ object SystemUtils {
3131
val packageManager = context.packageManager
3232
var applicationInfo: ApplicationInfo? = null
3333
try {
34-
applicationInfo = packageManager.getApplicationInfo(context.applicationInfo.packageName, 0)
34+
applicationInfo =
35+
packageManager.getApplicationInfo(context.applicationInfo.packageName, 0)
3536
} catch (e: PackageManager.NameNotFoundException) {
3637
}
3738
return (if (applicationInfo != null) packageManager.getApplicationLabel(applicationInfo) else "Unknown") as String

appkillermanager/src/main/res/values-fr/strings.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

appkillermanager/src/main/res/values/strings.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

build.gradle

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
1-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
31
buildscript {
4-
ext.kotlin_version = '1.3.72'
2+
ext.kotlin_version = '1.7.21'
53

64
repositories {
75
google()
8-
jcenter()
96
mavenCentral()
107
mavenLocal()
11-
maven { url 'https://maven.fabric.io/public' }
128
}
139
dependencies {
14-
classpath 'com.android.tools.build:gradle:3.6.3'
10+
classpath 'com.android.tools.build:gradle:7.3.1'
1511
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16-
17-
// Two necessary plugins
18-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
19-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
20-
classpath "com.github.ben-manes:gradle-versions-plugin:0.21.0"
2112
}
2213
}
2314

2415
allprojects {
2516
repositories {
2617
google()
27-
jcenter()
2818
mavenCentral()
2919
mavenLocal()
3020
maven { url 'https://maven.fabric.io/public' }
@@ -35,18 +25,3 @@ allprojects {
3525
task clean(type: Delete) {
3626
delete rootProject.buildDir
3727
}
38-
39-
wrapper {
40-
gradleVersion = '6.4.1'
41-
distributionUrl = distributionUrl.replace("bin", "all")
42-
}
43-
ext{
44-
// ValidateTor Library Info
45-
libVersionCode = 5
46-
libVersionName = '3.0.0'
47-
libPomUrl = 'https://github.com/wulkanowy/AppKillerManager'
48-
libGithubRepo = 'wulkanowy/AppKillerManager'
49-
libModuleName = 'AppKillerManager'
50-
libModuleDesc = 'Android library to handle flaky App killer manager (Xiaomi, Huawei, letv, ...) and prevent from : not showing notification, services not start at boot, etc'
51-
libBintrayName = 'AppKillerManager'
52-
}

gradle/wrapper/gradle-wrapper.jar

4.11 KB
Binary file not shown.

0 commit comments

Comments
 (0)