Skip to content

Develop #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ android {
signingConfigs {

}
compileSdkVersion 28
buildToolsVersion '28.0.3'
compileSdkVersion 30

defaultConfig {
applicationId "com.efraespada.stringobfuscator"
minSdkVersion 15
targetSdkVersion 28
targetSdkVersion 30
versionCode 1
versionName "1.0"
}
Expand Down Expand Up @@ -49,6 +48,10 @@ android {
sourceCompatibility 1.8
targetCompatibility 1.8
}

aaptOptions {
noCompress "json"
}
}

repositories {
Expand All @@ -58,10 +61,10 @@ repositories {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
testImplementation 'junit:junit:4.12'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'commons-io:commons-io:2.5'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.efraespada.stringobfuscator;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.efraespada.stringobfuscator;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatActivity;
import android.widget.TextView;

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

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

String jsonArrayName = SC.reveal(R.string.asset_json_raw_file);
Expand Down
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.4.0'

ext {
stringcare_version = '4.0.0'
stringcare_version = '4.0.1'
}

repositories {
Expand All @@ -18,11 +18,12 @@ buildscript {
dependencies {
classpath "com.stringcare:plugin:$stringcare_version"
// classpath files('../KotlinGradlePlugin/build/libs/plugin-4.0.0.jar')
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1"
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

}

allprojects {
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

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

# When configured, Gradle will run in incubating parallel mode.
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.zip
14 changes: 7 additions & 7 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "4.0.0"
version = "4.0.1"

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
compileSdkVersion 30

defaultConfig {
minSdkVersion 15
targetSdkVersion 28
targetSdkVersion 30
versionCode 4
versionName version
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
externalNativeBuild {
cmake {
cppFlags "-fexceptions"
Expand All @@ -38,14 +37,15 @@ android {
path "CMakeLists.txt"
}
}
ndkVersion '21.3.6528147'
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'org.jetbrains.anko:anko:0.10.8'
implementation 'org.apache.commons:commons-lang3:3.9'
testImplementation 'junit:junit:4.12'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.efraespada.stringcarelibrary;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/com/stringcare/library/CPlusLogic.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.stringcare.library

import android.content.Context
import android.content.res.Resources
import android.support.annotation.StringRes
import androidx.annotation.StringRes
import java.nio.charset.Charset
import kotlin.Exception

Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/com/stringcare/library/JavaLogic.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.stringcare.library

import android.content.Context
import android.content.res.Resources
import android.support.annotation.StringRes
import androidx.annotation.StringRes
import java.nio.charset.Charset
import javax.crypto.Cipher
import javax.crypto.spec.SecretKeySpec
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/com/stringcare/library/SC.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.stringcare.library

import android.content.Context
import android.support.annotation.StringRes
import androidx.annotation.StringRes
import android.util.Log
import org.jetbrains.anko.doAsync
import org.json.JSONArray
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.stringcare.library;

import android.content.Context;
import android.support.v7.widget.AppCompatTextView;
import androidx.appcompat.widget.AppCompatTextView;
import android.text.Html;
import android.util.AttributeSet;

Expand Down