aboutsummaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-23 13:13:36 -0700
committerGitHub <noreply@github.com>2017-07-23 13:13:36 -0700
commit4706b8f6a8d08a6961da6ab34d15881b63356d79 (patch)
tree3d1e611e43bd589a98a5f1840c5b6f52ff254468 /sample
parent61d87976e8b29ed25061ae98743a6cf4f4274542 (diff)
downloadkau-4706b8f6a8d08a6961da6ab34d15881b63356d79.tar.gz
kau-4706b8f6a8d08a6961da6ab34d15881b63356d79.tar.bz2
kau-4706b8f6a8d08a6961da6ab34d15881b63356d79.zip
Update kpref-activity's min-sdk and other minor changes (#11)3.1.0
* Move some resources to public * Lower kpref minsdk * Remove excess kauUtils annotations * Allow nullable throwable * Do not throw null throwable * Make image picker base abstract again * Migrate about strings to private * Update readme * Update readme * Update sample tagging * Update adapter readme
Diffstat (limited to 'sample')
-rw-r--r--sample/build.gradle2
-rw-r--r--sample/src/main/AndroidManifest.xml2
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/ImagePickerActivity.kt8
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt3
-rw-r--r--sample/src/main/res/xml/kau_changelog.xml16
5 files changed, 21 insertions, 10 deletions
diff --git a/sample/build.gradle b/sample/build.gradle
index a31385d..b318174 100644
--- a/sample/build.gradle
+++ b/sample/build.gradle
@@ -16,7 +16,7 @@ android {
buildToolsVersion project.BUILD_TOOLS
androidGitVersion {
- codeFormat = 'MMNNBBBB'
+ codeFormat = 'MMNNPPBB'
}
defaultConfig {
diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml
index d041a3e..da26bdf 100644
--- a/sample/src/main/AndroidManifest.xml
+++ b/sample/src/main/AndroidManifest.xml
@@ -29,7 +29,7 @@
android:name=".AboutActivity"
android:theme="@style/Kau.About" />
<activity
- android:name="ca.allanwang.kau.imagepicker.ImagePickerActivity"
+ android:name=".ImagePickerActivity"
android:theme="@style/Kau.ImagePicker" />
<activity
android:name=".AdapterActivity"
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/ImagePickerActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/ImagePickerActivity.kt
new file mode 100644
index 0000000..8a23192
--- /dev/null
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/ImagePickerActivity.kt
@@ -0,0 +1,8 @@
+package ca.allanwang.kau.sample
+
+import ca.allanwang.kau.imagepicker.ImagePickerActivityBase
+
+/**
+ * Created by Allan Wang on 2017-07-23.
+ */
+class ImagePickerActivity : ImagePickerActivityBase() \ No newline at end of file
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
index 4711701..ecfef04 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
@@ -165,7 +165,7 @@ class MainActivity : KPrefActivity() {
}
plainText(R.string.gallery_showcase) {
- onClick = { _, _, _ -> kauLaunchImagePicker(REQUEST_IMAGE); false }
+ onClick = { _, _, _ -> kauLaunchImagePicker(ImagePickerActivity::class.java, REQUEST_IMAGE); false }
}
plainText(R.string.adapter_showcase) {
@@ -235,7 +235,6 @@ class MainActivity : KPrefActivity() {
when (item.itemId) {
R.id.action_settings -> startActivity(AnimActivity::class.java)
R.id.action_email -> sendEmail(R.string.your_email, R.string.your_subject)
- R.id.test -> kauLaunchImagePicker(REQUEST_IMAGE)
else -> return super.onOptionsItemSelected(item)
}
return true
diff --git a/sample/src/main/res/xml/kau_changelog.xml b/sample/src/main/res/xml/kau_changelog.xml
index 488e01b..76aee36 100644
--- a/sample/src/main/res/xml/kau_changelog.xml
+++ b/sample/src/main/res/xml/kau_changelog.xml
@@ -6,18 +6,22 @@
<item text="" />
-->
- <version title="v2.2"/>
- <item text=":imagepicker: Fully implement picker" />
- <item text=":core: [breaking] Replace update[x]Margin to setMargin[x]" />
- <item text=":core: Add setPadding[x]" />
+ <version title="v3.1"/>
+ <item text=":core: Allow for nullable throwables when logging" />
<item text="" />
<item text="" />
<item text="" />
<item text="" />
<item text="" />
<item text="" />
- <item text="" />
-
+
+ <version title="v3.0"/>
+ <item text=":core: Add setPadding[x]" />
+ <item text=":core: [breaking] Replace update[x]Margin to setMargin[x]" />
+ <item text=":imagepicker: Fully implement picker" />
+ <item text="Make resources private where possible" />
+ <item text="Reduce minSdk to 19 where possible" />
+
<version title="v2.1"/>
<item text=":adapter: Fix up CardIItem" />
<item text=":adapter: Modularized kau animators" />