Giter Club home page Giter Club logo

motion-testflight's Introduction

motion-testflight

motion-testflight allows RubyMotion projects to easily embed the TestFlight SDK and be submitted to the TestFlight platform.

Requirements

Installation

$ sudo gem install motion-testflight

Setup

  1. Download the TestFlight SDK package from testflightapp.com/sdk/download/ and unpack it into the vendor/TestFlightSDK directory of your RubyMotion project. Create the vendor directory if it does not exist. You should have something like this.

    $ ls vendor/TestFlightSDK
    README.txt			libTestFlight.a
    TestFlight.h			release_notes.txt
  2. Edit the Rakefile of your RubyMotion project and add the following require lines.

    require 'rubygems'
    require 'motion-testflight'
    
  3. Still in the Rakefile, set up the sdk, api_token and team_token variables in your application configuration block.

    Motion::Project::App.setup do |app|
      # ...
      app.development do
        # ...
        app.testflight do
          app.testflight.sdk = 'vendor/TestFlightSDK'
          app.testflight.api_token = '<insert your API token here>'
          app.testflight.team_token = '<insert your team token here>'
          app.testflight.notify = true # default is false
          app.testflight.identify_testers = true # default is false
        end
      end
    end
    

    You can retrieve the values for api_token and team_token in your TestFlight account page.

    If you’re using Testflight 1.2 or above, you should also add the app_token.

    # ...
    app.testflight do
      # ...
      app.testflight.app_token = '<insert your APP token here>'
    end
    
  4. (Optional) You can also set up distribution lists, if needed.

    Motion::Project::App.setup do |app|
      # ...
      app.testflight.distribution_lists = ['CoolKids']
    end
    

Usage

motion-testflight introduces a testflight Rake task to your project, which can be used to submit a development build. The notes parameter must be provided, and its content will be used as the submission release notes.

$ rake testflight notes="zomg!"

License

Copyright (c) 2012, Laurent Sansonetti <[email protected]>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: 

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer. 
2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution. 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

motion-testflight's People

Contributors

alloy avatar hboon avatar jeroenj avatar joenoon avatar lrz avatar rajeshthummalapally avatar rubenfonseca avatar watson1978 avatar

Watchers

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