Skip to content

Commit

Permalink
Merge pull request #10 from StringCare/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
efraespada authored Nov 10, 2018
2 parents 81bebbd + abe8cf7 commit bbb2c90
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 59 deletions.
64 changes: 10 additions & 54 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,69 +1,25 @@
<p align="center"><img width="10%" vspace="20" src="https://raw.githubusercontent.com/StringCare/AndroidLibrary/develop/sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png"></p>
<p align="center"><img width="10%" vspace="20" src="https://github.com/StringCare/AndroidPlugin/raw/master/images/ic_launcher_round.png"></p>

<h3 align="center" style="margin-bottom:30px" vspace="20">StringCare Gradle Plugin</h3>

# String Care Android Plugin
Source code of plugin used in Android Studio at compilation time for strings encryption.
<p align="center"><img width="10%" vspace="20" src="https://github.com/StringCare/AndroidLibrary/raw/develop/white.png"></p>

Gradle implementation
------------
#### [Wiki Plugin](https://github.com/StringCare/GradlePlugin/wiki)

root_project/build.gradle
```groovy
// root_project/build.gradle
#### [What is StringCare](https://github.com/StringCare/GradlePlugin/wiki/What-is-StringCare)

buildscript {
#### [Plugin Implementation](https://github.com/StringCare/GradlePlugin/wiki/Plugin-Implementation)

ext {
stringcare_version = '0.7'
}
#### [Plugin Configuration](https://github.com/StringCare/GradlePlugin/wiki/Plugin-Configuration)

repositories {
jcenter()
}
#### [Plugin Obfuscation](https://github.com/StringCare/GradlePlugin/wiki/Plugin-Obfuscation)

dependencies {
classpath "com.stringcare:plugin:$stringcare_version"
}
}
apply plugin: StringCare
stringcare {
debug true // prints details
modules {
sample {
stringFiles = ['strings.xml',"other_file.xml"]
srcFolders = ['src/main', "other_folder"]
}
// root_folder/sample/src/main/res/.../strings.xml
// root_folder/sample/src/main/res/.../other_file.xml
// root_folder/sample/other_folder/res/.../strings.xml
// root_folder/sample/other_folder/res/.../other_file.xml
other_module {
srcFolders = ['src/moduleB']
}
// root_folder/other_module/src/moduleB/res/.../strings.xml
other_module_ {} //
// root_folder/other_module_/src/main/res/.../strings.xml
}
}
```
#### [Wiki Library](https://github.com/StringCare/AndroidLibrary/wiki)


License
-------
Copyright 2017 Efraín Espada
Copyright 2018 StringCare [🐒 SpaceMonkeys]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 1 addition & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ apply plugin: 'java'
apply plugin: 'com.jfrog.bintray'

group 'com.stringcare'
version '0.7'
version '0.9'

sourceCompatibility = 1.8

Expand All @@ -34,18 +34,14 @@ repositories {
}

dependencies {
// Use the latest Groovy version for building this library
compile 'org.codehaus.groovy:groovy-all:2.4.12'
compile gradleApi()

// Use the awesome Spock testing and specification framework
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
}


install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
Expand Down
3 changes: 3 additions & 0 deletions src/main/groovy/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: StringCare

0 comments on commit bbb2c90

Please sign in to comment.