diff --git a/README.md b/README.md index 04b3780..715fae3 100644 --- a/README.md +++ b/README.md @@ -103,16 +103,15 @@ About the enabled `contentMode`, you can learn more about this [here](https://de | Property | Description | Note | | ---------- | ---------- | ----- | -| contentMode | Set the ImageView content mode | Supported contentmodes are listed in a next section. | +| contentMode | Set the ImageView content mode | Supported content modes are listed in a [next section](https://github.com/AndreaVitale/av.imageview#supported-content-modes). | | defaultImage | __Local__ image to display when the image download is in progress | | | brokenLinkImage | __Local__ image to display when the given link doesn't work or the image doesn't exists | | | loadingIndicator | Enable or disable the activity indicator when the download is in progress | `true` by default | -| enableMemoryCache | Enable or disable the memory cache mechanism | `true` by default and *Android only* | -| clipsToBound | More details [here](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/#//apple_ref/occ/instp/UIView/clipsToBounds) | iOS only | | requestHeader | An object used to define extra http request header fields | | -| rounded | Enable or disable the circle transformation that automatically render the image as a perfect circle | Android only | | timeout | Set timeout for requests | | | handleCookies | Enable cookie handling for remote images | | +| enableMemoryCache | Enable or disable the memory cache mechanism | `true` by default and *Android only*, for iOS have a look to module properties [here](https://github.com/AndreaVitale/av.imageview#global-properties-ios-only) | +| rounded | Enable or disable the circle transformation that automatically render the image as a perfect circle | Android only | ### Extra methods diff --git a/android/android/build.properties b/android/android/build.properties index 97d630c..8ed660d 100644 --- a/android/android/build.properties +++ b/android/android/build.properties @@ -1,4 +1,4 @@ -titanium.platform=/Users/Andrea/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.GA/android -android.platform=/Volumes/Data/Development/Android/android-sdk-macosx/platforms/android-23 -android.ndk=/Volumes/Data/Development/Android/android-ndk-r10e-macosx -google.apis=/Volumes/Data/Development/Android/android-sdk-macosx/add-ons/addon-google_apis-google-23 +titanium.platform=/Users/Andrea/Library/Application Support/Titanium/mobilesdk/osx/6.3.0.GA/android +android.platform=/Volumes/Data/Development/Android/SDK/platforms/android-23 +android.ndk=/Volumes/Data/Development/Android/android-ndk-r11c-macosx +google.apis=/Volumes/Data/Development/Android/SDK/add-ons/addon-google_apis-google-23 diff --git a/android/android/libs/arm64-v8a/libav.imageview.so b/android/android/libs/arm64-v8a/libav.imageview.so deleted file mode 100644 index af4f645..0000000 Binary files a/android/android/libs/arm64-v8a/libav.imageview.so and /dev/null differ diff --git a/android/android/libs/armeabi-v7a/libav.imageview.so b/android/android/libs/armeabi-v7a/libav.imageview.so index 11b4bca..96f5389 100644 Binary files a/android/android/libs/armeabi-v7a/libav.imageview.so and b/android/android/libs/armeabi-v7a/libav.imageview.so differ diff --git a/android/android/libs/x86/libav.imageview.so b/android/android/libs/x86/libav.imageview.so index 93ca8a0..827e9c1 100644 Binary files a/android/android/libs/x86/libav.imageview.so and b/android/android/libs/x86/libav.imageview.so differ diff --git a/android/android/manifest b/android/android/manifest index 0589be3..678bc50 100644 --- a/android/android/manifest +++ b/android/android/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 3.0.0 +version: 3.1.0 apiversion: 4 architectures: arm64-v8a armeabi-v7a x86 description: av.imageview diff --git a/android/android/src/av/imageview/AVImageView.java b/android/android/src/av/imageview/AVImageView.java index 31fcdae..5ca4af4 100644 --- a/android/android/src/av/imageview/AVImageView.java +++ b/android/android/src/av/imageview/AVImageView.java @@ -172,8 +172,8 @@ public void applyPropertyChanges(String key, Object value) { .readTimeout(TiConvert.toInt(value), TimeUnit.MILLISECONDS) .build(); } - if (d.containsKey("handleCookies")) - this.setHandleCookies(d.getBoolean("handleCookies")); + if (key.equals("handleCookies")) + this.setHandleCookies(TiConvert.toBoolean(value)); } @Override diff --git a/ios/iphone/.gitignore b/ios/iphone/.gitignore index c0f9e62..7c61402 100644 --- a/ios/iphone/.gitignore +++ b/ios/iphone/.gitignore @@ -18,3 +18,4 @@ build.properties xcuserdata *.xcuserstate *.xcuserdata* +*.sh diff --git a/ios/iphone/av.imageview-iphone-1.1.0.zip b/ios/iphone/av.imageview-iphone-1.1.0.zip deleted file mode 100644 index 1303327..0000000 Binary files a/ios/iphone/av.imageview-iphone-1.1.0.zip and /dev/null differ diff --git a/ios/iphone/manifest b/ios/iphone/manifest index 11dac5c..c61f4a9 100644 --- a/ios/iphone/manifest +++ b/ios/iphone/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 1.3.0 +version: 1.4.0 apiversion: 2 architectures: armv7 arm64 i386 x86_64 description: andreavitale-imageview diff --git a/releases/av.imageview-android-2.3.0.zip b/releases/av.imageview-android-2.3.0.zip deleted file mode 100644 index 5e93733..0000000 Binary files a/releases/av.imageview-android-2.3.0.zip and /dev/null differ diff --git a/releases/av.imageview-android-2.4.0.zip b/releases/av.imageview-android-2.4.0.zip new file mode 100644 index 0000000..faa6d45 Binary files /dev/null and b/releases/av.imageview-android-2.4.0.zip differ diff --git a/releases/av.imageview-android-3.0.0.zip b/releases/av.imageview-android-3.0.0.zip deleted file mode 100644 index cdc3f5b..0000000 Binary files a/releases/av.imageview-android-3.0.0.zip and /dev/null differ diff --git a/releases/av.imageview-android-3.1.0.zip b/releases/av.imageview-android-3.1.0.zip new file mode 100644 index 0000000..0476ab0 Binary files /dev/null and b/releases/av.imageview-android-3.1.0.zip differ diff --git a/releases/av.imageview-iphone-1.3.0.zip b/releases/av.imageview-iphone-1.4.0.zip similarity index 79% rename from releases/av.imageview-iphone-1.3.0.zip rename to releases/av.imageview-iphone-1.4.0.zip index f009f95..1d4ed11 100644 Binary files a/releases/av.imageview-iphone-1.3.0.zip and b/releases/av.imageview-iphone-1.4.0.zip differ