Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/android/images/res-hdpi/no_media.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/android/images/res-hdpi/overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/android/images/res-hdpi/warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/android/images/res-xhdpi/no_media.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/android/images/res-xhdpi/overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/android/images/res-xhdpi/warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/android/images/res-xxhdpi/no_media.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/android/images/res-xxhdpi/overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/android/images/res-xxhdpi/warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/iphone/images/no_media.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/iphone/images/no_media@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/iphone/images/no_media@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/iphone/images/overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/iphone/images/overlay@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/iphone/images/overlay@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/iphone/images/warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/iphone/images/warning@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/iphone/images/warning@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion example/tiapp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
<target device="mobileweb">false</target>
<target device="tizen">false</target>
</deployment-targets>
<sdk-version>3.5.0.GA</sdk-version>
<sdk-version>6.0.0.GA</sdk-version>
</ti:app>
16 changes: 16 additions & 0 deletions module/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="android/src"/>
<classpathentry kind="src" path="android/build/.apt_generated"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="/Users/InGrowth/Library/android-sdk-macosx/platforms/android-23/android.jar"/>
<classpathentry kind="lib" path="/Users/ingrowth/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/titanium.jar"/>
<classpathentry kind="lib" path="/Users/ingrowth/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/kroll-common.jar"/>
<classpathentry kind="lib" path="/Users/ingrowth/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/kroll-apt.jar"/>
<classpathentry kind="src" path=".apt_generated">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="bin"/>
</classpath>
6 changes: 6 additions & 0 deletions module/.project
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>com.appcelerator.titanium.mobile.module.nature</nature>
<nature>com.aptana.projects.webnature</nature>
</natures>
Expand Down
16 changes: 0 additions & 16 deletions module/android/.classpath

This file was deleted.

8 changes: 4 additions & 4 deletions module/android/build.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
titanium.platform=/Users/nils/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.GA/android
android.platform=/opt/android-sdk/platforms/android-19
google.apis=/opt/android-sdk/add-ons/addon-google_apis-google-19/
android.ndk=/opt/android-ndk/
titanium.platform=/Users/InGrowth/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android
android.platform=/Users/InGrowth/Library/android-sdk-macosx/platforms/android-23
google.apis=/Users/InGrowth/Library/android-sdk-macosx/add-ons/addon-google_apis-google-23
android.ndk=/Users/InGrowth/Library/android-sdk-macosx/ndk-bundle
8 changes: 8 additions & 0 deletions module/android/java-sources.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"/Users/ingrowth/Documents/Projects/TiMediaPicker/module/android/src/ti/mediapicker/TiMediaPickerModule.java"
"/Users/ingrowth/Documents/Projects/TiMediaPicker/module/android/build/generated/java/ti/mediapicker/TiMediaPickerBootstrap.java"
"/Users/ingrowth/Documents/Projects/TiMediaPicker/module/android/build/generated/r/android/support/compat/R.java"
"/Users/ingrowth/Documents/Projects/TiMediaPicker/module/android/build/generated/r/android/support/design/R.java"
"/Users/ingrowth/Documents/Projects/TiMediaPicker/module/android/build/generated/r/android/support/v7/appcompat/R.java"
"/Users/ingrowth/Documents/Projects/TiMediaPicker/module/android/build/generated/r/android/support/v7/cardview/R.java"
"/Users/ingrowth/Documents/Projects/TiMediaPicker/module/android/build/generated/r/ti/mediapicker/R.java"
"/Users/ingrowth/Documents/Projects/TiMediaPicker/module/android/build/generated/r/ti/modules/titanium/ui/R.java"
9 changes: 5 additions & 4 deletions module/android/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 1.0.4
apiversion: 2
version: 2.0.0
apiversion: 4
description: -
author: Nils (github.com/lowb1rd)
license: -
copyright: 2014 Nils
architectures: arm64-v8a armeabi-v7a x86

# these should not be edited
name: TiMediaPicker
name: timediapicker
moduleid: ti.mediapicker
guid: eebf3061-a7c1-4f22-b665-87ea9771c0b0
platform: android
minsdk: 3.5.0.GA
minsdk: 7.0.0
10 changes: 5 additions & 5 deletions module/android/src/ti/mediapicker/TiMediaPickerModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public void getAssetGroups(KrollDict options)
KrollDict dd = new KrollDict();

dd.put("items", d);
successCallback.callAsync((KrollObject)successCallback,dd);
successCallback.callAsync(getKrollObject(), dd);
}
@Kroll.method
public void getPhotos(KrollDict options)
Expand Down Expand Up @@ -224,7 +224,7 @@ public void getPhotos(KrollDict options)
KrollDict ddd = new KrollDict();
Object[] o = dd.toArray();
ddd.put("items", o);
successCallback.callAsync((KrollObject)successCallback,ddd);
successCallback.callAsync(getKrollObject(), ddd);
}

@Kroll.method
Expand Down Expand Up @@ -254,7 +254,7 @@ public void getThumb(KrollDict options) {

if (cursor == null || cursor.getCount() == 0) {
d.put("created", 1);
//createCallback.callAsync((KrollObject)createCallback,new KrollDict());
//createCallback.callAsync(getKrollObject(), new KrollDict());

// create thumb
Bitmap thumb = MediaStore.Images.Thumbnails.getThumbnail(activity.getContentResolver(), id, MediaStore.Images.Thumbnails.MINI_KIND, null);
Expand All @@ -278,7 +278,7 @@ public void getThumb(KrollDict options) {
}

//return d;
successCallback.callAsync((KrollObject)successCallback,d);
successCallback.callAsync(getKrollObject(), d);
}


Expand Down Expand Up @@ -337,6 +337,6 @@ public void getImageByURL(KrollDict options, KrollDict payload) {
long length = file.length();
d.put("size", length);

successCallback.callAsync((KrollObject)successCallback,d);
successCallback.callAsync(getKrollObject() ,d);
}
}
5 changes: 5 additions & 0 deletions module/android/timodule.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
<iphone>
</iphone>
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.apps.photos.permission.GOOGLE_PHOTOS"/>
</manifest>
</android>
<mobileweb>
</mobileweb>
Expand Down
Binary file removed ti.mediapicker-android-1.0.2.zip
Binary file not shown.
Binary file added ti.mediapicker-android-1.0.4.zip
Binary file not shown.
Binary file added ti.mediapicker-android-1.1.4.zip
Binary file not shown.
Binary file added ti.mediapicker-android-2.0.0.zip
Binary file not shown.