Skip to content

Commit 5f8590c

Browse files
authored
Merge pull request #79 from StringCare/develop
Develop
2 parents 4128d62 + cf08c2b commit 5f8590c

File tree

12 files changed

+35
-27
lines changed

12 files changed

+35
-27
lines changed

app/build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ android {
1414
signingConfigs {
1515

1616
}
17-
compileSdkVersion 28
18-
buildToolsVersion '28.0.3'
17+
compileSdkVersion 30
1918

2019
defaultConfig {
2120
applicationId "com.efraespada.stringobfuscator"
2221
minSdkVersion 15
23-
targetSdkVersion 28
22+
targetSdkVersion 30
2423
versionCode 1
2524
versionName "1.0"
2625
}
@@ -49,6 +48,10 @@ android {
4948
sourceCompatibility 1.8
5049
targetCompatibility 1.8
5150
}
51+
52+
aaptOptions {
53+
noCompress "json"
54+
}
5255
}
5356

5457
repositories {
@@ -58,10 +61,10 @@ repositories {
5861

5962
dependencies {
6063
implementation fileTree(include: ['*.jar'], dir: 'libs')
61-
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
64+
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
6265
exclude group: 'com.android.support', module: 'support-annotations'
6366
})
64-
implementation 'com.android.support:appcompat-v7:28.0.0'
67+
implementation 'androidx.appcompat:appcompat:1.2.0'
6568
testImplementation 'junit:junit:4.12'
6669
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
6770
implementation 'commons-io:commons-io:2.5'

app/src/androidTest/java/com/efraespada/stringobfuscator/ExampleInstrumentedTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.efraespada.stringobfuscator;
22

33
import android.content.Context;
4-
import android.support.test.InstrumentationRegistry;
5-
import android.support.test.runner.AndroidJUnit4;
4+
import androidx.test.platform.app.InstrumentationRegistry;
5+
import androidx.test.ext.junit.runners.AndroidJUnit4;
66

77
import org.junit.Test;
88
import org.junit.runner.RunWith;

app/src/main/java/com/efraespada/stringobfuscator/MainActivity.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.efraespada.stringobfuscator;
22

33
import android.os.Bundle;
4-
import android.support.v7.app.AppCompatActivity;
4+
import androidx.appcompat.app.AppCompatActivity;
55
import android.widget.TextView;
66

77
import com.stringcare.library.SC;
@@ -44,7 +44,9 @@ protected void onCreate(Bundle savedInstanceState) {
4444
((TextView) findViewById(R.id.same_value)).setText(areEquals);
4545

4646
String jsonObjectName = SC.reveal(R.string.asset_json_file);
47-
SC.asset().asyncJson(jsonObjectName, json -> ((TextView) findViewById(R.id.json_object)).setText(json.toString()));
47+
SC.asset().asyncJson(jsonObjectName, json ->
48+
((TextView) findViewById(R.id.json_object)).setText(json.toString())
49+
);
4850
SC.asset().asyncBytes(jsonObjectName, bytes -> ((TextView) findViewById(R.id.json_object_original)).setText(new String(bytes)), false);
4951

5052
String jsonArrayName = SC.reveal(R.string.asset_json_raw_file);

build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
buildscript {
3-
ext.kotlin_version = '1.3.50'
3+
ext.kotlin_version = '1.4.0'
44

55
ext {
6-
stringcare_version = '4.0.0'
6+
stringcare_version = '4.0.1'
77
}
88

99
repositories {
@@ -18,11 +18,12 @@ buildscript {
1818
dependencies {
1919
classpath "com.stringcare:plugin:$stringcare_version"
2020
// classpath files('../KotlinGradlePlugin/build/libs/plugin-4.0.0.jar')
21-
classpath 'com.android.tools.build:gradle:3.5.3'
22-
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1"
21+
classpath 'com.android.tools.build:gradle:4.0.1'
22+
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5"
2323
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
2424
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2525
}
26+
2627
}
2728

2829
allprojects {

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
12+
android.enableJetifier=true
13+
android.useAndroidX=true
1214
org.gradle.jvmargs=-Xmx1536m
1315

1416
# When configured, Gradle will run in incubating parallel mode.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.zip

library/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@ apply plugin: 'kotlin-android-extensions'
44
apply plugin: 'com.github.dcendents.android-maven'
55
apply plugin: 'com.jfrog.bintray'
66

7-
version = "4.0.0"
7+
version = "4.0.1"
88

99
android {
10-
compileSdkVersion 28
11-
buildToolsVersion '28.0.3'
10+
compileSdkVersion 30
1211

1312
defaultConfig {
1413
minSdkVersion 15
15-
targetSdkVersion 28
14+
targetSdkVersion 30
1615
versionCode 4
1716
versionName version
18-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
17+
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1918
externalNativeBuild {
2019
cmake {
2120
cppFlags "-fexceptions"
@@ -38,14 +37,15 @@ android {
3837
path "CMakeLists.txt"
3938
}
4039
}
40+
ndkVersion '21.3.6528147'
4141
}
4242

4343
dependencies {
4444
implementation fileTree(dir: 'libs', include: ['*.jar'])
45-
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
45+
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
4646
exclude group: 'com.android.support', module: 'support-annotations'
4747
})
48-
implementation 'com.android.support:appcompat-v7:28.0.0'
48+
implementation 'androidx.appcompat:appcompat:1.2.0'
4949
implementation 'org.jetbrains.anko:anko:0.10.8'
5050
implementation 'org.apache.commons:commons-lang3:3.9'
5151
testImplementation 'junit:junit:4.12'

library/src/androidTest/java/com/efraespada/stringcarelibrary/ExampleInstrumentedTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.efraespada.stringcarelibrary;
22

33
import android.content.Context;
4-
import android.support.test.InstrumentationRegistry;
5-
import android.support.test.runner.AndroidJUnit4;
4+
import androidx.test.platform.app.InstrumentationRegistry;
5+
import androidx.test.ext.junit.runners.AndroidJUnit4;
66

77
import org.junit.Test;
88
import org.junit.runner.RunWith;

library/src/main/java/com/stringcare/library/CPlusLogic.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.stringcare.library
22

33
import android.content.Context
44
import android.content.res.Resources
5-
import android.support.annotation.StringRes
5+
import androidx.annotation.StringRes
66
import java.nio.charset.Charset
77
import kotlin.Exception
88

library/src/main/java/com/stringcare/library/JavaLogic.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.stringcare.library
22

33
import android.content.Context
44
import android.content.res.Resources
5-
import android.support.annotation.StringRes
5+
import androidx.annotation.StringRes
66
import java.nio.charset.Charset
77
import javax.crypto.Cipher
88
import javax.crypto.spec.SecretKeySpec

library/src/main/java/com/stringcare/library/SC.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.stringcare.library
22

33
import android.content.Context
4-
import android.support.annotation.StringRes
4+
import androidx.annotation.StringRes
55
import android.util.Log
66
import org.jetbrains.anko.doAsync
77
import org.json.JSONArray

library/src/main/java/com/stringcare/library/SCTextView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.stringcare.library;
22

33
import android.content.Context;
4-
import android.support.v7.widget.AppCompatTextView;
4+
import androidx.appcompat.widget.AppCompatTextView;
55
import android.text.Html;
66
import android.util.AttributeSet;
77

0 commit comments

Comments
 (0)