Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

googlearchive/drive-ios-quickeditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ios-quickeditor

A sample text editor for iOS illustrating how to open and save files with the Google Drive API

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 or greater.
  • CocoaPods 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 to create a new app or select an existing one.
  2. Enter "com.google.drive.samples.ios-quick-editor.ios-quickeditor into the field iOS Bundle ID and click the Continue button.
  3. Click the Google Sign-In icon and then click the Enable Google Sign-in button. Click the Continue button.
  4. 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.
  5. Use the dropdown menu to select the same project you use in the previous wizard and click the Continue button.
  6. Close the wizard.

Fetch and build the app

  1. Clone the git repo

     git clone git@github.com:googledrive/ios-quickeditor.git
     cd ios-quickeditor
    
  2. Open ios-quickeditor/ios-quickeditor.xcworkspace in Xcode

  3. Replace GoogleService-Info.plist with the file you previously downloaded

  4. Add the URL scheme in ios-quickeditor-Info.plist with your reversed client ID.

  5. 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.

  6. 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.

  7. Build the project and run it on the iOS simulator.

About

[MOVED] A sample text editor for iOS illustrating how to open and save files with the Google Drive API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published