diff --git a/android/_jar/android-bottom-sheet-1.4.6.jar b/android/_jar/android-bottom-sheet-1.4.6.jar deleted file mode 100644 index f63f910..0000000 Binary files a/android/_jar/android-bottom-sheet-1.4.6.jar and /dev/null differ diff --git a/android/build.gradle b/android/build.gradle index d13ec7a..2e5e5d8 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,17 +1,7 @@ -apply plugin: 'java' - repositories { - google() - jcenter() mavenCentral() } dependencies { - compile 'com.github.michael-rapp:android-bottom-sheet:1.4.6' -} - -task getDeps(type: Copy) { - from sourceSets.main.runtimeClasspath - exclude 'support-*' - into 'lib/' + implementation 'com.github.michael-rapp:android-bottom-sheet:2.0.0' } diff --git a/android/lib/android-bottom-sheet-1.4.6.aar b/android/lib/android-bottom-sheet-1.4.6.aar deleted file mode 100644 index 49e8870..0000000 Binary files a/android/lib/android-bottom-sheet-1.4.6.aar and /dev/null differ diff --git a/android/lib/android-util-1.20.2.aar b/android/lib/android-util-1.20.2.aar deleted file mode 100644 index 89517a3..0000000 Binary files a/android/lib/android-util-1.20.2.aar and /dev/null differ diff --git a/android/manifest b/android/manifest index c34f8b8..da005c0 100644 --- a/android/manifest +++ b/android/manifest @@ -2,9 +2,9 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 1.0.1 +version: 2.0.0 apiversion: 4 -architectures: arm64-v8a armeabi-v7a x86 +architectures: arm64-v8a armeabi-v7a x86 x86_64 description: titanium-android-bottom-sheet author: Hans Knöchel license: Apache 2 @@ -15,4 +15,4 @@ name: titanium-android-bottom-sheet moduleid: ti.bottomsheet guid: 04a8e48b-0432-474b-8596-dca1256b314b platform: android -minsdk: 7.0.0 +minsdk: 9.0.0 diff --git a/android/src/ti/bottomsheet/OptionDialogProxy.java b/android/src/ti/bottomsheet/OptionDialogProxy.java index 2118c07..e965728 100644 --- a/android/src/ti/bottomsheet/OptionDialogProxy.java +++ b/android/src/ti/bottomsheet/OptionDialogProxy.java @@ -54,7 +54,15 @@ public void handleCreationDict(KrollDict args) destructive = args.optInt("destructive", -1); } - // Methods + @Kroll.setProperty + public void setOptions(Object[] value){ + options = TiConvert.toStringArray(value); + } + + @Kroll.getProperty + public String[] setOptions(){ + return options; + } @Kroll.method public void show() {