Git Product home page Git Product logo

isabella232 / drive-ios-quickeditor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlearchive/drive-ios-quickeditor

0.0 0.0 0.0 12.51 MB

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

Home Page: https://github.com/gsuitedevs/drive-quickeditors

License: Apache License 2.0

Ruby 0.02% C 1.18% Objective-C 97.42% C++ 0.03% Shell 1.36%

drive-ios-quickeditor's Introduction

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 [email protected]: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.

drive-ios-quickeditor's People

Contributors

naokigoogle avatar sqrrrl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.