diff --git a/README.md b/README.md index 0ea0acc..968bab5 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ buildscript { } dependencies { - classpath 'io.michaelrocks:paranoid-gradle-plugin:0.1.4' + classpath 'io.michaelrocks:paranoid-gradle-plugin:0.1.5' } } diff --git a/build.gradle b/build.gradle index ac2088b..5a9879e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ allprojects { - ext.kotlinVersion = '1.1.1' + ext.kotlinVersion = '1.1.2' buildscript { repositories { diff --git a/processor/src/main/kotlin/io/michaelrocks/paranoid/processor/Generator.kt b/processor/src/main/kotlin/io/michaelrocks/paranoid/processor/Generator.kt index 753d8d5..2ba71cc 100644 --- a/processor/src/main/kotlin/io/michaelrocks/paranoid/processor/Generator.kt +++ b/processor/src/main/kotlin/io/michaelrocks/paranoid/processor/Generator.kt @@ -121,6 +121,8 @@ class Generator(private val stringRegistry: StringRegistry) { return when (this) { '\n' -> "'\\n'" '\r' -> "'\\r'" + '\'' -> "'\\''" + '\\' -> "'\\\\'" else -> "'\\u%04x'".format(toShort()) } } diff --git a/sample/src/main/java/io/michaelrocks/paranoid/sample/MainActivity.java b/sample/src/main/java/io/michaelrocks/paranoid/sample/MainActivity.java index 30424b1..ed35710 100644 --- a/sample/src/main/java/io/michaelrocks/paranoid/sample/MainActivity.java +++ b/sample/src/main/java/io/michaelrocks/paranoid/sample/MainActivity.java @@ -32,9 +32,9 @@ protected void onCreate(final Bundle savedInstanceState) { setContentView(R.layout.main_activity); final TextView questionTextView = (TextView) findViewById(R.id.questionTextView); - questionTextView.setText(String.format(QUESTION, "Does it work?")); + questionTextView.setText(String.format(QUESTION, "How does it work?")); final TextView answerTextView = (TextView) findViewById(R.id.answerTextView); - answerTextView.setText(String.format(ANSWER, "Sure it does!")); + answerTextView.setText(String.format(ANSWER, "It's magic! ¯\\_(ツ)_/¯")); } } diff --git a/version.properties b/version.properties index 1ffd5d1..8df3b97 100644 --- a/version.properties +++ b/version.properties @@ -1,6 +1,6 @@ version.major=0 version.minor=1 -version.patch=4 +version.patch=5 version.snapshot=false version.dryRun=false