Skip to content

Commit fb208ac

Browse files
committed
v0.1
1 parent 11275bc commit fb208ac

File tree

12 files changed

+28
-16
lines changed

12 files changed

+28
-16
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
repo under construction, sorry
2-
3-
Android String Obfuscator
1+
String Care Android Library
42
=========================
53

64
Hide strings easily with that lib and plugin! It uses AES/ECB/PKCS5Padding transformation to convert strings with your app's SHA1 fingerprint.
@@ -11,7 +9,7 @@ Gradle implementation
119
```groovy
1210
// root_project/build.gradle
1311
14-
apply plugin: com.efraespada.stringcare.StringCarePlugin
12+
apply plugin: com.stringcare.SCPlugin
1513
1614
buildscript {
1715
@@ -24,7 +22,7 @@ buildscript {
2422
}
2523
2624
dependencies {
27-
classpath "com.efraespada:stringcare:androidplugin:$stringcare_version"
25+
classpath "com.stringcare:plugin:$stringcare_version"
2826
}
2927
3028
}
@@ -38,7 +36,7 @@ repositories {
3836
}
3937
4038
dependencies {
41-
implementation "com.efraespada:stringcare:androidlibrary:$stringcare_version"
39+
implementation "com.stringcare:library:$stringcare_version"
4240
}
4341
```
4442

@@ -108,7 +106,7 @@ Configuration
108106
By default the plugin will encrypt every `strings.xml` file inside `src/main`folder but you can choose a different configuration.
109107
```groovy
110108
// root_folder/build.gradle
111-
apply plugin: com.efraespada.stringobfuscatorplugin.StringObfuscatorPlugin
109+
apply plugin: com.stringcare.SCPlugin
112110
113111
stringcare {
114112

build.gradle

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

2-
apply plugin: com.efraespada.stringcare.StringCarePlugin
2+
apply plugin: com.stringcare.SCPlugin
33

44
buildscript {
55

66
ext {
7-
aso_sop_version = '0.4.1'
7+
stringcare_version = '0.1'
88
}
99

1010
repositories {
@@ -17,8 +17,9 @@ buildscript {
1717
}
1818

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

3637
task clean(type: Delete) {
3738
delete rootProject.buildDir
39+
}
40+
41+
stringcare {
42+
43+
modules {
44+
45+
sample {
46+
stringFiles = ['strings.xml',"other_file.xml"]
47+
srcFolders = ['src/main', "other_folder"]
48+
}
49+
50+
}
3851
}
File renamed without changes.

stringcarelibrary/build.gradle renamed to library/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ dependencies {
3838
testCompile 'junit:junit:4.12'
3939
}
4040

41-
def siteUrl = 'https://github.com/efraespada/SC'
42-
def gitUrl = 'https://github.com/efraespada/SC.git'
43-
group = "com.efraespada"
41+
def siteUrl = 'https://github.com/StringCare/AndroidLibrary'
42+
def gitUrl = 'https://github.com/StringCare/AndroidLibrary.git'
4443

44+
group = "com.stringcare"
4545

4646
install {
4747
repositories.mavenInstaller {
@@ -103,7 +103,7 @@ bintray {
103103
configurations = ['archives']
104104
pkg {
105105
repo = "maven"
106-
name = "stringcare:library"
106+
name = "StringCareAndroidLibrary"
107107
websiteUrl = siteUrl
108108
vcsUrl = gitUrl
109109
licenses = ["Apache-2.0"]
File renamed without changes.

sample/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ dependencies {
3636
})
3737
implementation 'com.android.support:appcompat-v7:26.1.0'
3838
testImplementation 'junit:junit:4.12'
39-
implementation project(path: ':stringcarelibrary')
39+
implementation project(path: ':library')
4040
// implementation "efraespada:androidstringobfuscator:$aso_sop_version"
41+
// implementation "com.stringcare:library:$stringcare_version"
4142
}
4243

4344

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include ':sample', ':stringcarelibrary'
1+
include ':sample', ':library'

0 commit comments

Comments
 (0)