Skip to content

Commit

Permalink
v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
efraespada committed Dec 15, 2017
1 parent 11275bc commit fb208ac
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 16 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
repo under construction, sorry

Android String Obfuscator
String Care Android Library
=========================

Hide strings easily with that lib and plugin! It uses AES/ECB/PKCS5Padding transformation to convert strings with your app's SHA1 fingerprint.
Expand All @@ -11,7 +9,7 @@ Gradle implementation
```groovy
// root_project/build.gradle

apply plugin: com.efraespada.stringcare.StringCarePlugin
apply plugin: com.stringcare.SCPlugin

buildscript {

Expand All @@ -24,7 +22,7 @@ buildscript {
}

dependencies {
classpath "com.efraespada:stringcare:androidplugin:$stringcare_version"
classpath "com.stringcare:plugin:$stringcare_version"
}

}
Expand All @@ -38,7 +36,7 @@ repositories {
}

dependencies {
implementation "com.efraespada:stringcare:androidlibrary:$stringcare_version"
implementation "com.stringcare:library:$stringcare_version"
}
```

Expand Down Expand Up @@ -108,7 +106,7 @@ Configuration
By default the plugin will encrypt every `strings.xml` file inside `src/main`folder but you can choose a different configuration.
```groovy
// root_folder/build.gradle
apply plugin: com.efraespada.stringobfuscatorplugin.StringObfuscatorPlugin
apply plugin: com.stringcare.SCPlugin

stringcare {

Expand Down
19 changes: 16 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

apply plugin: com.efraespada.stringcare.StringCarePlugin
apply plugin: com.stringcare.SCPlugin

buildscript {

ext {
aso_sop_version = '0.4.1'
stringcare_version = '0.1'
}

repositories {
Expand All @@ -17,8 +17,9 @@ buildscript {
}

dependencies {
classpath files('../AndroidPlugin/build/libs/stringcareplugin-0.1.jar')
classpath files('../AndroidPlugin/build/libs/plugin-0.1.jar')
// classpath "com.efraespada:stringobfuscatorplugin:$aso_sop_version"
// classpath "com.stringcare:plugin:$stringcare_version"
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1"
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
Expand All @@ -35,4 +36,16 @@ allprojects {

task clean(type: Delete) {
delete rootProject.buildDir
}

stringcare {

modules {

sample {
stringFiles = ['strings.xml',"other_file.xml"]
srcFolders = ['src/main', "other_folder"]
}

}
}
File renamed without changes.
8 changes: 4 additions & 4 deletions stringcarelibrary/build.gradle → library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ dependencies {
testCompile 'junit:junit:4.12'
}

def siteUrl = 'https://github.com/efraespada/SC'
def gitUrl = 'https://github.com/efraespada/SC.git'
group = "com.efraespada"
def siteUrl = 'https://github.com/StringCare/AndroidLibrary'
def gitUrl = 'https://github.com/StringCare/AndroidLibrary.git'

group = "com.stringcare"

install {
repositories.mavenInstaller {
Expand Down Expand Up @@ -103,7 +103,7 @@ bintray {
configurations = ['archives']
pkg {
repo = "maven"
name = "stringcare:library"
name = "StringCareAndroidLibrary"
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ dependencies {
})
implementation 'com.android.support:appcompat-v7:26.1.0'
testImplementation 'junit:junit:4.12'
implementation project(path: ':stringcarelibrary')
implementation project(path: ':library')
// implementation "efraespada:androidstringobfuscator:$aso_sop_version"
// implementation "com.stringcare:library:$stringcare_version"
}


2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':sample', ':stringcarelibrary'
include ':sample', ':library'

0 comments on commit fb208ac

Please sign in to comment.