Skip to content

Commit

Permalink
Releasing version 1.3.1 with bugfixes for 1.3.0 and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinesp committed May 28, 2015
1 parent 44c5da1 commit c4f9404
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 107 deletions.
41 changes: 18 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ With **SwissKnife** you can:
* Execute methods in the UI Thread or a background one using ``@OnUIThread`` and ``@OnBackground``.
* Make your variables persistent across state changes **without messing with** `onSaveInstanceState`.
* Make anything Parcelable with the `@Parcelable` annotation - which can be used with `@SaveInstance` to automatize data persistance. **NO MORE PARCELABLES! YAY!**
* Inject resources into your classes with `@Res` annotations (`@StringRes`, `@AnontationRes`, etc.).
* Read intent extras automatically with `@Extra` annotation.

You can see an example here:

```groovy
class MyActivity extends Activity {
@StringRes(R.string.important_message)
String reallyImportantMessage
@Extra("api_key")
String apiKey
Expand Down Expand Up @@ -59,33 +63,22 @@ class MyActivity extends Activity {

I'd really want to thank:

* [Mario García](https://github.com/mariogarcia) for his help on the new GH-Pages based documentation.
* [Dexafree](https://github.com/dexafree) for adding `@SaveInstance` annotation and helping with the testing.
* [Eugene Kamenev](https://github.com/eugene-kamenev) for adding DSL functionality to *[android-dsl](https://github.com/Arasthel/SwissKnife/tree/android-dsl)* branch.
* [Karol](https://github.com/OrdonTeam) for injection on any object.
* [Andrew Reitz](https://github.com/pieces029) for keeping the build files up to date.
* [Pavel](https://github.com/MrBIMC) for his resource injection AST transforms.

You all make SwissKnife the great tool it is!

## Documentation

For more info, please [read the wiki pages](https://github.com/Arasthel/SwissKnife/wiki). They contain explanations about how to use the library and the available annotations:

* [@OnClick](https://github.com/Arasthel/SwissKnife/wiki/@OnClick)
* [@OnLongClick](https://github.com/Arasthel/SwissKnife/wiki/@OnLongClick)
* [@OnItemClick](https://github.com/Arasthel/SwissKnife/wiki/@OnItemClick)
* [@OnItemLongClick](https://github.com/Arasthel/SwissKnife/wiki/@OnItemLongClick)
* [@OnItemSelected](https://github.com/Arasthel/SwissKnife/wiki/@OnItemSelected)
* [@OnChecked](https://github.com/Arasthel/SwissKnife/wiki/@OnChecked)
* [@OnFocusChanged](https://github.com/Arasthel/SwissKnife/wiki/@OnFocusChanged)
* [@OnTouch](https://github.com/Arasthel/SwissKnife/wiki/@OnTouch)
* [@OnPageChanged](https://github.com/Arasthel/SwissKnife/wiki/@OnPageChanged)
* [@OnTextChanged](https://github.com/Arasthel/SwissKnife/wiki/@OnTextChanged)
* [@OnEditorAction](https://github.com/Arasthel/SwissKnife/wiki/@OnEditorAction)
* [@OnUIThread](https://github.com/Arasthel/SwissKnife/wiki/@OnUIThread)
* [@OnBackground](https://github.com/Arasthel/SwissKnife/wiki/@OnBackground)
* [@SaveInstance](https://github.com/Arasthel/SwissKnife/wiki/@SaveInstance)
* [@Parcelable](https://github.com/Arasthel/SwissKnife/wiki/@Parcelable)
* [@Extra](https://github.com/Arasthel/SwissKnife/wiki/@Extra)

I would also like to thank **[@Dexafree](https://github.com/dexafree)** for his help writing the wiki, testing the library and creating the sample app, which contains some usage examples.

You can find a all the releases and their changes here: [RELEASES](https://github.com/OrdonTeam/SwissKnife/releases)
If you want to learn more, you can check [Swissknife's docs page](arasthel.github.io/SwissKnife).

It contains info about the install instructions, all the annotations, DSLs, configurations, etc.

You can find all the releases and their changes here: [RELEASES](https://github.com/Arasthel/SwissKnife/releases)

## Using it

Expand All @@ -96,7 +89,7 @@ Once your project App Module is configured to use Groovy you can add this librar
```groovy
dependencies {
...
compile "com.arasthel:swissknife:1.3.0"
compile "com.arasthel:swissknife:1.3.1"
...
}
```
Expand All @@ -111,6 +104,8 @@ dependencies {
}
```

But make sure you remember to clear Gradle's cache to get the latest version.

Also, [there is an IntelliJ IDEA plugin](https://github.com/Arasthel/SwissKnife/wiki/SwissKnife-IDEA-Plugin) *compatible with Android Studio* that lets you auto-generate the annotations and compatible method declarations.

![IDEA plugin](https://camo.githubusercontent.com/ffe3a4e6c05f0846162e93ed4d8abfd532b7f826/687474703a2f2f692e696d6775722e636f6d2f5564704e3634652e6a7067)
Expand Down
89 changes: 7 additions & 82 deletions SwissKnife/SwissKnife.iml
Original file line number Diff line number Diff line change
@@ -1,96 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":SwissKnife" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="SwissKnifeProject" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<module external.linked.project.id="SwissKnife" external.linked.project.path="$MODULE_DIR$/.." external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.arasthel.swissknife" external.system.module.version="1.2.2" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":SwissKnife" />
</configuration>
</facet>
<facet type="android" name="Android">
<configuration>
<option name="SELECTED_BUILD_VARIANT" value="debug" />
<option name="SELECTED_TEST_ARTIFACT" value="_android_test_" />
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
<option name="SOURCE_GEN_TASK_NAME" value="generateDebugSources" />
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugTest" />
<option name="COMPILE_JAVA_TEST_TASK_NAME" value="compileDebugTestSources" />
<option name="TEST_SOURCE_GEN_TASK_NAME" value="generateDebugTestSources" />
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
<option name="LIBRARY_PROJECT" value="true" />
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/../build" />
<option name="BUILDABLE" value="false" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="false">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/debug" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/test/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/test/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/test/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/test/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/test/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/test/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/groovy" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/groovy" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/coverage-instrumented-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/libs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/ndk" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/proguard" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
<content url="file://$MODULE_DIR$/..">
<excludeFolder url="file://$MODULE_DIR$/../.gradle" />
</content>
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="support-v4-22.0.0" level="project" />
<orderEntry type="library" exported="" name="support-annotations-22.0.0" level="project" />
<orderEntry type="library" exported="" name="groovy-2.4.3-grooid" level="project" />
</component>
</module>
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

VERSION_NAME=1.3.0
VERSION_CODE=14
VERSION_NAME=1.3.1
VERSION_CODE=15
GROUP=com.arasthel

POM_DESCRIPTION=Android library for View Injection and Async processing
Expand Down

0 comments on commit c4f9404

Please sign in to comment.