diff --git a/GenericPickerManager/GenericPickerManager.xcodeproj/project.pbxproj b/GenericPickerManager/GenericPickerManager.xcodeproj/project.pbxproj index 13e7679..b2c6bee 100644 --- a/GenericPickerManager/GenericPickerManager.xcodeproj/project.pbxproj +++ b/GenericPickerManager/GenericPickerManager.xcodeproj/project.pbxproj @@ -6,6 +6,20 @@ objectVersion = 46; objects = { +/* Begin PBXAggregateTarget section */ + C2BCDFB618D45A2C00A4E86B /* MediaPickerManagerBundle */ = { + isa = PBXAggregateTarget; + buildConfigurationList = C2BCDFB718D45A2C00A4E86B /* Build configuration list for PBXAggregateTarget "MediaPickerManagerBundle" */; + buildPhases = ( + C2BCDFBA18D45A6100A4E86B /* ShellScript */, + ); + dependencies = ( + ); + name = MediaPickerManagerBundle; + productName = MediaPickerManagerBundle; + }; +/* End PBXAggregateTarget section */ + /* Begin PBXBuildFile section */ C205EF1B17BD650F0023B227 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C205EF1A17BD650F0023B227 /* UIKit.framework */; }; C205EF1D17BD650F0023B227 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C205EF1C17BD650F0023B227 /* Foundation.framework */; }; @@ -20,6 +34,9 @@ C205EF3717BD650F0023B227 /* JMOViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = C205EF3517BD650F0023B227 /* JMOViewController_iPhone.xib */; }; C205EF3A17BD650F0023B227 /* JMOViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = C205EF3817BD650F0023B227 /* JMOViewController_iPad.xib */; }; C205EF4317BD65620023B227 /* MediaPickerManager.m in Sources */ = {isa = PBXBuildFile; fileRef = C205EF4217BD65620023B227 /* MediaPickerManager.m */; }; + C2BCDFAC18D450F400A4E86B /* MediaPickerManager.strings in Resources */ = {isa = PBXBuildFile; fileRef = C2BCDFAE18D450F400A4E86B /* MediaPickerManager.strings */; }; + C2BCDFB518D4561800A4E86B /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C2BCDFB418D4561700A4E86B /* MobileCoreServices.framework */; }; + C2BCDFBC18D45BA400A4E86B /* MediaPickerManager.bundle in Resources */ = {isa = PBXBuildFile; fileRef = C2BCDFBB18D45BA400A4E86B /* MediaPickerManager.bundle */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -42,6 +59,12 @@ C205EF3917BD650F0023B227 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/JMOViewController_iPad.xib; sourceTree = ""; }; C205EF4117BD65620023B227 /* MediaPickerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MediaPickerManager.h; sourceTree = ""; }; C205EF4217BD65620023B227 /* MediaPickerManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MediaPickerManager.m; sourceTree = ""; }; + C2BCDFAD18D450F400A4E86B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/MediaPickerManager.strings; sourceTree = ""; }; + C2BCDFAF18D4511900A4E86B /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/MediaPickerManager.strings; sourceTree = ""; }; + C2BCDFB018D455F100A4E86B /* ImageIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ImageIO.framework; path = System/Library/Frameworks/ImageIO.framework; sourceTree = SDKROOT; }; + C2BCDFB218D455FC00A4E86B /* CoreImage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreImage.framework; path = System/Library/Frameworks/CoreImage.framework; sourceTree = SDKROOT; }; + C2BCDFB418D4561700A4E86B /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; + C2BCDFBB18D45BA400A4E86B /* MediaPickerManager.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = MediaPickerManager.bundle; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -49,6 +72,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + C2BCDFB518D4561800A4E86B /* MobileCoreServices.framework in Frameworks */, C205EF1B17BD650F0023B227 /* UIKit.framework in Frameworks */, C205EF1D17BD650F0023B227 /* Foundation.framework in Frameworks */, C205EF1F17BD650F0023B227 /* CoreGraphics.framework in Frameworks */, @@ -78,6 +102,9 @@ C205EF1917BD650F0023B227 /* Frameworks */ = { isa = PBXGroup; children = ( + C2BCDFB418D4561700A4E86B /* MobileCoreServices.framework */, + C2BCDFB218D455FC00A4E86B /* CoreImage.framework */, + C2BCDFB018D455F100A4E86B /* ImageIO.framework */, C205EF4017BD65620023B227 /* MediaPickerManager */, C205EF1A17BD650F0023B227 /* UIKit.framework */, C205EF1C17BD650F0023B227 /* Foundation.framework */, @@ -117,6 +144,8 @@ C205EF4017BD65620023B227 /* MediaPickerManager */ = { isa = PBXGroup; children = ( + C2BCDFBB18D45BA400A4E86B /* MediaPickerManager.bundle */, + C2BCDFAE18D450F400A4E86B /* MediaPickerManager.strings */, C205EF4117BD65620023B227 /* MediaPickerManager.h */, C205EF4217BD65620023B227 /* MediaPickerManager.m */, ); @@ -159,6 +188,7 @@ hasScannedForEncodings = 0; knownRegions = ( en, + fr, ); mainGroup = C205EF0E17BD650F0023B227; productRefGroup = C205EF1817BD650F0023B227 /* Products */; @@ -166,6 +196,7 @@ projectRoot = ""; targets = ( C205EF1617BD650F0023B227 /* GenericPickerManager */, + C2BCDFB618D45A2C00A4E86B /* MediaPickerManagerBundle */, ); }; /* End PBXProject section */ @@ -177,7 +208,9 @@ files = ( C205EF2517BD650F0023B227 /* InfoPlist.strings in Resources */, C205EF2D17BD650F0023B227 /* Default.png in Resources */, + C2BCDFBC18D45BA400A4E86B /* MediaPickerManager.bundle in Resources */, C205EF2F17BD650F0023B227 /* Default@2x.png in Resources */, + C2BCDFAC18D450F400A4E86B /* MediaPickerManager.strings in Resources */, C205EF3117BD650F0023B227 /* Default-568h@2x.png in Resources */, C205EF3717BD650F0023B227 /* JMOViewController_iPhone.xib in Resources */, C205EF3A17BD650F0023B227 /* JMOViewController_iPad.xib in Resources */, @@ -186,6 +219,22 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + C2BCDFBA18D45A6100A4E86B /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "#!/bin/bash\necho \"Building bundle.\"\nif [ -d ./MediaPickerManager/MediaPickerManager.bundle ]; then\n rm ./MediaPickerManager/MediaPickerManager.bundle\nelse\n mkdir ./MediaPickerManager/MediaPickerManager.bundle\nfi\ncp -r ./MediaPickerManager/en.lproj ./MediaPickerManager/MediaPickerManager.bundle\ncp -r ./MediaPickerManager/fr.lproj ./MediaPickerManager/MediaPickerManager.bundle"; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ C205EF1317BD650F0023B227 /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -225,6 +274,15 @@ name = JMOViewController_iPad.xib; sourceTree = ""; }; + C2BCDFAE18D450F400A4E86B /* MediaPickerManager.strings */ = { + isa = PBXVariantGroup; + children = ( + C2BCDFAD18D450F400A4E86B /* en */, + C2BCDFAF18D4511900A4E86B /* fr */, + ); + name = MediaPickerManager.strings; + sourceTree = ""; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ @@ -308,6 +366,20 @@ }; name = Release; }; + C2BCDFB818D45A2C00A4E86B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + C2BCDFB918D45A2C00A4E86B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -327,6 +399,15 @@ C205EF3F17BD650F0023B227 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C2BCDFB718D45A2C00A4E86B /* Build configuration list for PBXAggregateTarget "MediaPickerManagerBundle" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C2BCDFB818D45A2C00A4E86B /* Debug */, + C2BCDFB918D45A2C00A4E86B /* Release */, + ); + defaultConfigurationIsVisible = 0; }; /* End XCConfigurationList section */ }; diff --git a/GenericPickerManager/GenericPickerManager.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/GenericPickerManager/GenericPickerManager.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..c910c40 --- /dev/null +++ b/GenericPickerManager/GenericPickerManager.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/GenericPickerManager/GenericPickerManager.xcodeproj/project.xcworkspace/xcshareddata/GenericPickerManager.xccheckout b/GenericPickerManager/GenericPickerManager.xcodeproj/project.xcworkspace/xcshareddata/GenericPickerManager.xccheckout new file mode 100644 index 0000000..8e4b482 --- /dev/null +++ b/GenericPickerManager/GenericPickerManager.xcodeproj/project.xcworkspace/xcshareddata/GenericPickerManager.xccheckout @@ -0,0 +1,41 @@ + + + + + IDESourceControlProjectFavoriteDictionaryKey + + IDESourceControlProjectIdentifier + EDAF04B4-837D-41EC-86EC-A879A364A415 + IDESourceControlProjectName + GenericPickerManager + IDESourceControlProjectOriginsDictionary + + EA19B65B-F31D-4B1E-8343-BB684E7B679D + https://github.com/leverdeterre/MediaPickerManager.git + + IDESourceControlProjectPath + GenericPickerManager/GenericPickerManager.xcodeproj/project.xcworkspace + IDESourceControlProjectRelativeInstallPathDictionary + + EA19B65B-F31D-4B1E-8343-BB684E7B679D + ../../.. + + IDESourceControlProjectURL + https://github.com/leverdeterre/MediaPickerManager.git + IDESourceControlProjectVersion + 110 + IDESourceControlProjectWCCIdentifier + EA19B65B-F31D-4B1E-8343-BB684E7B679D + IDESourceControlProjectWCConfigurations + + + IDESourceControlRepositoryExtensionIdentifierKey + public.vcs.git + IDESourceControlWCCIdentifierKey + EA19B65B-F31D-4B1E-8343-BB684E7B679D + IDESourceControlWCCName + MediaPickerManager + + + + diff --git a/GenericPickerManager/GenericPickerManager.xcodeproj/project.xcworkspace/xcuserdata/jeromemorissard.xcuserdatad/UserInterfaceState.xcuserstate b/GenericPickerManager/GenericPickerManager.xcodeproj/project.xcworkspace/xcuserdata/jeromemorissard.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..f78eb50 Binary files /dev/null and b/GenericPickerManager/GenericPickerManager.xcodeproj/project.xcworkspace/xcuserdata/jeromemorissard.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..fe2b454 --- /dev/null +++ b/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,5 @@ + + + diff --git a/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcschemes/GenericPickerManager.xcscheme b/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcschemes/GenericPickerManager.xcscheme new file mode 100644 index 0000000..4d8d71a --- /dev/null +++ b/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcschemes/GenericPickerManager.xcscheme @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcschemes/MediaPickerManagerBundle.xcscheme b/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcschemes/MediaPickerManagerBundle.xcscheme new file mode 100644 index 0000000..e02b9d7 --- /dev/null +++ b/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcschemes/MediaPickerManagerBundle.xcscheme @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcschemes/xcschememanagement.plist b/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..1b728d9 --- /dev/null +++ b/GenericPickerManager/GenericPickerManager.xcodeproj/xcuserdata/jeromemorissard.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,32 @@ + + + + + SchemeUserState + + GenericPickerManager.xcscheme + + orderHint + 0 + + MediaPickerManagerBundle.xcscheme + + orderHint + 1 + + + SuppressBuildableAutocreation + + C205EF1617BD650F0023B227 + + primary + + + C2BCDFB618D45A2C00A4E86B + + primary + + + + + diff --git a/GenericPickerManager/GenericPickerManager/JMOViewController.m b/GenericPickerManager/GenericPickerManager/JMOViewController.m index dced276..3e8d48e 100644 --- a/GenericPickerManager/GenericPickerManager/JMOViewController.m +++ b/GenericPickerManager/GenericPickerManager/JMOViewController.m @@ -27,26 +27,28 @@ - (void)didReceiveMemoryWarning } -- (IBAction)photoSelected:(id)sender { +- (IBAction)photoSelected:(id)sender +{ [MediaPickerManager sharedInstance].type = JMMediaTypePhotos; [MediaPickerManager sharedInstance].delegate = self; - [[MediaPickerManager sharedInstance] photoSelected:sender]; + [[MediaPickerManager sharedInstance] presentPhotosFrom:sender]; NSLog(@"[MediaPickerManager sharedInstance] -> %@",[MediaPickerManager sharedInstance]); } -- (IBAction)videoSelected:(id)sender { +- (IBAction)videoSelected:(id)sender +{ [MediaPickerManager sharedInstance].type = JMMediaTypeVideos; [MediaPickerManager sharedInstance].delegate = self; - [[MediaPickerManager sharedInstance] videoSelected:sender]; + [[MediaPickerManager sharedInstance] presentVideosFrom:sender]; NSLog(@"[MediaPickerManager sharedInstance] -> %@",[MediaPickerManager sharedInstance]); } #pragma marJMMMediaPickerManagerDelegate -- (void)bkImagePickerControllerDidFinishPickingMediaWithInfo:(NSDictionary *)info +- (void)imagePickerControllerDidFinishPickingMediaWithInfo:(NSDictionary *)info { NSLog(@"%s",__FUNCTION__); diff --git a/GenericPickerManager/MediaPickerManager/MediaPickerManager.bundle/en.lproj/MediaPickerManager.strings b/GenericPickerManager/MediaPickerManager/MediaPickerManager.bundle/en.lproj/MediaPickerManager.strings new file mode 100644 index 0000000..f60a4d9 --- /dev/null +++ b/GenericPickerManager/MediaPickerManager/MediaPickerManager.bundle/en.lproj/MediaPickerManager.strings @@ -0,0 +1,20 @@ + +/* + MediaPickerManager.strings + GenericPickerManager + + Created by Jerome Morissard on 3/15/14. + Copyright (c) 2014 Jerome Morissard. All rights reserved. +*/ + +"MediaPickerManager.cancel" = "Cancel"; +"MediaPickerManager.close" = "Close"; +"MediaPickerManager.take.photo" = "Take a picture"; +"MediaPickerManager.from.library" = "From the galery"; +"MediaPickerManager.take.video" = "Take a video"; + +//Erreur +"MediaPickerManager.video.error" = "This device can't take videos"; +"MediaPickerManager.photo.error" = "This device can't take pictures"; +"MediaPickerManager.gallery.error" = "This device doesn't has a gelery"; +"MediaPickerManager.error.title" = "Error"; \ No newline at end of file diff --git a/GenericPickerManager/MediaPickerManager/MediaPickerManager.bundle/fr.lproj/MediaPickerManager.strings b/GenericPickerManager/MediaPickerManager/MediaPickerManager.bundle/fr.lproj/MediaPickerManager.strings new file mode 100644 index 0000000..7a2d379 --- /dev/null +++ b/GenericPickerManager/MediaPickerManager/MediaPickerManager.bundle/fr.lproj/MediaPickerManager.strings @@ -0,0 +1,19 @@ +/* + MediaPickerManager.strings + GenericPickerManager + + Created by Jerome Morissard on 3/15/14. + Copyright (c) 2014 Jerome Morissard. All rights reserved. +*/ + +"MediaPickerManager.cancel" = "Annuler"; +"MediaPickerManager.close" = "Fermer"; +"MediaPickerManager.take.photo" = "Prendre photo"; +"MediaPickerManager.from.library" = "De la bibliothèque"; +"MediaPickerManager.take.video" = "Prendre une vidéo"; + +//Erreur +"MediaPickerManager.video.error" = "Cet appareil ne peut pas prendre de vidéos"; +"MediaPickerManager.photo.error" = "Cet appareil ne peut pas prendre de photos"; +"MediaPickerManager.gallery.error" = "Cet appareil n'a pas de galerie"; +"MediaPickerManager.error.title" = "Erreur"; \ No newline at end of file diff --git a/GenericPickerManager/MediaPickerManager/MediaPickerManager.h b/GenericPickerManager/MediaPickerManager/MediaPickerManager.h index dea4f41..9602c04 100755 --- a/GenericPickerManager/MediaPickerManager/MediaPickerManager.h +++ b/GenericPickerManager/MediaPickerManager/MediaPickerManager.h @@ -7,7 +7,8 @@ #import -typedef enum { + +typedef NS_OPTIONS(NSInteger, JMMediaType) { JMMediaTypeCameraPhoto = 0, JMMediaTypeCameraVideo = 1 << 0, JMMediaTypeLibraryPhoto = 1 << 1, @@ -17,18 +18,18 @@ typedef enum { JMMediaTypePhotos = JMMediaTypeCameraPhoto | JMMediaTypeLibraryPhoto, JMMediaTypeVideos = JMMediaTypeCameraVideo | JMMediaTypeLibraryVideo, JMMediaTypeAll = JMMediaTypeCamera | JMMediaTypeLibrary, -} JMMediaType; +}; -typedef enum { - JMMediaPresentationStylePresentModal = 0, - JMMediaPresentationStyleAddSubView = 1, - JMMediaPresentationStyleCustom = 2 -} JMMediaPresentationStyle; +typedef NS_ENUM(NSInteger, JMMediaPresentationStyle) { + JMMediaPresentationStylePresentModal, + JMMediaPresentationStyleAddSubView, + JMMediaPresentationStyleCustom +}; @protocol JMMediaPickerManagerDelegate -- (void)bkImagePickerControllerDidFinishPickingMediaWithInfo:(NSDictionary *)info; +- (void)imagePickerControllerDidFinishPickingMediaWithInfo:(NSDictionary *)info; @optional - (void)customPresentImagePicker:(UIViewController *)controller; - (void)customDismissImagePicker:(UIViewController *)controller; @@ -43,8 +44,7 @@ typedef enum { + (instancetype)sharedInstance; -- (IBAction)photoSelected:(id)sender; -- (IBAction)videoSelected:(id)sender; -- (void)presentImagePickerWithSourceType:(UIImagePickerControllerSourceType)sourceType andTypes:(NSArray *)arrayOfTypes; +- (void)presentPhotosFrom:(id)sender; +- (void)presentVideosFrom:(id)sender; @end diff --git a/GenericPickerManager/MediaPickerManager/MediaPickerManager.m b/GenericPickerManager/MediaPickerManager/MediaPickerManager.m index 7e74322..d5a9898 100755 --- a/GenericPickerManager/MediaPickerManager/MediaPickerManager.m +++ b/GenericPickerManager/MediaPickerManager/MediaPickerManager.m @@ -17,7 +17,8 @@ @interface MediaPickerManager () %d\n",JMMediaTypeCameraPhoto]; - [str appendFormat:@"JMMediaTypeCameraVideo -> %d\n",JMMediaTypeCameraVideo]; - [str appendFormat:@"JMMediaTypeLibraryPhoto -> %d\n",JMMediaTypeLibraryPhoto]; - [str appendFormat:@"JMMediaTypeLibraryVideo -> %d\n",JMMediaTypeLibraryVideo]; - [str appendFormat:@"JMMediaTypeCamera -> %d\n",JMMediaTypeCamera]; - [str appendFormat:@"JMMediaTypeLibrary -> %d\n",JMMediaTypeLibrary]; - [str appendFormat:@"JMMediaTypePhotos -> %d\n",JMMediaTypePhotos]; - [str appendFormat:@"JMMediaTypeAll -> %d\n",JMMediaTypeAll]; - [str appendFormat:@"#SELECTED TYPE: %d\n", self.type]; - - return str; -} - diff --git a/GenericPickerManager/MediaPickerManager/en.lproj/MediaPickerManager.strings b/GenericPickerManager/MediaPickerManager/en.lproj/MediaPickerManager.strings new file mode 100644 index 0000000..842fdf3 --- /dev/null +++ b/GenericPickerManager/MediaPickerManager/en.lproj/MediaPickerManager.strings @@ -0,0 +1,19 @@ +/* + MediaPickerManager.strings + GenericPickerManager + + Created by Jerome Morissard on 3/15/14. + Copyright (c) 2014 Jerome Morissard. All rights reserved. +*/ + +"MediaPickerManager.cancel" = "Cancel"; +"MediaPickerManager.close" = "Close"; +"MediaPickerManager.take.photo" = "Take a picture"; +"MediaPickerManager.from.library" = "From the galery"; +"MediaPickerManager.take.video" = "Take a video"; + +//Erreur +"MediaPickerManager.video.error" = "This device can't take videos"; +"MediaPickerManager.photo.error" = "This device can't take pictures"; +"MediaPickerManager.gallery.error" = "This device doesn't has a gelery"; +"MediaPickerManager.error.title" = "Error"; \ No newline at end of file diff --git a/GenericPickerManager/MediaPickerManager/fr.lproj/MediaPickerManager.strings b/GenericPickerManager/MediaPickerManager/fr.lproj/MediaPickerManager.strings new file mode 100644 index 0000000..7a2d379 --- /dev/null +++ b/GenericPickerManager/MediaPickerManager/fr.lproj/MediaPickerManager.strings @@ -0,0 +1,19 @@ +/* + MediaPickerManager.strings + GenericPickerManager + + Created by Jerome Morissard on 3/15/14. + Copyright (c) 2014 Jerome Morissard. All rights reserved. +*/ + +"MediaPickerManager.cancel" = "Annuler"; +"MediaPickerManager.close" = "Fermer"; +"MediaPickerManager.take.photo" = "Prendre photo"; +"MediaPickerManager.from.library" = "De la bibliothèque"; +"MediaPickerManager.take.video" = "Prendre une vidéo"; + +//Erreur +"MediaPickerManager.video.error" = "Cet appareil ne peut pas prendre de vidéos"; +"MediaPickerManager.photo.error" = "Cet appareil ne peut pas prendre de photos"; +"MediaPickerManager.gallery.error" = "Cet appareil n'a pas de galerie"; +"MediaPickerManager.error.title" = "Erreur"; \ No newline at end of file diff --git a/MediaPickerManager.podspec b/MediaPickerManager.podspec index 52eb3f3..eec675d 100644 --- a/MediaPickerManager.podspec +++ b/MediaPickerManager.podspec @@ -11,7 +11,9 @@ Pod::Spec.new do |s| s.homepage = 'https://github.com/leverdeterre/MediaPickerManager' s.source = { :git => 'https://github.com/leverdeterre/MediaPickerManager.git', - :tag => "0.0.1" + :tag => “0.0.1” } s.source_files = 'GenericPickerManager/MediaPickerManager/*.{h,m}' + s.frameworks = 'MobileCoreServices' + s.resources = 'GenericPickerManager/MediaPickerManager/MediaPickerManager.bundle' end diff --git a/pods.spec b/pods.spec deleted file mode 100644 index 52eb3f3..0000000 --- a/pods.spec +++ /dev/null @@ -1,17 +0,0 @@ -Pod::Spec.new do |s| - s.name = 'MediaPickerManager' - s.version = '0.0.1' - s.requires_arc = true - s.author = { - 'Morissard Jérome' => 'morissardj@gmail.com' - } - s.ios.deployment_target = '5.0' - s.summary = 'Easy-to-use UIImagePicker.' - s.license = { :type => 'MIT' } - s.homepage = 'https://github.com/leverdeterre/MediaPickerManager' - s.source = { - :git => 'https://github.com/leverdeterre/MediaPickerManager.git', - :tag => "0.0.1" - } - s.source_files = 'GenericPickerManager/MediaPickerManager/*.{h,m}' -end