Commit bfe09923 authored by 汪洋's avatar 汪洋

Bump version to 0.1.0

parent ddf1de87
...@@ -32,7 +32,7 @@ EXTERNAL SOURCES: ...@@ -32,7 +32,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS: SPEC CHECKSUMS:
AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60 AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60
GMNetService: 9a08e22e9e9f6ba923f410dd07a89af0ce9e0025 GMNetService: 5e287438476a13b2d74fa96b518ae0cb13139386
PODFILE CHECKSUM: 8051686300d7bc1292715d043cf7d19489f36ff9 PODFILE CHECKSUM: 8051686300d7bc1292715d043cf7d19489f36ff9
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
"name": "GMNetService", "name": "GMNetService",
"version": "0.1.0", "version": "0.1.0",
"summary": "A short description of GMNetService.", "summary": "A short description of GMNetService.",
"homepage": "https://github.com/<GITHUB_USERNAME>/GMNetService", "homepage": "http://git.gengmei.cc/gengmeiios/GMNetService",
"license": "MIT", "license": "MIT",
"authors": { "authors": {
"wangyang": "wangyang@wanmeizhensuo.com" "wangyang": "wangyang@wanmeizhensuo.com"
}, },
"source": { "source": {
"git": "https://github.com/<GITHUB_USERNAME>/GMNetService.git", "git": "http://git.gengmei.cc/gengmeiios/GMNetService.git",
"tag": "0.1.0" "tag": "0.1.0"
}, },
"platforms": { "platforms": {
......
...@@ -32,7 +32,7 @@ EXTERNAL SOURCES: ...@@ -32,7 +32,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS: SPEC CHECKSUMS:
AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60 AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60
GMNetService: 9a08e22e9e9f6ba923f410dd07a89af0ce9e0025 GMNetService: 5e287438476a13b2d74fa96b518ae0cb13139386
PODFILE CHECKSUM: 8051686300d7bc1292715d043cf7d19489f36ff9 PODFILE CHECKSUM: 8051686300d7bc1292715d043cf7d19489f36ff9
......
...@@ -10,10 +10,10 @@ Pod::Spec.new do |s| ...@@ -10,10 +10,10 @@ Pod::Spec.new do |s|
s.name = "GMNetService" s.name = "GMNetService"
s.version = "0.1.0" s.version = "0.1.0"
s.summary = "A short description of GMNetService." s.summary = "A short description of GMNetService."
s.homepage = "https://github.com/<GITHUB_USERNAME>/GMNetService" s.homepage = "http://git.gengmei.cc/gengmeiios/GMNetService"
s.license = 'MIT' s.license = 'MIT'
s.author = { "wangyang" => "wangyang@wanmeizhensuo.com" } s.author = { "wangyang" => "wangyang@wanmeizhensuo.com" }
s.source = { :git => "https://github.com/<GITHUB_USERNAME>/GMNetService.git", :tag => s.version.to_s } s.source = { :git => "http://git.gengmei.cc/gengmeiios/GMNetService.git", :tag => s.version.to_s }
s.ios.deployment_target = '8.0' s.ios.deployment_target = '8.0'
s.source_files = 'GMNetService/Classes/**/*' s.source_files = 'GMNetService/Classes/**/*'
......
app_identifier "org.cocoapods.demo.GMPhobos-Example" # The bundle identifier of your app
apple_id "wanmeizhensuo@gmail.com" # Your Apple email address
team_id "86R4V3XFLU" # Developer Portal Team ID
# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/docs/Appfile.md
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/docs
# All available actions: https://github.com/fastlane/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
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.80.0"
default_platform :ios
platform :ios do
before_all do
end
desc "Release new version"
lane :release do |options|
path = "GMNetService.podspec"
target_version = options[:version]
raise "The version is missed." if target_version.nil?
ensure_git_branch # 确认 master 分支
pod_install
pod_lib_lint(verbose: true, allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"])
version_bump_podspec(path: path, version_number: target_version) # 更新 podspec
git_commit_all(message: "Bump version to #{target_version}") # 提交版本号修改
add_git_tag tag: target_version # 设置 tag
push_to_git_remote # 推送到 git 仓库
pod_push(path: path, repo: "GMSpecs", allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"]) # 提交到 CocoaPods
end
end
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md
fastlane documentation
================
# Installation
```
sudo gem install fastlane
```
# Available Actions
## iOS
### ios release
```
fastlane ios release
```
Release new version
----
This README.md is auto-generated and will be re-generated every time to run [fastlane](https://fastlane.tools).
More information about fastlane can be found on [https://fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [GitHub](https://github.com/fastlane/fastlane/tree/master/fastlane).
\ No newline at end of file
module Fastlane
module Actions
class GitCommitAllAction < Action
def self.run(params)
Actions.sh "git commit -am \"#{params[:message]}\""
end
#####################################################
# @!group Documentation
#####################################################
def self.description
"Commit all unsaved changes to git."
end
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :message,
env_name: "FL_GIT_COMMIT_ALL",
description: "The git message for the commit",
is_string: true)
]
end
def self.authors
# So no one will ever forget your contribution to fastlane :) You are awesome btw!
["thierry"]
end
def self.is_supported?(platform)
true
end
end
end
end
module Fastlane
module Actions
class PodInstallAction < Action
def self.run(params)
Actions.sh "cd Example && pod install"
Helper.log.info "Successfully pod install ⬆️ ".green
end
#####################################################
# @!group Documentation
#####################################################
def self.description
"Update all pods"
end
def self.details
"Update all pods"
end
def self.authors
["thierry"]
end
def self.is_supported?(platform)
true
end
end
end
end
module Fastlane
module Actions
class PodLibLintAction < Action
def self.run(params)
command = []
if File.exist?("Gemfile") && params[:use_bundle_exec]
command << "bundle exec"
end
command << "pod lib lint"
if params[:verbose]
command << "--verbose"
end
if params[:sources]
sources = params[:sources].join(",")
command << "--sources='#{sources}'"
end
if params[:allow_warnings]
command << "--allow-warnings"
end
result = Actions.sh(command.join(' '))
Helper.log.info "Pod lib lint Successfully ⬆️ ".green
return result
end
#####################################################
# @!group Documentation
#####################################################
def self.description
"Pod lib lint"
end
def self.details
"Test the syntax of your Podfile by linting the pod against the files of its directory"
end
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :use_bundle_exec,
description: "Use bundle exec when there is a Gemfile presented",
is_string: false,
default_value: true),
FastlaneCore::ConfigItem.new(key: :verbose,
description: "Allow ouput detail in console",
optional: true,
is_string: false),
FastlaneCore::ConfigItem.new(key: :allow_warnings,
description: "Allow warnings during pod lint",
optional: true,
is_string: false),
FastlaneCore::ConfigItem.new(key: :sources,
description: "The sources of repos you want the pod spec to lint with, separated by commas",
optional: true,
is_string: false,
verify_block: proc do |value|
raise "Sources must be an array.".red unless value.kind_of?(Array)
end)
]
end
def self.output
end
def self.return_value
nil
end
def self.authors
["thierryxing"]
end
def self.is_supported?(platform)
true
end
end
end
end
module Fastlane
module Actions
module SharedValues
BUILD_NUMBER = :BUILD_NUMBER
end
class SyncBuildNumberToGitAction < Action
def self.is_git?
Actions.sh 'git rev-parse HEAD'
return true
rescue
return false
end
def self.run(params)
if is_git?
command = 'git rev-list HEAD --count'
else
raise "Not in a git repository."
end
build_number = (Actions.sh command).strip
Fastlane::Actions::IncrementBuildNumberAction.run(build_number: build_number)
Actions.lane_context[SharedValues::BUILD_NUMBER] = build_number
end
def self.output
[
['BUILD_NUMBER', 'The new build number']
]
end
#####################################################
# @!group Documentation
#####################################################
def self.description
"Set the build version of your project to the same number of your total git commit count"
end
def self.authors
["thierry"]
end
def self.is_supported?(platform)
[:ios].include? platform
end
end
end
end
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="fastlane.lanes">
<testcase classname="fastlane.lanes" name="0: Verifying required fastlane version" time="0.000548">
</testcase>
<testcase classname="fastlane.lanes" name="1: default_platform" time="0.000199">
</testcase>
<testcase classname="fastlane.lanes" name="2: ensure_git_branch" time="0.004405">
</testcase>
<testcase classname="fastlane.lanes" name="3: pod_install" time="71.753121">
</testcase>
<testcase classname="fastlane.lanes" name="4: pod_lib_lint" time="6.737261">
</testcase>
<testcase classname="fastlane.lanes" name="5: version_bump_podspec" time="0.001046">
</testcase>
<testcase classname="fastlane.lanes" name="6: git_commit_all" time="0.041414">
</testcase>
<testcase classname="fastlane.lanes" name="7: add_git_tag" time="0.008887">
</testcase>
<testcase classname="fastlane.lanes" name="8: push_to_git_remote" time="2.915109">
</testcase>
<testcase classname="fastlane.lanes" name="9: pod_push" time="51.275524">
</testcase>
</testsuite>
</testsuites>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment