A sample text editor for iOS illustrating how to open and save files with the Google Drive API
Quickeditor is a sample Google Drive app written in Objective-C for iOS. It is a text editor capable of editing files with the MIME type text/* that are stored in a user's Google Drive
To run this sample, you'll need:
- Xcode 8.0 or greater.
- CocoaPods dependency manager.
- Access to the internet and a web browser.
- A Google account with Google Drive enabled.
- Use this wizard to create a new app or select an existing one.
- Enter "com.google.drive.samples.ios-quick-editor.ios-quickeditor into the field iOS Bundle ID and click the Continue button.
- Click the Google Sign-In icon and then click the Enable Google Sign-in button. Click the Continue button.
- Click the Download
GoogleService-Info.plist
button to download the configuration file. Take note of where you saved it. Click the Enable the Drive API button. - Use the dropdown menu to select the same project you use in the previous wizard and click the Continue button.
- Close the wizard.
-
Clone the git repo
git clone [email protected]:googledrive/ios-quickeditor.git cd ios-quickeditor
-
Open
ios-quickeditor/ios-quickeditor.xcworkspace
in Xcode -
Replace
GoogleService-Info.plist
with the file you previously downloaded -
Add the URL scheme in
ios-quickeditor-Info.plist
with your reversed client ID. -
Open your project configuration: double-click the project name in the left tree view. Select your app from the TARGETS section, then select the Info tab, and expand the URL Types section.
-
Click the + button, and add a URL scheme for your reversed client ID. To find this value, open the GoogleService-Info.plist configuration file, and look for the REVERSED_CLIENT_ID key. Copy the value of that key, and paste it into the URL Schemes box on the configuration page. Leave the other fields blank.
-
Build the project and run it on the iOS simulator.