Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Skyscanner/SkyFloatingLabelTextField
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: LootApp/SkyFloatingLabelTextField
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 7 commits
  • 3 files changed
  • 1 contributor

Commits on Sep 16, 2017

  1. add fastfile

    Fabio Milano committed Sep 16, 2017
    Copy the full SHA
    1ebf71f View commit details
  2. update fastfile

    Fabio Milano committed Sep 16, 2017
    Copy the full SHA
    e862245 View commit details
  3. update fastfile

    Fabio Milano committed Sep 16, 2017
    Copy the full SHA
    3901bd4 View commit details
  4. update fastfile

    Fabio Milano committed Sep 16, 2017
    Copy the full SHA
    67b1ea6 View commit details
  5. update fastfile

    Fabio Milano committed Sep 16, 2017
    Copy the full SHA
    5c90808 View commit details
  6. update fastfile

    Fabio Milano committed Sep 16, 2017
    Copy the full SHA
    b488fd8 View commit details
  7. Copy the full SHA
    89390c0 View commit details
Showing with 118 additions and 0 deletions.
  1. +7 −0 .gitignore
  2. +68 −0 fastlane/Fastfile
  3. +43 −0 fastlane/README.md
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -72,3 +72,10 @@ xcuserdata
*.moved-aside
DerivedData
*.xcuserstate

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output

*.framework.zip
68 changes: 68 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Customise this file, documentation can be found here:
# https://github.com/KrauseFx/fastlane/tree/master/docs
# All available actions: https://github.com/KrauseFx/fastlane/blob/master/docs/Actions.md
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# By default, fastlane will send which actions are used
# No personal data is shared, more information on https://github.com/fastlane/enhancer
# Uncomment the following line to opt out
# opt_out_usage

# This is the minimum version number required.
# Update this, if you use features of a newer version
require 'yaml'
require 'spaceship'
require 'colored'

fastlane_version "1.38.0"

default_platform :ios


SLACK_URL = "https://hooks.slack.com/services/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".freeze
FRAMEWORK_NAME = "SkyFloatingLabelTextField".freeze
REPOSITORY_NAME = "SkyFloatingLabelTextField".freeze

platform :ios do
desc "Release new version"
lane :release do |options|
target_version = options[:version]
raise "The version is missed. Use `fastlane release version:{version_number}`.`" if target_version.nil?

ensure_git_branch
ensure_git_status_clean

# Create Carthage framework
Actions.sh("cd .. && carthage build --no-skip-current && carthage archive #{FRAMEWORK_NAME}")
framework_binary = File.join(File.expand_path('../..', __FILE__),"#{FRAMEWORK_NAME}.framework.zip")
raise "No binary found to upload #{framework_binary}" if File.file?(framework_binary) == false

unless (`git status --porcelain`).empty?
git_add
git_commit(path: ".", message: "New release version bump")

# Create release tag
push_to_git_remote
end

set_github_release(
repository_name: "LootApp/#{REPOSITORY_NAME}",
api_token: ENV['GITHUB_API_TOKEN'],
tag_name: target_version,
upload_assets: [ framework_binary ],
name: "",
description: ""
)
end

error do |lane, exception|
notification(subtitle: "Fastlane error", message: "Error in lane " + lane.to_s)
end
end


# More information about multiple platforms in fastlane:
# https://github.com/KrauseFx/fastlane/blob/master/docs/Platforms.md
43 changes: 43 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
fastlane documentation
================
# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```
xcode-select --install
```

## Choose your installation method:

<table width="100%" >
<tr>
<th width="33%"><a href="http://brew.sh">Homebrew</a></td>
<th width="33%">Installer Script</td>
<th width="33%">Rubygems</td>
</tr>
<tr>
<td width="33%" align="center">macOS</td>
<td width="33%" align="center">macOS</td>
<td width="33%" align="center">macOS or Linux with Ruby 2.0.0 or above</td>
</tr>
<tr>
<td width="33%"><code>brew cask install fastlane</code></td>
<td width="33%"><a href="https://download.fastlane.tools">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>
<td width="33%"><code>sudo gem install fastlane -NV</code></td>
</tr>
</table>

# Available Actions
## iOS
### ios release
```
fastlane ios release
```
Release new version

----

This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).