diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-04 16:08:03 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-04 16:08:03 -0700 |
commit | cf2a7fcd0880a8d276970124cdb5d5845d5631fe (patch) | |
tree | cc38ead7853ddb85c9c988e94a4af605e1e676f8 | |
parent | fe4632c34a1d671503e0242a269865b884545e13 (diff) | |
download | kau-cf2a7fcd0880a8d276970124cdb5d5845d5631fe.tar.gz kau-cf2a7fcd0880a8d276970124cdb5d5845d5631fe.tar.bz2 kau-cf2a7fcd0880a8d276970124cdb5d5845d5631fe.zip |
Separate core components in its own module
-rw-r--r-- | .idea/gradle.xml | 3 | ||||
-rw-r--r-- | .idea/misc.xml | 2 | ||||
-rw-r--r-- | .idea/modules.xml | 3 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | artifacts.gradle | 25 | ||||
-rw-r--r-- | core/.gitignore (renamed from library/.gitignore) | 0 | ||||
-rw-r--r-- | core/build.gradle (renamed from library/build.gradle) | 24 | ||||
-rw-r--r-- | core/progress-proguard.txt (renamed from library/progress-proguard.txt) | 0 | ||||
-rw-r--r-- | core/src/androidTest/java/ca/allanwang/kprefs/library/ExampleInstrumentedTest.java (renamed from library/src/androidTest/java/ca/allanwang/kprefs/library/ExampleInstrumentedTest.java) | 0 | ||||
-rw-r--r-- | core/src/main/AndroidManifest.xml (renamed from library/src/main/AndroidManifest.xml) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/adapters/ChainedAdapters.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/adapters/ChainedAdapters.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/adapters/SectionAdapter.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/adapters/SectionAdapter.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/animators/BaseDelayAnimator.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/animators/BaseDelayAnimator.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/animators/BaseItemAnimator.java (renamed from library/src/main/kotlin/ca/allanwang/kau/animators/BaseItemAnimator.java) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/animators/BaseSlideAlphaAnimator.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/animators/BaseSlideAlphaAnimator.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/animators/DefaultAnimator.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/animators/DefaultAnimator.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/animators/FadeScaleAnimator.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/animators/FadeScaleAnimator.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/animators/NoAnimator.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/animators/NoAnimator.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/animators/SlideUpExitRightAnimator.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/animators/SlideUpExitRightAnimator.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/changelog/Changelog.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/changelog/Changelog.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/dialogs/color/CircleView.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/dialogs/color/CircleView.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPalette.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPalette.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerDialog.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerDialog.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerView.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerView.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/iitems/CardIItem.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/iitems/CardIItem.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/iitems/CutoutIItem.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/iitems/CutoutIItem.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/iitems/HeaderIItem.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/iitems/HeaderIItem.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/iitems/KauIItem.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/iitems/KauIItem.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/iitems/LibraryIItem.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/iitems/LibraryIItem.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kotlin/LazyContext.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kotlin/LazyContext.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kotlin/LazyResettable.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kotlin/LazyResettable.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kotlin/NonReadablePropertyException.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kotlin/NonReadablePropertyException.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/KPref.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/KPref.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefBinder.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefBinder.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefCheckbox.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefCheckbox.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefColorPicker.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefColorPicker.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemBase.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemBase.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefPlainText.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefPlainText.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefSubItems.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefSubItems.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefText.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefText.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/logging/KL.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/logging/KL.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/logging/TimberLogger.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/logging/TimberLogger.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionResult.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/permissions/PermissionResult.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/permissions/Permissions.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/permissions/Permissions.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/searchview/SearchItem.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/searchview/SearchItem.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/AnimHolder.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/AnimHolder.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/AnimUtils.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/AnimUtils.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/ColorUtils.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/ColorUtils.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/Const.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/Const.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/Either.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/Either.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/FontUtils.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/FontUtils.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/IIconUtils.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/IIconUtils.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/PackageUtils.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/PackageUtils.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/StringHolder.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/StringHolder.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/TransitionUtils.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/TransitionUtils.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/Utils.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/Utils.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/views/BoundedCardView.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/views/BoundedCardView.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/views/CutoutView.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/views/CutoutView.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/views/RippleCanvas.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/views/RippleCanvas.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/views/SimpleRippleDrawable.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/views/SimpleRippleDrawable.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/widgets/ElasticDragDismissFrameLayout.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/widgets/ElasticDragDismissFrameLayout.kt) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/widgets/InkPageIndicator.java (renamed from library/src/main/kotlin/ca/allanwang/kau/widgets/InkPageIndicator.java) | 0 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/widgets/TextSlider.kt (renamed from library/src/main/kotlin/ca/allanwang/kau/widgets/TextSlider.kt) | 0 | ||||
-rw-r--r-- | core/src/main/res/anim/kau_fade_in.xml (renamed from library/src/main/res/anim/kau_fade_in.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/anim/kau_fade_out.xml (renamed from library/src/main/res/anim/kau_fade_out.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/anim/kau_slide_in_bottom.xml (renamed from library/src/main/res/anim/kau_slide_in_bottom.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/anim/kau_slide_in_left.xml (renamed from library/src/main/res/anim/kau_slide_in_left.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/anim/kau_slide_in_right.xml (renamed from library/src/main/res/anim/kau_slide_in_right.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/anim/kau_slide_in_top.xml (renamed from library/src/main/res/anim/kau_slide_in_top.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/anim/kau_slide_out_bottom.xml (renamed from library/src/main/res/anim/kau_slide_out_bottom.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/anim/kau_slide_out_left.xml (renamed from library/src/main/res/anim/kau_slide_out_left.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/anim/kau_slide_out_right.xml (renamed from library/src/main/res/anim/kau_slide_out_right.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/anim/kau_slide_out_right_top.xml (renamed from library/src/main/res/anim/kau_slide_out_right_top.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/anim/kau_slide_out_top.xml (renamed from library/src/main/res/anim/kau_slide_out_top.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/drawable/kau_transparent.xml (renamed from library/src/main/res/drawable/kau_transparent.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_about_section_libraries.xml (renamed from library/src/main/res/layout/kau_about_section_libraries.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_about_section_main.xml (renamed from library/src/main/res/layout/kau_about_section_main.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_activity_about.xml (renamed from library/src/main/res/layout/kau_activity_about.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_activity_kpref.xml (renamed from library/src/main/res/layout/kau_activity_kpref.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_changelog_content.xml (renamed from library/src/main/res/layout/kau_changelog_content.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_changelog_title.xml (renamed from library/src/main/res/layout/kau_changelog_title.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_iitem_card.xml (renamed from library/src/main/res/layout/kau_iitem_card.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_iitem_cutout.xml (renamed from library/src/main/res/layout/kau_iitem_cutout.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_iitem_header.xml (renamed from library/src/main/res/layout/kau_iitem_header.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_iitem_library.xml (renamed from library/src/main/res/layout/kau_iitem_library.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_preference.xml (renamed from library/src/main/res/layout/kau_preference.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_preference_checkbox.xml (renamed from library/src/main/res/layout/kau_preference_checkbox.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_preference_color_preview.xml (renamed from library/src/main/res/layout/kau_preference_color_preview.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_preference_header.xml (renamed from library/src/main/res/layout/kau_preference_header.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_preference_text.xml (renamed from library/src/main/res/layout/kau_preference_text.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_recycler_detached_background.xml (renamed from library/src/main/res/layout/kau_recycler_detached_background.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_recycler_textslider.xml (renamed from library/src/main/res/layout/kau_recycler_textslider.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_search_iitem.xml (renamed from library/src/main/res/layout/kau_search_iitem.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/layout/kau_search_view.xml (renamed from library/src/main/res/layout/kau_search_view.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/transition/kau_about_return_downward.xml (renamed from library/src/main/res/transition/kau_about_return_downward.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/transition/kau_about_return_upwards.xml (renamed from library/src/main/res/transition/kau_about_return_upwards.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/transition/kau_enter_slide_top.xml (renamed from library/src/main/res/transition/kau_enter_slide_top.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/values/attr.xml (renamed from library/src/main/res/values/attr.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/values/colors.xml (renamed from library/src/main/res/values/colors.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/values/dimens.xml (renamed from library/src/main/res/values/dimens.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/values/dimens_search.xml (renamed from library/src/main/res/values/dimens_search.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/values/ids.xml (renamed from library/src/main/res/values/ids.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/values/strings.xml (renamed from library/src/main/res/values/strings.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/values/strings_about.xml (renamed from library/src/main/res/values/strings_about.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/values/strings_commons.xml (renamed from library/src/main/res/values/strings_commons.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/values/styles.xml (renamed from library/src/main/res/values/styles.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/values/styles_animations.xml (renamed from library/src/main/res/values/styles_animations.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/xml/kau_changelog.xml (renamed from library/src/main/res/xml/kau_changelog.xml) | 0 | ||||
-rw-r--r-- | core/src/test/kotlin/ca/allanwang/kprefs/library/UtilsTest.kt (renamed from library/src/test/kotlin/ca/allanwang/kprefs/library/UtilsTest.kt) | 0 | ||||
-rw-r--r-- | gradle.properties | 2 | ||||
-rw-r--r-- | imagepicker/.gitignore | 1 | ||||
-rw-r--r-- | imagepicker/build.gradle | 51 | ||||
-rw-r--r-- | imagepicker/progress-proguard.txt | 1 | ||||
-rw-r--r-- | imagepicker/src/main/AndroidManifest.xml | 1 | ||||
-rw-r--r-- | imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImageHelper.kt | 10 | ||||
-rw-r--r-- | imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImageItem.kt | 20 | ||||
-rw-r--r-- | imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImagePickerActivityBase.kt | 39 | ||||
-rw-r--r-- | imagepicker/src/main/res/layout/kau_activity_image_picker.xml | 18 | ||||
-rw-r--r-- | imagepicker/src/main/res/layout/kau_iitem_image.xml | 11 | ||||
-rw-r--r-- | sample/build.gradle | 3 | ||||
-rw-r--r-- | sample/src/main/AndroidManifest.xml | 1 | ||||
-rw-r--r-- | sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt | 22 | ||||
-rw-r--r-- | settings.gradle | 2 |
137 files changed, 210 insertions, 35 deletions
diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 903e3d4..9291120 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -8,7 +8,8 @@ <option name="modules"> <set> <option value="$PROJECT_DIR$" /> - <option value="$PROJECT_DIR$/library" /> + <option value="$PROJECT_DIR$/core" /> + <option value="$PROJECT_DIR$/imagepicker" /> <option value="$PROJECT_DIR$/sample" /> </set> </option> diff --git a/.idea/misc.xml b/.idea/misc.xml index 7319f02..085136f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -53,7 +53,7 @@ <ConfirmationsSetting value="0" id="Add" /> <ConfirmationsSetting value="0" id="Remove" /> </component> - <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <output url="file://$PROJECT_DIR$/build/classes" /> </component> <component name="ProjectType"> diff --git a/.idea/modules.xml b/.idea/modules.xml index b8450ec..5e24f43 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -3,7 +3,8 @@ <component name="ProjectModuleManager"> <modules> <module fileurl="file://$PROJECT_DIR$/KAU.iml" filepath="$PROJECT_DIR$/KAU.iml" /> - <module fileurl="file://$PROJECT_DIR$/library/library.iml" filepath="$PROJECT_DIR$/library/library.iml" /> + <module fileurl="file://$PROJECT_DIR$/core/core.iml" filepath="$PROJECT_DIR$/core/core.iml" /> + <module fileurl="file://$PROJECT_DIR$/imagepicker/imagepicker.iml" filepath="$PROJECT_DIR$/imagepicker/imagepicker.iml" /> <module fileurl="file://$PROJECT_DIR$/sample/sample.iml" filepath="$PROJECT_DIR$/sample/sample.iml" /> </modules> </component> @@ -29,7 +29,11 @@ And add the following dependencies (You can use a specific version, commit, or - ```gradle dependencies { - compile "ca.allanwang:kau:$KAU" + + compile "ca.allanwang:kau:core:$KAU" + + //Optional addition for image picker + compile "ca.allanwang:kau:imagepicker:$KAU" } ``` diff --git a/artifacts.gradle b/artifacts.gradle new file mode 100644 index 0000000..6db3cfb --- /dev/null +++ b/artifacts.gradle @@ -0,0 +1,25 @@ +apply plugin: 'com.github.dcendents.android-maven' + +// build a jar with source files +task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' +} + +task javadoc(type: Javadoc) { + failOnError false + source = android.sourceSets.main.java.sourceFiles + classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) + classpath += configurations.compile +} + +// build a jar with javadoc +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + +artifacts { + archives sourcesJar + archives javadocJar +}
\ No newline at end of file diff --git a/library/.gitignore b/core/.gitignore index 796b96d..796b96d 100644 --- a/library/.gitignore +++ b/core/.gitignore diff --git a/library/build.gradle b/core/build.gradle index 714708b..9b1bd3a 100644 --- a/library/build.gradle +++ b/core/build.gradle @@ -84,26 +84,4 @@ dependencies { } } -// build a jar with source files -task sourcesJar(type: Jar) { - from android.sourceSets.main.java.srcDirs - classifier = 'sources' -} - -task javadoc(type: Javadoc) { - failOnError false - source = android.sourceSets.main.java.sourceFiles - classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) - classpath += configurations.compile -} - -// build a jar with javadoc -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir -} - -artifacts { - archives sourcesJar - archives javadocJar -}
\ No newline at end of file +apply from: '../artifacts.gradle' diff --git a/library/progress-proguard.txt b/core/progress-proguard.txt index 8b13789..8b13789 100644 --- a/library/progress-proguard.txt +++ b/core/progress-proguard.txt diff --git a/library/src/androidTest/java/ca/allanwang/kprefs/library/ExampleInstrumentedTest.java b/core/src/androidTest/java/ca/allanwang/kprefs/library/ExampleInstrumentedTest.java index 8a80585..8a80585 100644 --- a/library/src/androidTest/java/ca/allanwang/kprefs/library/ExampleInstrumentedTest.java +++ b/core/src/androidTest/java/ca/allanwang/kprefs/library/ExampleInstrumentedTest.java diff --git a/library/src/main/AndroidManifest.xml b/core/src/main/AndroidManifest.xml index 4461514..4461514 100644 --- a/library/src/main/AndroidManifest.xml +++ b/core/src/main/AndroidManifest.xml diff --git a/library/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt b/core/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt index 32e8745..32e8745 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/adapters/ChainedAdapters.kt b/core/src/main/kotlin/ca/allanwang/kau/adapters/ChainedAdapters.kt index e1c5c18..e1c5c18 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/adapters/ChainedAdapters.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/adapters/ChainedAdapters.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt b/core/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt index 66fec4b..66fec4b 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/adapters/SectionAdapter.kt b/core/src/main/kotlin/ca/allanwang/kau/adapters/SectionAdapter.kt index cf7205a..cf7205a 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/adapters/SectionAdapter.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/adapters/SectionAdapter.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/animators/BaseDelayAnimator.kt b/core/src/main/kotlin/ca/allanwang/kau/animators/BaseDelayAnimator.kt index c649376..c649376 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/animators/BaseDelayAnimator.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/animators/BaseDelayAnimator.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/animators/BaseItemAnimator.java b/core/src/main/kotlin/ca/allanwang/kau/animators/BaseItemAnimator.java index 69c2cf3..69c2cf3 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/animators/BaseItemAnimator.java +++ b/core/src/main/kotlin/ca/allanwang/kau/animators/BaseItemAnimator.java diff --git a/library/src/main/kotlin/ca/allanwang/kau/animators/BaseSlideAlphaAnimator.kt b/core/src/main/kotlin/ca/allanwang/kau/animators/BaseSlideAlphaAnimator.kt index a963358..a963358 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/animators/BaseSlideAlphaAnimator.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/animators/BaseSlideAlphaAnimator.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/animators/DefaultAnimator.kt b/core/src/main/kotlin/ca/allanwang/kau/animators/DefaultAnimator.kt index 9aeafde..9aeafde 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/animators/DefaultAnimator.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/animators/DefaultAnimator.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/animators/FadeScaleAnimator.kt b/core/src/main/kotlin/ca/allanwang/kau/animators/FadeScaleAnimator.kt index e968cda..e968cda 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/animators/FadeScaleAnimator.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/animators/FadeScaleAnimator.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/animators/NoAnimator.kt b/core/src/main/kotlin/ca/allanwang/kau/animators/NoAnimator.kt index 244287b..244287b 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/animators/NoAnimator.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/animators/NoAnimator.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/animators/SlideUpExitRightAnimator.kt b/core/src/main/kotlin/ca/allanwang/kau/animators/SlideUpExitRightAnimator.kt index 8670493..8670493 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/animators/SlideUpExitRightAnimator.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/animators/SlideUpExitRightAnimator.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/changelog/Changelog.kt b/core/src/main/kotlin/ca/allanwang/kau/changelog/Changelog.kt index 302d9dc..302d9dc 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/changelog/Changelog.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/changelog/Changelog.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/dialogs/color/CircleView.kt b/core/src/main/kotlin/ca/allanwang/kau/dialogs/color/CircleView.kt index 3430b42..3430b42 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/dialogs/color/CircleView.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/dialogs/color/CircleView.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPalette.kt b/core/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPalette.kt index 22bd0d4..22bd0d4 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPalette.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPalette.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerDialog.kt b/core/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerDialog.kt index 7c57c26..7c57c26 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerDialog.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerDialog.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerView.kt b/core/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerView.kt index da864c9..da864c9 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerView.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/dialogs/color/ColorPickerView.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt b/core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt index b03a620..b03a620 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/iitems/CardIItem.kt b/core/src/main/kotlin/ca/allanwang/kau/iitems/CardIItem.kt index 3380ade..3380ade 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/iitems/CardIItem.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/iitems/CardIItem.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/iitems/CutoutIItem.kt b/core/src/main/kotlin/ca/allanwang/kau/iitems/CutoutIItem.kt index 627e1df..627e1df 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/iitems/CutoutIItem.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/iitems/CutoutIItem.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/iitems/HeaderIItem.kt b/core/src/main/kotlin/ca/allanwang/kau/iitems/HeaderIItem.kt index e994781..e994781 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/iitems/HeaderIItem.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/iitems/HeaderIItem.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/iitems/KauIItem.kt b/core/src/main/kotlin/ca/allanwang/kau/iitems/KauIItem.kt index 00b165c..00b165c 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/iitems/KauIItem.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/iitems/KauIItem.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/iitems/LibraryIItem.kt b/core/src/main/kotlin/ca/allanwang/kau/iitems/LibraryIItem.kt index aabd9e3..aabd9e3 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/iitems/LibraryIItem.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/iitems/LibraryIItem.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kotlin/LazyContext.kt b/core/src/main/kotlin/ca/allanwang/kau/kotlin/LazyContext.kt index 8b59539..8b59539 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kotlin/LazyContext.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kotlin/LazyContext.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kotlin/LazyResettable.kt b/core/src/main/kotlin/ca/allanwang/kau/kotlin/LazyResettable.kt index f8947f3..f8947f3 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kotlin/LazyResettable.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kotlin/LazyResettable.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kotlin/NonReadablePropertyException.kt b/core/src/main/kotlin/ca/allanwang/kau/kotlin/NonReadablePropertyException.kt index f3add48..f3add48 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kotlin/NonReadablePropertyException.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kotlin/NonReadablePropertyException.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPref.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPref.kt index 7fd8955..7fd8955 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPref.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPref.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt index 9a9f7d4..9a9f7d4 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefBinder.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefBinder.kt index 7f42d2a..7f42d2a 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefBinder.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefBinder.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt index 4d57ff1..4d57ff1 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/KPrefDelegate.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefCheckbox.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefCheckbox.kt index 22cc927..22cc927 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefCheckbox.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefCheckbox.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefColorPicker.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefColorPicker.kt index c573939..c573939 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefColorPicker.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefColorPicker.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt index fa8efff..fa8efff 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemBase.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemBase.kt index bb0f0a3..bb0f0a3 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemBase.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemBase.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt index 5f684ba..5f684ba 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefItemCore.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefPlainText.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefPlainText.kt index a782430..a782430 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefPlainText.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefPlainText.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefSubItems.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefSubItems.kt index 51625ab..51625ab 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefSubItems.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefSubItems.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefText.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefText.kt index 8662b6a..8662b6a 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefText.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefText.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/logging/KL.kt b/core/src/main/kotlin/ca/allanwang/kau/logging/KL.kt index 4fa3360..4fa3360 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/logging/KL.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/logging/KL.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/logging/TimberLogger.kt b/core/src/main/kotlin/ca/allanwang/kau/logging/TimberLogger.kt index 5969fd5..5969fd5 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/logging/TimberLogger.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/logging/TimberLogger.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt b/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt index 6f93c9f..6f93c9f 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionManager.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/permissions/PermissionResult.kt b/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionResult.kt index 14bfdff..14bfdff 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/permissions/PermissionResult.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/permissions/PermissionResult.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/permissions/Permissions.kt b/core/src/main/kotlin/ca/allanwang/kau/permissions/Permissions.kt index fd43102..fd43102 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/permissions/Permissions.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/permissions/Permissions.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/searchview/SearchItem.kt b/core/src/main/kotlin/ca/allanwang/kau/searchview/SearchItem.kt index ac8ec2e..ac8ec2e 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/searchview/SearchItem.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/searchview/SearchItem.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt b/core/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt index c077a06..c077a06 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt index ec51bfd..ec51bfd 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/AnimHolder.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/AnimHolder.kt index 3db8b9c..3db8b9c 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/AnimHolder.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/AnimHolder.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/AnimUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/AnimUtils.kt index 86b049e..86b049e 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/AnimUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/AnimUtils.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/ColorUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ColorUtils.kt index 8590d6f..8590d6f 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/ColorUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ColorUtils.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/Const.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/Const.kt index 944caa4..944caa4 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/Const.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/Const.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt index 21021e2..21021e2 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/Either.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/Either.kt index dab5810..dab5810 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/Either.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/Either.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/FontUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/FontUtils.kt index 3fc509d..3fc509d 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/FontUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/FontUtils.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt index acc71f2..acc71f2 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/IIconUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/IIconUtils.kt index 03a1605..03a1605 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/IIconUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/IIconUtils.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt index 247bbc7..247bbc7 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/PackageUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/PackageUtils.kt index 837c209..837c209 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/PackageUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/PackageUtils.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/StringHolder.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/StringHolder.kt index e70a2d1..e70a2d1 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/StringHolder.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/StringHolder.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/TransitionUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/TransitionUtils.kt index 9e668d0..9e668d0 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/TransitionUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/TransitionUtils.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/Utils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/Utils.kt index 84794f9..84794f9 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/Utils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/Utils.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt index b4752a5..b4752a5 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/views/BoundedCardView.kt b/core/src/main/kotlin/ca/allanwang/kau/views/BoundedCardView.kt index 0cb65d0..0cb65d0 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/views/BoundedCardView.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/views/BoundedCardView.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/views/CutoutView.kt b/core/src/main/kotlin/ca/allanwang/kau/views/CutoutView.kt index 023bdb4..023bdb4 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/views/CutoutView.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/views/CutoutView.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/views/RippleCanvas.kt b/core/src/main/kotlin/ca/allanwang/kau/views/RippleCanvas.kt index 805fb21..805fb21 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/views/RippleCanvas.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/views/RippleCanvas.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/views/SimpleRippleDrawable.kt b/core/src/main/kotlin/ca/allanwang/kau/views/SimpleRippleDrawable.kt index df842f6..df842f6 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/views/SimpleRippleDrawable.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/views/SimpleRippleDrawable.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/widgets/ElasticDragDismissFrameLayout.kt b/core/src/main/kotlin/ca/allanwang/kau/widgets/ElasticDragDismissFrameLayout.kt index 38c99c3..38c99c3 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/widgets/ElasticDragDismissFrameLayout.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/widgets/ElasticDragDismissFrameLayout.kt diff --git a/library/src/main/kotlin/ca/allanwang/kau/widgets/InkPageIndicator.java b/core/src/main/kotlin/ca/allanwang/kau/widgets/InkPageIndicator.java index 78e915d..78e915d 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/widgets/InkPageIndicator.java +++ b/core/src/main/kotlin/ca/allanwang/kau/widgets/InkPageIndicator.java diff --git a/library/src/main/kotlin/ca/allanwang/kau/widgets/TextSlider.kt b/core/src/main/kotlin/ca/allanwang/kau/widgets/TextSlider.kt index 528dabc..528dabc 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/widgets/TextSlider.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/widgets/TextSlider.kt diff --git a/library/src/main/res/anim/kau_fade_in.xml b/core/src/main/res/anim/kau_fade_in.xml index 03312a2..03312a2 100644 --- a/library/src/main/res/anim/kau_fade_in.xml +++ b/core/src/main/res/anim/kau_fade_in.xml diff --git a/library/src/main/res/anim/kau_fade_out.xml b/core/src/main/res/anim/kau_fade_out.xml index 322befc..322befc 100644 --- a/library/src/main/res/anim/kau_fade_out.xml +++ b/core/src/main/res/anim/kau_fade_out.xml diff --git a/library/src/main/res/anim/kau_slide_in_bottom.xml b/core/src/main/res/anim/kau_slide_in_bottom.xml index a07cba4..a07cba4 100644 --- a/library/src/main/res/anim/kau_slide_in_bottom.xml +++ b/core/src/main/res/anim/kau_slide_in_bottom.xml diff --git a/library/src/main/res/anim/kau_slide_in_left.xml b/core/src/main/res/anim/kau_slide_in_left.xml index 828bdae..828bdae 100644 --- a/library/src/main/res/anim/kau_slide_in_left.xml +++ b/core/src/main/res/anim/kau_slide_in_left.xml diff --git a/library/src/main/res/anim/kau_slide_in_right.xml b/core/src/main/res/anim/kau_slide_in_right.xml index 0f9fbce..0f9fbce 100644 --- a/library/src/main/res/anim/kau_slide_in_right.xml +++ b/core/src/main/res/anim/kau_slide_in_right.xml diff --git a/library/src/main/res/anim/kau_slide_in_top.xml b/core/src/main/res/anim/kau_slide_in_top.xml index 8caee9b..8caee9b 100644 --- a/library/src/main/res/anim/kau_slide_in_top.xml +++ b/core/src/main/res/anim/kau_slide_in_top.xml diff --git a/library/src/main/res/anim/kau_slide_out_bottom.xml b/core/src/main/res/anim/kau_slide_out_bottom.xml index 44e7e21..44e7e21 100644 --- a/library/src/main/res/anim/kau_slide_out_bottom.xml +++ b/core/src/main/res/anim/kau_slide_out_bottom.xml diff --git a/library/src/main/res/anim/kau_slide_out_left.xml b/core/src/main/res/anim/kau_slide_out_left.xml index 6fab33e..6fab33e 100644 --- a/library/src/main/res/anim/kau_slide_out_left.xml +++ b/core/src/main/res/anim/kau_slide_out_left.xml diff --git a/library/src/main/res/anim/kau_slide_out_right.xml b/core/src/main/res/anim/kau_slide_out_right.xml index 9322741..9322741 100644 --- a/library/src/main/res/anim/kau_slide_out_right.xml +++ b/core/src/main/res/anim/kau_slide_out_right.xml diff --git a/library/src/main/res/anim/kau_slide_out_right_top.xml b/core/src/main/res/anim/kau_slide_out_right_top.xml index 5b63474..5b63474 100644 --- a/library/src/main/res/anim/kau_slide_out_right_top.xml +++ b/core/src/main/res/anim/kau_slide_out_right_top.xml diff --git a/library/src/main/res/anim/kau_slide_out_top.xml b/core/src/main/res/anim/kau_slide_out_top.xml index 9f8e14c..9f8e14c 100644 --- a/library/src/main/res/anim/kau_slide_out_top.xml +++ b/core/src/main/res/anim/kau_slide_out_top.xml diff --git a/library/src/main/res/drawable/kau_transparent.xml b/core/src/main/res/drawable/kau_transparent.xml index 399a46b..399a46b 100644 --- a/library/src/main/res/drawable/kau_transparent.xml +++ b/core/src/main/res/drawable/kau_transparent.xml diff --git a/library/src/main/res/layout/kau_about_section_libraries.xml b/core/src/main/res/layout/kau_about_section_libraries.xml index 45c271b..45c271b 100644 --- a/library/src/main/res/layout/kau_about_section_libraries.xml +++ b/core/src/main/res/layout/kau_about_section_libraries.xml diff --git a/library/src/main/res/layout/kau_about_section_main.xml b/core/src/main/res/layout/kau_about_section_main.xml index 40d8dfb..40d8dfb 100644 --- a/library/src/main/res/layout/kau_about_section_main.xml +++ b/core/src/main/res/layout/kau_about_section_main.xml diff --git a/library/src/main/res/layout/kau_activity_about.xml b/core/src/main/res/layout/kau_activity_about.xml index 33cc781..33cc781 100644 --- a/library/src/main/res/layout/kau_activity_about.xml +++ b/core/src/main/res/layout/kau_activity_about.xml diff --git a/library/src/main/res/layout/kau_activity_kpref.xml b/core/src/main/res/layout/kau_activity_kpref.xml index 05cacb5..05cacb5 100644 --- a/library/src/main/res/layout/kau_activity_kpref.xml +++ b/core/src/main/res/layout/kau_activity_kpref.xml diff --git a/library/src/main/res/layout/kau_changelog_content.xml b/core/src/main/res/layout/kau_changelog_content.xml index 92b87b9..92b87b9 100644 --- a/library/src/main/res/layout/kau_changelog_content.xml +++ b/core/src/main/res/layout/kau_changelog_content.xml diff --git a/library/src/main/res/layout/kau_changelog_title.xml b/core/src/main/res/layout/kau_changelog_title.xml index e885e02..e885e02 100644 --- a/library/src/main/res/layout/kau_changelog_title.xml +++ b/core/src/main/res/layout/kau_changelog_title.xml diff --git a/library/src/main/res/layout/kau_iitem_card.xml b/core/src/main/res/layout/kau_iitem_card.xml index 621da2e..621da2e 100644 --- a/library/src/main/res/layout/kau_iitem_card.xml +++ b/core/src/main/res/layout/kau_iitem_card.xml diff --git a/library/src/main/res/layout/kau_iitem_cutout.xml b/core/src/main/res/layout/kau_iitem_cutout.xml index a4b17ac..a4b17ac 100644 --- a/library/src/main/res/layout/kau_iitem_cutout.xml +++ b/core/src/main/res/layout/kau_iitem_cutout.xml diff --git a/library/src/main/res/layout/kau_iitem_header.xml b/core/src/main/res/layout/kau_iitem_header.xml index fa5a595..fa5a595 100644 --- a/library/src/main/res/layout/kau_iitem_header.xml +++ b/core/src/main/res/layout/kau_iitem_header.xml diff --git a/library/src/main/res/layout/kau_iitem_library.xml b/core/src/main/res/layout/kau_iitem_library.xml index 1c3de5c..1c3de5c 100644 --- a/library/src/main/res/layout/kau_iitem_library.xml +++ b/core/src/main/res/layout/kau_iitem_library.xml diff --git a/library/src/main/res/layout/kau_preference.xml b/core/src/main/res/layout/kau_preference.xml index c49951b..c49951b 100644 --- a/library/src/main/res/layout/kau_preference.xml +++ b/core/src/main/res/layout/kau_preference.xml diff --git a/library/src/main/res/layout/kau_preference_checkbox.xml b/core/src/main/res/layout/kau_preference_checkbox.xml index 5ab368b..5ab368b 100644 --- a/library/src/main/res/layout/kau_preference_checkbox.xml +++ b/core/src/main/res/layout/kau_preference_checkbox.xml diff --git a/library/src/main/res/layout/kau_preference_color_preview.xml b/core/src/main/res/layout/kau_preference_color_preview.xml index 2374971..2374971 100644 --- a/library/src/main/res/layout/kau_preference_color_preview.xml +++ b/core/src/main/res/layout/kau_preference_color_preview.xml diff --git a/library/src/main/res/layout/kau_preference_header.xml b/core/src/main/res/layout/kau_preference_header.xml index 5deece3..5deece3 100644 --- a/library/src/main/res/layout/kau_preference_header.xml +++ b/core/src/main/res/layout/kau_preference_header.xml diff --git a/library/src/main/res/layout/kau_preference_text.xml b/core/src/main/res/layout/kau_preference_text.xml index bbabdfb..bbabdfb 100644 --- a/library/src/main/res/layout/kau_preference_text.xml +++ b/core/src/main/res/layout/kau_preference_text.xml diff --git a/library/src/main/res/layout/kau_recycler_detached_background.xml b/core/src/main/res/layout/kau_recycler_detached_background.xml index 7295d66..7295d66 100644 --- a/library/src/main/res/layout/kau_recycler_detached_background.xml +++ b/core/src/main/res/layout/kau_recycler_detached_background.xml diff --git a/library/src/main/res/layout/kau_recycler_textslider.xml b/core/src/main/res/layout/kau_recycler_textslider.xml index 1402cfb..1402cfb 100644 --- a/library/src/main/res/layout/kau_recycler_textslider.xml +++ b/core/src/main/res/layout/kau_recycler_textslider.xml diff --git a/library/src/main/res/layout/kau_search_iitem.xml b/core/src/main/res/layout/kau_search_iitem.xml index efd7260..efd7260 100644 --- a/library/src/main/res/layout/kau_search_iitem.xml +++ b/core/src/main/res/layout/kau_search_iitem.xml diff --git a/library/src/main/res/layout/kau_search_view.xml b/core/src/main/res/layout/kau_search_view.xml index ff9fd74..ff9fd74 100644 --- a/library/src/main/res/layout/kau_search_view.xml +++ b/core/src/main/res/layout/kau_search_view.xml diff --git a/library/src/main/res/transition/kau_about_return_downward.xml b/core/src/main/res/transition/kau_about_return_downward.xml index b040b1b..b040b1b 100644 --- a/library/src/main/res/transition/kau_about_return_downward.xml +++ b/core/src/main/res/transition/kau_about_return_downward.xml diff --git a/library/src/main/res/transition/kau_about_return_upwards.xml b/core/src/main/res/transition/kau_about_return_upwards.xml index 64b3f5e..64b3f5e 100644 --- a/library/src/main/res/transition/kau_about_return_upwards.xml +++ b/core/src/main/res/transition/kau_about_return_upwards.xml diff --git a/library/src/main/res/transition/kau_enter_slide_top.xml b/core/src/main/res/transition/kau_enter_slide_top.xml index 0089b84..0089b84 100644 --- a/library/src/main/res/transition/kau_enter_slide_top.xml +++ b/core/src/main/res/transition/kau_enter_slide_top.xml diff --git a/library/src/main/res/values/attr.xml b/core/src/main/res/values/attr.xml index 49be8d9..49be8d9 100644 --- a/library/src/main/res/values/attr.xml +++ b/core/src/main/res/values/attr.xml diff --git a/library/src/main/res/values/colors.xml b/core/src/main/res/values/colors.xml index 6d51597..6d51597 100644 --- a/library/src/main/res/values/colors.xml +++ b/core/src/main/res/values/colors.xml diff --git a/library/src/main/res/values/dimens.xml b/core/src/main/res/values/dimens.xml index 5bf6da4..5bf6da4 100644 --- a/library/src/main/res/values/dimens.xml +++ b/core/src/main/res/values/dimens.xml diff --git a/library/src/main/res/values/dimens_search.xml b/core/src/main/res/values/dimens_search.xml index acf79cb..acf79cb 100644 --- a/library/src/main/res/values/dimens_search.xml +++ b/core/src/main/res/values/dimens_search.xml diff --git a/library/src/main/res/values/ids.xml b/core/src/main/res/values/ids.xml index dd42392..dd42392 100644 --- a/library/src/main/res/values/ids.xml +++ b/core/src/main/res/values/ids.xml diff --git a/library/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 5ea5a23..5ea5a23 100644 --- a/library/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml diff --git a/library/src/main/res/values/strings_about.xml b/core/src/main/res/values/strings_about.xml index e659fc3..e659fc3 100644 --- a/library/src/main/res/values/strings_about.xml +++ b/core/src/main/res/values/strings_about.xml diff --git a/library/src/main/res/values/strings_commons.xml b/core/src/main/res/values/strings_commons.xml index 0ca785d..0ca785d 100644 --- a/library/src/main/res/values/strings_commons.xml +++ b/core/src/main/res/values/strings_commons.xml diff --git a/library/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index 2067c6d..2067c6d 100644 --- a/library/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml diff --git a/library/src/main/res/values/styles_animations.xml b/core/src/main/res/values/styles_animations.xml index a991132..a991132 100644 --- a/library/src/main/res/values/styles_animations.xml +++ b/core/src/main/res/values/styles_animations.xml diff --git a/library/src/main/res/xml/kau_changelog.xml b/core/src/main/res/xml/kau_changelog.xml index e570995..e570995 100644 --- a/library/src/main/res/xml/kau_changelog.xml +++ b/core/src/main/res/xml/kau_changelog.xml diff --git a/library/src/test/kotlin/ca/allanwang/kprefs/library/UtilsTest.kt b/core/src/test/kotlin/ca/allanwang/kprefs/library/UtilsTest.kt index c2c96e4..c2c96e4 100644 --- a/library/src/test/kotlin/ca/allanwang/kprefs/library/UtilsTest.kt +++ b/core/src/test/kotlin/ca/allanwang/kprefs/library/UtilsTest.kt diff --git a/gradle.properties b/gradle.properties index 3e37fc2..cb9641e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -34,3 +34,5 @@ RX_JAVA=2.1.0 RX_ANDROID=2.0.1 RX_BINDING=2.0.0 ABOUT_LIBRARIES=5.9.6 +GLIDE=4.0.0-RC1 + diff --git a/imagepicker/.gitignore b/imagepicker/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/imagepicker/.gitignore @@ -0,0 +1 @@ +/build diff --git a/imagepicker/build.gradle b/imagepicker/build.gradle new file mode 100644 index 0000000..8b3acb1 --- /dev/null +++ b/imagepicker/build.gradle @@ -0,0 +1,51 @@ +plugins { + id 'com.gladed.androidgitversion' version '0.3.4' +} + +apply plugin: 'com.android.library' +apply plugin: 'kotlin-android' +apply plugin: 'com.github.dcendents.android-maven' + +group = project.APP_GROUP + +android { + compileSdkVersion Integer.parseInt(project.TARGET_SDK) + buildToolsVersion project.BUILD_TOOLS + + androidGitVersion { + codeFormat = 'MMNNPP' + prefix 'v' + } + + defaultConfig { + minSdkVersion Integer.parseInt(project.MIN_SDK) + targetSdkVersion Integer.parseInt(project.TARGET_SDK) + versionCode androidGitVersion.code() + versionName androidGitVersion.name() + consumerProguardFiles 'progress-proguard.txt' + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } + lintOptions { + abortOnError false + checkReleaseBuilds false + } + resourcePrefix "kau_" + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + test.java.srcDirs += 'src/test/kotlin' + } +} + +dependencies { + compile project(':core') + compile "com.github.bumptech.glide:glide:${GLIDE}" + kapt "com.github.bumptech.glide:compiler:${GLIDE}" +} + +apply from: '../artifacts.gradle' diff --git a/imagepicker/progress-proguard.txt b/imagepicker/progress-proguard.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/imagepicker/progress-proguard.txt @@ -0,0 +1 @@ + diff --git a/imagepicker/src/main/AndroidManifest.xml b/imagepicker/src/main/AndroidManifest.xml new file mode 100644 index 0000000..89dccc2 --- /dev/null +++ b/imagepicker/src/main/AndroidManifest.xml @@ -0,0 +1 @@ +<manifest package="ca.allanwang.kau.imagepicker" /> diff --git a/imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImageHelper.kt b/imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImageHelper.kt new file mode 100644 index 0000000..9b45679 --- /dev/null +++ b/imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImageHelper.kt @@ -0,0 +1,10 @@ +package ca.allanwang.kau.imagepicker + +import com.bumptech.glide.annotation.GlideModule +import com.bumptech.glide.module.LibraryGlideModule + +/** + * Created by Allan Wang on 2017-07-04. + */ +@GlideModule +class KauGlide : LibraryGlideModule()
\ No newline at end of file diff --git a/imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImageItem.kt b/imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImageItem.kt new file mode 100644 index 0000000..7b55c58 --- /dev/null +++ b/imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImageItem.kt @@ -0,0 +1,20 @@ +package ca.allanwang.kau.imagepicker + +import android.support.v7.widget.RecyclerView +import android.view.View +import android.widget.ImageView +import ca.allanwang.kau.iitems.KauIItem +import ca.allanwang.kau.utils.bindView + +/** + * Created by Allan Wang on 2017-07-04. + */ +class ImageItem(data:String) + : KauIItem<ImageItem, ImageItem.ViewHolder>(R.layout.kau_iitem_card, R.layout.kau_iitem_card, { ViewHolder(it) }) { + + + + class ViewHolder(v: View) : RecyclerView.ViewHolder(v) { + val image: ImageView by bindView(R.id.kau_image) + } +}
\ No newline at end of file diff --git a/imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImagePickerActivityBase.kt b/imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImagePickerActivityBase.kt new file mode 100644 index 0000000..216939f --- /dev/null +++ b/imagepicker/src/main/kotlin/ca/allanwang/kau/imagepicker/ImagePickerActivityBase.kt @@ -0,0 +1,39 @@ +package ca.allanwang.kau.imagepicker + +import android.graphics.drawable.Drawable +import android.os.Bundle +import android.support.v7.app.AppCompatActivity +import android.support.v7.widget.RecyclerView +import android.support.v7.widget.Toolbar +import android.transition.TransitionInflater +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import ca.allanwang.kau.R +import ca.allanwang.kau.adapters.FastItemThemedAdapter +import ca.allanwang.kau.adapters.ThemableIItemColors +import ca.allanwang.kau.adapters.ThemableIItemColorsDelegate +import ca.allanwang.kau.iitems.LibraryIItem +import ca.allanwang.kau.utils.bindView +import ca.allanwang.kau.utils.string +import ca.allanwang.kau.widgets.ElasticDragDismissFrameLayout +import com.mikepenz.aboutlibraries.Libs +import com.mikepenz.aboutlibraries.entity.Library +import com.mikepenz.fastadapter.commons.adapters.FastItemAdapter +import java.security.InvalidParameterException + +/** + * Created by Allan Wang on 2017-07-04. + * + */ +abstract class ImagePickerActivityBase : AppCompatActivity() { + + val toolbar:Toolbar by bindView(R.id.kau_toolbar) + val recycler:RecyclerView by bindView(R.id.kau_recycler) + val adapter = FastItemAdapter<ImageItem>() + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.kau_activity_image_picker) + } +}
\ No newline at end of file diff --git a/imagepicker/src/main/res/layout/kau_activity_image_picker.xml b/imagepicker/src/main/res/layout/kau_activity_image_picker.xml new file mode 100644 index 0000000..d3739dd --- /dev/null +++ b/imagepicker/src/main/res/layout/kau_activity_image_picker.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<ca.allanwang.kau.widgets.ElasticDragDismissFrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/kau_drag_dismiss_distance"> + + <android.support.v7.widget.Toolbar + android:id="@+id/kau_toolbar" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" /> + + <android.support.v7.widget.RecyclerView + android:id="@+id/kau_recycler" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="?attr/actionBarSize" /> + +</ca.allanwang.kau.widgets.ElasticDragDismissFrameLayout>
\ No newline at end of file diff --git a/imagepicker/src/main/res/layout/kau_iitem_image.xml b/imagepicker/src/main/res/layout/kau_iitem_image.xml new file mode 100644 index 0000000..824ae7b --- /dev/null +++ b/imagepicker/src/main/res/layout/kau_iitem_image.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="80dp" + android:layout_height="80dp"> + + <ImageView + android:id="@+id/kau_image" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + +</FrameLayout>
\ No newline at end of file diff --git a/sample/build.gradle b/sample/build.gradle index 3e107a7..66fc619 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -37,7 +37,8 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - compile project(':library') + compile project(':core') + compile project(':imagepicker') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index 44d9416..5a364b6 100644 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -3,6 +3,7 @@ package="ca.allanwang.kau.sample"> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <application android:name=".SampleApp" diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt index b793f40..2ba7731 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt @@ -1,12 +1,10 @@ package ca.allanwang.kau.sample import android.os.Bundle +import android.provider.MediaStore import android.support.v7.app.AppCompatActivity import ca.allanwang.kau.logging.KL -import ca.allanwang.kau.permissions.PERMISSION_ACCESS_COARSE_LOCATION -import ca.allanwang.kau.permissions.PERMISSION_ACCESS_FINE_LOCATION -import ca.allanwang.kau.permissions.kauOnRequestPermissionsResult -import ca.allanwang.kau.permissions.kauRequestPermissions +import ca.allanwang.kau.permissions.* import ca.allanwang.kau.utils.fullLinearRecycler import ca.allanwang.kau.utils.startActivitySlideOut import ca.allanwang.kau.utils.toast @@ -27,8 +25,8 @@ class AnimActivity : AppCompatActivity() { adapter.add(listOf( PERMISSION_ACCESS_COARSE_LOCATION, PERMISSION_ACCESS_FINE_LOCATION - ).map{ PermissionCheckbox(it) }) - adapter.withOnClickListener { _, _, item, _ -> + ).map { PermissionCheckbox(it) }) + val withOnClickListener = adapter.withOnClickListener { _, _, item, _ -> KL.d("Perm Click") kauRequestPermissions(item.permission) { granted, deniedPerm -> @@ -37,6 +35,18 @@ class AnimActivity : AppCompatActivity() { } true } + kauRequestPermissions(PERMISSION_READ_EXTERNAL_STORAGE) { + granted, deniedPerm -> + if (!granted) return@kauRequestPermissions + val cursor = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, + arrayOf(MediaStore.Images.Media._ID, MediaStore.Images.Media.DATA, MediaStore.Images.Media.DISPLAY_NAME, MediaStore.Images.Media.DATE_MODIFIED), + null, null, MediaStore.Images.Media.DEFAULT_SORT_ORDER, null) + while (!cursor.isLast) { + cursor.moveToNext() + KL.d(cursor.getString(1)) + } + cursor.close() + } } override fun onBackPressed() { diff --git a/settings.gradle b/settings.gradle index 52baf7e..5569232 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':sample', ':library' +include ':sample', ':core', ':imagepicker' |