From 8ff6771f42673d281909530c2d2b7e085ddc90b9 Mon Sep 17 00:00:00 2001 From: Marcos Griselli Date: Wed, 25 Apr 2018 10:23:20 -0300 Subject: [PATCH 1/5] Initial fastlane release configuration --- Gemfile | 4 + Gemfile.lock | 205 +++++++++++++++++++++++++++++++++++++++++++++ fastlane/Appfile | 6 ++ fastlane/Fastfile | 33 ++++++++ fastlane/README.md | 39 +++++++++ 5 files changed, 287 insertions(+) create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 fastlane/Appfile create mode 100644 fastlane/Fastfile create mode 100644 fastlane/README.md diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..d00d993 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +gem 'fastlane' +gem 'cocoapods', '1.5.0' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..73e7142 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,205 @@ +GEM + remote: https://rubygems.org/ + specs: + CFPropertyList (3.0.0) + activesupport (4.2.10) + i18n (~> 0.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + atomos (0.1.2) + babosa (1.0.2) + claide (1.0.2) + cocoapods (1.5.0) + activesupport (>= 4.0.2, < 5) + claide (>= 1.0.2, < 2.0) + cocoapods-core (= 1.5.0) + cocoapods-deintegrate (>= 1.0.2, < 2.0) + cocoapods-downloader (>= 1.2.0, < 2.0) + cocoapods-plugins (>= 1.0.0, < 2.0) + cocoapods-search (>= 1.0.0, < 2.0) + cocoapods-stats (>= 1.0.0, < 2.0) + cocoapods-trunk (>= 1.3.0, < 2.0) + cocoapods-try (>= 1.1.0, < 2.0) + colored2 (~> 3.1) + escape (~> 0.0.4) + fourflusher (~> 2.0.1) + gh_inspector (~> 1.0) + molinillo (~> 0.6.5) + nap (~> 1.0) + ruby-macho (~> 1.1) + xcodeproj (>= 1.5.7, < 2.0) + cocoapods-core (1.5.0) + activesupport (>= 4.0.2, < 6) + fuzzy_match (~> 2.0.4) + nap (~> 1.0) + cocoapods-deintegrate (1.0.2) + cocoapods-downloader (1.2.0) + cocoapods-plugins (1.0.0) + nap + cocoapods-search (1.0.0) + cocoapods-stats (1.0.0) + cocoapods-trunk (1.3.0) + nap (>= 0.8, < 2.0) + netrc (~> 0.11) + cocoapods-try (1.1.0) + colored (1.2) + colored2 (3.1.2) + commander-fastlane (4.4.6) + highline (~> 1.7.2) + concurrent-ruby (1.0.5) + declarative (0.0.10) + declarative-option (0.1.0) + domain_name (0.5.20180417) + unf (>= 0.0.5, < 1.0.0) + dotenv (2.4.0) + emoji_regex (0.1.1) + escape (0.0.4) + excon (0.62.0) + faraday (0.15.0) + multipart-post (>= 1.2, < 3) + faraday-cookie_jar (0.0.6) + faraday (>= 0.7.4) + http-cookie (~> 1.0.0) + faraday_middleware (0.12.2) + faraday (>= 0.7.4, < 1.0) + fastimage (2.1.1) + fastlane (2.93.1) + CFPropertyList (>= 2.3, < 4.0.0) + addressable (>= 2.3, < 3.0.0) + babosa (>= 1.0.2, < 2.0.0) + bundler (>= 1.12.0, < 2.0.0) + colored + commander-fastlane (>= 4.4.6, < 5.0.0) + dotenv (>= 2.1.1, < 3.0.0) + emoji_regex (~> 0.1) + excon (>= 0.45.0, < 1.0.0) + faraday (~> 0.9) + faraday-cookie_jar (~> 0.0.6) + faraday_middleware (~> 0.9) + fastimage (>= 2.1.0, < 3.0.0) + gh_inspector (>= 1.1.2, < 2.0.0) + google-api-client (>= 0.13.1, < 0.14.0) + highline (>= 1.7.2, < 2.0.0) + json (< 3.0.0) + mini_magick (~> 4.5.1) + multi_json + multi_xml (~> 0.5) + multipart-post (~> 2.0.0) + plist (>= 3.1.0, < 4.0.0) + public_suffix (~> 2.0.0) + rubyzip (>= 1.1.0, < 2.0.0) + security (= 0.1.3) + simctl (~> 1.6.3) + slack-notifier (>= 2.0.0, < 3.0.0) + terminal-notifier (>= 1.6.2, < 2.0.0) + terminal-table (>= 1.4.5, < 2.0.0) + tty-screen (>= 0.6.3, < 1.0.0) + tty-spinner (>= 0.8.0, < 1.0.0) + word_wrap (~> 1.0.0) + xcodeproj (>= 1.5.7, < 2.0.0) + xcpretty (>= 0.2.4, < 1.0.0) + xcpretty-travis-formatter (>= 0.0.3) + fourflusher (2.0.1) + fuzzy_match (2.0.4) + gh_inspector (1.1.3) + google-api-client (0.13.6) + addressable (~> 2.5, >= 2.5.1) + googleauth (~> 0.5) + httpclient (>= 2.8.1, < 3.0) + mime-types (~> 3.0) + representable (~> 3.0) + retriable (>= 2.0, < 4.0) + googleauth (0.6.2) + faraday (~> 0.12) + jwt (>= 1.4, < 3.0) + logging (~> 2.0) + memoist (~> 0.12) + multi_json (~> 1.11) + os (~> 0.9) + signet (~> 0.7) + highline (1.7.10) + http-cookie (1.0.3) + domain_name (~> 0.5) + httpclient (2.8.3) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + json (2.1.0) + jwt (2.1.0) + little-plugger (1.1.4) + logging (2.2.2) + little-plugger (~> 1.1) + multi_json (~> 1.10) + memoist (0.16.0) + mime-types (3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0521) + mini_magick (4.5.1) + minitest (5.11.3) + molinillo (0.6.5) + multi_json (1.13.1) + multi_xml (0.6.0) + multipart-post (2.0.0) + nanaimo (0.2.5) + nap (1.1.0) + naturally (2.1.0) + netrc (0.11.0) + os (0.9.6) + plist (3.4.0) + public_suffix (2.0.5) + representable (3.0.4) + declarative (< 0.1.0) + declarative-option (< 0.2.0) + uber (< 0.2.0) + retriable (3.1.1) + rouge (2.0.7) + ruby-macho (1.1.0) + rubyzip (1.2.1) + security (0.1.3) + signet (0.8.1) + addressable (~> 2.3) + faraday (~> 0.9) + jwt (>= 1.5, < 3.0) + multi_json (~> 1.10) + simctl (1.6.4) + CFPropertyList + naturally + slack-notifier (2.3.2) + terminal-notifier (1.8.0) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + thread_safe (0.3.6) + tty-cursor (0.5.0) + tty-screen (0.6.4) + tty-spinner (0.8.0) + tty-cursor (>= 0.5.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + uber (0.1.0) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.5) + unicode-display_width (1.3.2) + word_wrap (1.0.0) + xcodeproj (1.5.7) + CFPropertyList (>= 2.3.3, < 4.0) + atomos (~> 0.1.2) + claide (>= 1.0.2, < 2.0) + colored2 (~> 3.1) + nanaimo (~> 0.2.4) + xcpretty (0.2.8) + rouge (~> 2.0.7) + xcpretty-travis-formatter (1.0.0) + xcpretty (~> 0.2, >= 0.0.7) + +PLATFORMS + ruby + +DEPENDENCIES + cocoapods (= 1.5.0) + fastlane + +BUNDLED WITH + 1.16.1 diff --git a/fastlane/Appfile b/fastlane/Appfile new file mode 100644 index 0000000..1803063 --- /dev/null +++ b/fastlane/Appfile @@ -0,0 +1,6 @@ +# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app +# apple_id("[[APPLE_ID]]") # Your Apple email address + + +# For more information about the Appfile, see: +# https://docs.fastlane.tools/advanced/#appfile diff --git a/fastlane/Fastfile b/fastlane/Fastfile new file mode 100644 index 0000000..396c06b --- /dev/null +++ b/fastlane/Fastfile @@ -0,0 +1,33 @@ +default_platform(:ios) + +platform :ios do + + desc "Release a new version with a patch bump_type" + lane :patch do + release("patch") + end + + desc "Release a new version with a minor bump_type" + lane :minor do + release("minor") + end + + desc "Release a new version with a major bump_type" + lane :major do + release("major") + end + + def release(type) + pod_lib_lint + podspec_name = "CodableFirebase.podspec" + version = version_bump_podspec(path: podspec_name, + bump_type: type) + #cocoapods + git_add + git_commit(path: ".", + message: "#{version} release") + add_git_tag(tag: "#{version}") + push_to_git_remote + pod_push + end +end diff --git a/fastlane/README.md b/fastlane/README.md new file mode 100644 index 0000000..9e5c45c --- /dev/null +++ b/fastlane/README.md @@ -0,0 +1,39 @@ +fastlane documentation +================ +# Installation + +Make sure you have the latest version of the Xcode command line tools installed: + +``` +xcode-select --install +``` + +Install _fastlane_ using +``` +[sudo] gem install fastlane -NV +``` +or alternatively using `brew cask install fastlane` + +# Available Actions +## iOS +### ios patch +``` +fastlane ios patch +``` +Release a new version with a patch bump_type +### ios minor +``` +fastlane ios minor +``` +Release a new version with a minor bump_type +### ios major +``` +fastlane ios major +``` +Release a new version with a major bump_type + +---- + +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). From 03459ec82a829632e54ff0d657f6e9bb8ff26bf2 Mon Sep 17 00:00:00 2001 From: Marcos Griselli Date: Wed, 25 Apr 2018 10:24:41 -0300 Subject: [PATCH 2/5] 0.0.9 release --- CodableFirebase.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodableFirebase.podspec b/CodableFirebase.podspec index 7d73052..9cdd4f9 100644 --- a/CodableFirebase.podspec +++ b/CodableFirebase.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CodableFirebase" - s.version = "0.0.8" + s.version = "0.0.9" s.summary = "Use Codable with Firebase" s.description = "This library helps you use your custom models that conform to Codable protocol with Firebase Realtime Database and Firestore" s.homepage = "https://github.com/alickbass/CodableFirebase" From cef13572db65ebd15173d58705b03e3344a40890 Mon Sep 17 00:00:00 2001 From: Marcos Griselli Date: Wed, 25 Apr 2018 10:37:18 -0300 Subject: [PATCH 3/5] fastlane version number --- fastlane/Fastfile | 1 + 1 file changed, 1 insertion(+) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 396c06b..5dbe7c0 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -22,6 +22,7 @@ platform :ios do podspec_name = "CodableFirebase.podspec" version = version_bump_podspec(path: podspec_name, bump_type: type) + increment_version_number(version_number: version) #cocoapods git_add git_commit(path: ".", From 9b65f4e473467a9bc13018198455b21236a0a679 Mon Sep 17 00:00:00 2001 From: Marcos Griselli Date: Wed, 25 Apr 2018 10:52:01 -0300 Subject: [PATCH 4/5] revert podspec version --- CodableFirebase.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodableFirebase.podspec b/CodableFirebase.podspec index 9cdd4f9..7d73052 100644 --- a/CodableFirebase.podspec +++ b/CodableFirebase.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CodableFirebase" - s.version = "0.0.9" + s.version = "0.0.8" s.summary = "Use Codable with Firebase" s.description = "This library helps you use your custom models that conform to Codable protocol with Firebase Realtime Database and Firestore" s.homepage = "https://github.com/alickbass/CodableFirebase" From 5e9f86496e08f819a2d017b499dcd6052e0236fc Mon Sep 17 00:00:00 2001 From: Marcos Griselli Date: Thu, 26 Apr 2018 19:13:44 -0300 Subject: [PATCH 5/5] Removed Appfile --- fastlane/Appfile | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 fastlane/Appfile diff --git a/fastlane/Appfile b/fastlane/Appfile deleted file mode 100644 index 1803063..0000000 --- a/fastlane/Appfile +++ /dev/null @@ -1,6 +0,0 @@ -# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app -# apple_id("[[APPLE_ID]]") # Your Apple email address - - -# For more information about the Appfile, see: -# https://docs.fastlane.tools/advanced/#appfile