This repository has been archived by the owner on Nov 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from fastlane/feature/itc
[WIP] iTunes Connect Support
- Loading branch information
Showing
108 changed files
with
9,552 additions
and
1,334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ RSpec::Core::RakeTask.new(:spec) | |
|
||
--require spec_helper | ||
--color | ||
--format d | ||
--format d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
machine: | ||
ruby: | ||
version: rbx-2.2.6 | ||
version: 2.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,224 @@ | ||
[ | ||
{ | ||
"locale": "cmn-Hans", | ||
"name": "Simplified Chinese", | ||
"game-center": true | ||
}, | ||
{ | ||
"locale": "cmn-Hant", | ||
"name": "Traditional Chinese", | ||
"game-center": true | ||
}, | ||
{ | ||
"locale": "da-DK", | ||
"name": "Danish", | ||
"game-center": true, | ||
"alternatives": [ | ||
"da" | ||
] | ||
}, | ||
{ | ||
"locale": "nl-NL", | ||
"name": "Dutch", | ||
"game-center": true, | ||
"alternatives": [ | ||
"nl" | ||
] | ||
}, | ||
{ | ||
"locale": "en-AU", | ||
"name": "Australian English", | ||
"game-center": false | ||
}, | ||
{ | ||
"locale": "en-AU", | ||
"name": "English_Australian", | ||
"game-center": false | ||
}, | ||
{ | ||
"locale": "en-CA", | ||
"name": "Canadian English", | ||
"game-center": false | ||
}, | ||
{ | ||
"locale": "en-CA", | ||
"name": "English_CA", | ||
"game-center": false | ||
}, | ||
{ | ||
"locale": "en-GB", | ||
"name": "UK English", | ||
"game-center": true | ||
}, | ||
{ | ||
"locale": "en-GB", | ||
"name": "English_UK", | ||
"game-center": true | ||
}, | ||
{ | ||
"locale": "en-US", | ||
"name": "English", | ||
"game-center": true | ||
}, | ||
{ | ||
"locale": "fi-FI", | ||
"name": "Finnish", | ||
"game-center": true, | ||
"alternatives": [ | ||
"fi" | ||
] | ||
}, | ||
{ | ||
"locale": "fr-CA", | ||
"name": "Canadian French", | ||
"game-center": false | ||
}, | ||
{ | ||
"locale": "fr-CA", | ||
"name": "French_CA", | ||
"game-center": false | ||
}, | ||
{ | ||
"locale": "fr-FR", | ||
"name": "French", | ||
"game-center": true, | ||
"alternatives": [ | ||
"fr" | ||
] | ||
}, | ||
{ | ||
"locale": "de-DE", | ||
"name": "German", | ||
"game-center": true, | ||
"alternatives": [ | ||
"de" | ||
] | ||
}, | ||
{ | ||
"locale": "el-GR", | ||
"name": "Greek", | ||
"game-center": true, | ||
"alternatives": [ | ||
"el" | ||
] | ||
}, | ||
{ | ||
"locale": "id-ID", | ||
"name": "Indonesian", | ||
"game-center": true, | ||
"alternatives": [ | ||
"id" | ||
] | ||
}, | ||
{ | ||
"locale": "it-IT", | ||
"name": "Italian", | ||
"game-center": true, | ||
"alternatives": [ | ||
"it" | ||
] | ||
}, | ||
{ | ||
"locale": "ja-JP", | ||
"name": "Japanese", | ||
"game-center": true, | ||
"alternatives": [ | ||
"ja" | ||
] | ||
}, | ||
{ | ||
"locale": "ko-KR", | ||
"name": "Korean", | ||
"game-center": true, | ||
"alternatives": [ | ||
"ko" | ||
] | ||
}, | ||
{ | ||
"locale": "ms-MY", | ||
"name": "Malay", | ||
"game-center": true, | ||
"alternatives": [ | ||
"ms" | ||
] | ||
}, | ||
{ | ||
"locale": "no-NO", | ||
"name": "Norwegian", | ||
"game-center": true, | ||
"alternatives": [ | ||
"no" | ||
] | ||
}, | ||
{ | ||
"locale": "pt-BR", | ||
"name": "Brazilian Portuguese", | ||
"game-center": true | ||
}, | ||
{ | ||
"locale": "pt-PT", | ||
"name": "Portuguese", | ||
"game-center": true, | ||
"alternatives": [ | ||
"pt" | ||
] | ||
}, | ||
{ | ||
"locale": "ru-RU", | ||
"name": "Russian", | ||
"game-center": true, | ||
"alternatives": [ | ||
"ru" | ||
] | ||
}, | ||
{ | ||
"locale": "es-MX", | ||
"name": "Mexican Spanish", | ||
"game-center": false | ||
}, | ||
{ | ||
"locale": "es-MX", | ||
"name": "Spanish_MX", | ||
"game-center": false | ||
}, | ||
{ | ||
"locale": "es-ES", | ||
"name": "Spanish", | ||
"game-center": true, | ||
"alternatives": [ | ||
"es" | ||
] | ||
}, | ||
{ | ||
"locale": "sv-SE", | ||
"name": "Swedish", | ||
"game-center": true, | ||
"alternatives": [ | ||
"sv" | ||
] | ||
}, | ||
{ | ||
"locale": "th-TH", | ||
"name": "Thai", | ||
"game-center": true, | ||
"alternatives": [ | ||
"th" | ||
] | ||
}, | ||
{ | ||
"locale": "tr-TR", | ||
"name": "Turkish", | ||
"game-center": true, | ||
"alternatives": [ | ||
"tr" | ||
] | ||
}, | ||
{ | ||
"locale": "vi-VI", | ||
"name": "Vietnamese", | ||
"game-center": true, | ||
"alternatives": [ | ||
"vi" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,28 @@ | ||
require 'spaceship/version' | ||
require 'spaceship/base' | ||
require 'spaceship/client' | ||
require 'spaceship/app' | ||
require 'spaceship/certificate' | ||
require 'spaceship/device' | ||
require 'spaceship/provisioning_profile' | ||
require 'spaceship/launcher' | ||
|
||
module Spaceship | ||
# Use this to just setup the configuration attribute and set it later somewhere else | ||
class << self | ||
# This client stores the default client when using the lazy syntax | ||
# Spaceship.app instead of using the spaceship launcher | ||
attr_accessor :client | ||
|
||
# Authenticates with Apple's web services. This method has to be called once | ||
# to generate a valid session. The session will automatically be used from then | ||
# on. | ||
# | ||
# This method will automatically use the username from the Appfile (if available) | ||
# and fetch the password from the Keychain (if available) | ||
# | ||
# @param user (String) (optional): The username (usually the email address) | ||
# @param password (String) (optional): The password | ||
# | ||
# @raise InvalidUserCredentialsError: raised if authentication failed | ||
# | ||
# @return (Spaceship::Client) The client the login method was called for | ||
def login(user = nil, password = nil) | ||
@client = Client.login(user, password) | ||
end | ||
|
||
# Open up the team selection for the user (if necessary). | ||
# | ||
# If the user is in multiple teams, a team selection is shown. | ||
# The user can then select a team by entering the number | ||
# | ||
# Additionally, the team ID is shown next to each team name | ||
# so that the user can use the environment variable `FASTLANE_TEAM_ID` | ||
# for future user. | ||
# | ||
# @return (String) The ID of the select team. You also get the value if | ||
# the user is only in one team. | ||
def select_team | ||
@client.select_team | ||
end | ||
|
||
# Helper methods for managing multiple instances of spaceship | ||
# Dev Portal | ||
require 'spaceship/portal/portal' | ||
require 'spaceship/portal/spaceship' | ||
|
||
# @return (Class) Access the apps for the spaceship | ||
def app | ||
Spaceship::App.set_client(@client) | ||
end | ||
# iTunes Connect | ||
require 'spaceship/tunes/tunes' | ||
require 'spaceship/tunes/spaceship' | ||
require 'spaceship/tunes/tester' | ||
|
||
# @return (Class) Access the devices for the spaceship | ||
def device | ||
Spaceship::Device.set_client(@client) | ||
end | ||
|
||
# @return (Class) Access the certificates for the spaceship | ||
def certificate | ||
Spaceship::Certificate.set_client(@client) | ||
end | ||
|
||
# @return (Class) Access the provisioning profiles for the spaceship | ||
def provisioning_profile | ||
Spaceship::ProvisioningProfile.set_client(@client) | ||
end | ||
end | ||
# To support legacy code | ||
module Spaceship | ||
# Dev Portal | ||
Certificate = Spaceship::Portal::Certificate | ||
ProvisioningProfile = Spaceship::Portal::ProvisioningProfile | ||
Device = Spaceship::Portal::Device | ||
App = Spaceship::Portal::App | ||
|
||
# iTunes Connect | ||
AppVersion = Spaceship::Tunes::AppVersion | ||
AppSubmission = Spaceship::Tunes::AppSubmission | ||
Application = Spaceship::Tunes::Application | ||
end | ||
|
Oops, something went wrong.