Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/googlearchive/drive-ios-quickeditor
[MOVED] A sample text editor for iOS illustrating how to open and save files with the Google Drive API
https://github.com/googlearchive/drive-ios-quickeditor
Last synced: about 2 months ago
JSON representation
[MOVED] A sample text editor for iOS illustrating how to open and save files with the Google Drive API
- Host: GitHub
- URL: https://github.com/googlearchive/drive-ios-quickeditor
- Owner: googlearchive
- License: apache-2.0
- Archived: true
- Created: 2015-03-06T18:40:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T16:15:16.000Z (over 7 years ago)
- Last Synced: 2024-06-27T19:51:46.683Z (3 months ago)
- Language: Objective-C
- Homepage: https://github.com/gsuitedevs/drive-quickeditors
- Size: 12.2 MB
- Stars: 31
- Watchers: 8
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ios-quickeditor
A sample text editor for iOS illustrating how to open and save files with the [Google Drive API](https://developers.google.com/drive/ios)
## Overview
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## Prerequisites
To run this sample, you'll need:
* [Xcode 8.0](https://developer.apple.com/xcode/) or greater.
* [CocoaPods](http://cocoapods.org/) dependency manager.
* Access to the internet and a web browser.
* A Google account with Google Drive enabled.## Building the sample
### Enable the Drive API and Google Sign-in
1. Use [this wizard](https://developers.google.com/mobile/add?platform=ios&cntapi=signin&cnturl=https%3A%2F%2Fconsole.developers.google.com%2Fstart%2Fapi%3Fid%3Ddrive&cntlbl=Enable%20the%20Drive%20API) to create a new app or select an existing one.
1. Enter "com.google.drive.samples.ios-quick-editor.ios-quickeditor into the field iOS Bundle ID and click the Continue button.
1. Click the Google Sign-In icon and then click the Enable Google Sign-in button. Click the Continue button.
1. 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.
1. Use the dropdown menu to select the same project you use in the previous wizard and click the Continue button.
1. Close the wizard.### Fetch and build the app
1. Clone the git repo
git clone [email protected]:googledrive/ios-quickeditor.git
cd ios-quickeditor
1. Open `ios-quickeditor/ios-quickeditor.xcworkspace` in Xcode
1. Replace `GoogleService-Info.plist` with the file you previously downloaded
1. Add the URL scheme in `ios-quickeditor-Info.plist` with your reversed client ID.
2. 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.
2. 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.
1. Build the project and run it on the iOS simulator.