Commit 7dea1ff7 authored by 汪洋's avatar 汪洋

删除没有用的log

parent ea5d5424
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "GMRefresh" s.name = "GMRefresh"
s.version = "0.1.0" s.version = "0.1.1"
s.summary = "基于MJRefresh做的下拉刷新,自动加载更多" s.summary = "基于MJRefresh做的下拉刷新,自动加载更多"
s.homepage = "http://git.gengmei.cc/gengmeiios/GMLibrary/GMRefresh" s.homepage = "http://git.gengmei.cc/gengmeiios/GMLibrary/GMRefresh"
s.license = 'MIT' s.license = 'MIT'
......
...@@ -65,7 +65,6 @@ ...@@ -65,7 +65,6 @@
if (self.state == MJRefreshStateIdle && pullingPercent != 0.0) { if (self.state == MJRefreshStateIdle && pullingPercent != 0.0) {
_prepareImageView.hidden = NO; _prepareImageView.hidden = NO;
if (pullingPercent <= 1.0 ) { if (pullingPercent <= 1.0 ) {
NSLog(@"%f", pullingPercent);
// 下拉过程中 // 下拉过程中
self.gifView.hidden = YES; self.gifView.hidden = YES;
CGFloat translation = self.mj_h * pullingPercent / 2; CGFloat translation = self.mj_h * pullingPercent / 2;
......
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 = "GMRefresh.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"], use_bundle_exec: true)
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"]) # 提交到 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.000555">
</testcase>
<testcase classname="fastlane.lanes" name="1: default_platform" time="0.000182">
</testcase>
<testcase classname="fastlane.lanes" name="2: ensure_git_branch" time="0.005641">
</testcase>
<testcase classname="fastlane.lanes" name="3: pod_install" time="32.097045">
</testcase>
<testcase classname="fastlane.lanes" name="4: pod_lib_lint" time="7.063782">
</testcase>
<testcase classname="fastlane.lanes" name="5: version_bump_podspec" time="0.00104">
</testcase>
<testcase classname="fastlane.lanes" name="6: git_commit_all" time="0.014221">
</testcase>
<testcase classname="fastlane.lanes" name="7: add_git_tag" time="0.009203">
</testcase>
<testcase classname="fastlane.lanes" name="8: push_to_git_remote" time="0.769021">
</testcase>
<testcase classname="fastlane.lanes" name="9: pod_push" time="69.116228">
</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