diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/Contents.json b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/Contents.json index 19882d568..537008f60 100644 --- a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/Contents.json +++ b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/Contents.json @@ -1,48 +1,153 @@ { "images" : [ { - "idiom" : "iphone", "size" : "20x20", + "idiom" : "iphone", + "filename" : "icon-20@2x.png", "scale" : "2x" }, { - "idiom" : "iphone", "size" : "20x20", + "idiom" : "iphone", + "filename" : "icon-20@3x.png", "scale" : "3x" }, { - "idiom" : "iphone", "size" : "29x29", - "scale" : "2x" + "idiom" : "iphone", + "filename" : "icon-29@1x.png", + "scale" : "1x" }, { - "idiom" : "iphone", "size" : "29x29", - "scale" : "3x" - }, - { "idiom" : "iphone", - "size" : "40x40", + "filename" : "icon-29@2x.png", "scale" : "2x" }, { + "size" : "29x29", "idiom" : "iphone", - "size" : "40x40", + "filename" : "icon-29@3x.png", "scale" : "3x" }, { + "size" : "40x40", "idiom" : "iphone", - "size" : "60x60", + "filename" : "icon-40@2x.png", "scale" : "2x" }, { + "size" : "40x40", "idiom" : "iphone", - "size" : "60x60", + "filename" : "icon-40@3x.png", "scale" : "3x" }, { - "idiom" : "ios-marketing", + "size" : "57x57", + "idiom" : "iphone", + "filename" : "icon-57@1x.png", + "scale" : "1x" + }, + { + "size" : "57x57", + "idiom" : "iphone", + "filename" : "icon-57@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "icon-60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "icon-60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "icon-20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "icon-20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "icon-29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "icon-29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "icon-40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "icon-40@2x.png", + "scale" : "2x" + }, + { + "size" : "50x50", + "idiom" : "ipad", + "filename" : "icon-50@1x.png", + "scale" : "1x" + }, + { + "size" : "50x50", + "idiom" : "ipad", + "filename" : "icon-50@2x.png", + "scale" : "2x" + }, + { + "size" : "72x72", + "idiom" : "ipad", + "filename" : "icon-72@1x.png", + "scale" : "1x" + }, + { + "size" : "72x72", + "idiom" : "ipad", + "filename" : "icon-72@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "icon-76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "icon-76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "icon-83.5@2x.png", + "scale" : "2x" + }, + { "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "icon-1024@1x.png", "scale" : "1x" } ], @@ -50,4 +155,4 @@ "version" : 1, "author" : "xcode" } -} \ No newline at end of file +} diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-1024@1x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-1024@1x.png new file mode 100644 index 000000000..bfc82522c Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-1024@1x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-20@1x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-20@1x.png new file mode 100644 index 000000000..0fa7dd593 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-20@1x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-20@2x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-20@2x.png new file mode 100644 index 000000000..14e55cb02 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-20@2x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-20@3x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-20@3x.png new file mode 100644 index 000000000..0288b0573 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-20@3x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-29@1x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-29@1x.png new file mode 100644 index 000000000..7e4004e4b Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-29@1x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-29@2x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-29@2x.png new file mode 100644 index 000000000..0914c3b25 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-29@2x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-29@3x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-29@3x.png new file mode 100644 index 000000000..488226630 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-29@3x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-40@1x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-40@1x.png new file mode 100644 index 000000000..14e55cb02 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-40@1x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-40@2x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-40@2x.png new file mode 100644 index 000000000..c8cf4cdd9 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-40@2x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-40@3x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-40@3x.png new file mode 100644 index 000000000..5c835f88f Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-40@3x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-50@1x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-50@1x.png new file mode 100644 index 000000000..8e7bf6dfa Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-50@1x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-50@2x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-50@2x.png new file mode 100644 index 000000000..414fe6403 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-50@2x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-57@1x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-57@1x.png new file mode 100644 index 000000000..512cf2318 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-57@1x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-57@2x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-57@2x.png new file mode 100644 index 000000000..c000752da Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-57@2x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-60@2x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-60@2x.png new file mode 100644 index 000000000..5c835f88f Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-60@2x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-60@3x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-60@3x.png new file mode 100644 index 000000000..6fdd456f3 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-60@3x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-72@1x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-72@1x.png new file mode 100644 index 000000000..6c0d46aa4 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-72@1x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-72@2x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-72@2x.png new file mode 100644 index 000000000..6ccfff8db Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-72@2x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-76@1x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-76@1x.png new file mode 100644 index 000000000..b54db07ed Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-76@1x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-76@2x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-76@2x.png new file mode 100644 index 000000000..59729e1e3 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-76@2x.png differ diff --git a/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-83.5@2x.png b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-83.5@2x.png new file mode 100644 index 000000000..ad21a9111 Binary files /dev/null and b/ReactNativeClient/ios/Joplin/Images.xcassets/AppIcon.appiconset/icon-83.5@2x.png differ diff --git a/ReactNativeClient/ios/build-ios.sh b/ReactNativeClient/ios/build-ios.sh new file mode 100755 index 000000000..a6771bfc6 --- /dev/null +++ b/ReactNativeClient/ios/build-ios.sh @@ -0,0 +1,2 @@ +#!/bin/bash +xcodebuild -project Joplin.xcodeproj -configuration Release -scheme Joplin -destination id=3AF6C788-B6ED-41DD-85F0-32D719DB0DBE -derivedDataPath build diff --git a/ReactNativeClient/lib/components/screens/note.js b/ReactNativeClient/lib/components/screens/note.js index 55966faae..5735f026b 100644 --- a/ReactNativeClient/lib/components/screens/note.js +++ b/ReactNativeClient/lib/components/screens/note.js @@ -352,7 +352,9 @@ class NoteScreenComponent extends BaseScreenComponent { // The file attachement modules only work in Android >= 5 (Version 21) // https://github.com/react-community/react-native-image-picker/issues/606 - if (Platform.Version >= 21) { + let canAttachPicture = true; + if (Platform.OS === 'android' && Platform.Version < 21) canAttachPicture = false; + if (canAttachPicture) { output.push({ title: _('Attach image'), onPress: () => { this.attachImage_onPress(); } }); output.push({ title: _('Attach any other file'), onPress: () => { this.attachFile_onPress(); } }); }