forked from fastlane/fastlane
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to explicity flag "is_optional" for fields that we check
- Loading branch information
Joshua Liebowitz
committed
Jun 22, 2017
1 parent
3a94113
commit d482921
Showing
13 changed files
with
68 additions
and
43 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
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
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
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
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 |
---|---|---|
|
@@ -34,12 +34,12 @@ Precheck | |
[![Twitter: @FastlaneTools](https://img.shields.io/badge/[email protected]?style=flat)](https://twitter.com/FastlaneTools) | ||
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/fastlane/fastlane/blob/master/LICENSE) | ||
|
||
###### Pass App Store precheck, the first time | ||
###### Check your app using a community driven set of App Store review rules to avoid being rejected | ||
|
||
Apple rejects builds for many avoidable metadata issues like including swear words 😮, other companies’ trademarks, or even mentioning an iOS bug 🐛. _fastlane precheck_ takes a lot of the guess work out by scanning your app’s details in iTunes Connect for avoidable problems. fastlane precheck helps you get your app through app review without rejections so you can ship faster 🚀 | ||
|
||
|
||
Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.com/FastlaneTools) | ||
Get in contact with the developers on Twitter: [@FastlaneTools](https://twitter.com/FastlaneTools) | ||
|
||
------- | ||
|
||
|
@@ -59,16 +59,17 @@ Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.c | |
|
||
# Features | ||
|
||
- Many scanning rules: | ||
- product bug 🐛 mentions | ||
- swear word checker 🙅♂️ | ||
- mentioning other platforms 🤖 | ||
- url reachability checker 😵 | ||
- placeholder/test words/mentioning future features 📝 | ||
- Copyright date checking | ||
- customizable word list checking 🙈 | ||
- You can use our pre-selected list of what we would use, or you can customize which rules to check for, so you run the rules you care most about. | ||
- Customizable: you can decide if you want to warn 📢 about potential problems and continue or have fastlane show an error 🙅 and stop after all scans are done. | ||
|
||
| | precheck Features | | ||
|----------|-----------------| | ||
|🐛| product bug mentions| | ||
|🙅♂️|Swear word checker| | ||
|🤖|Mentioning other platforms| | ||
|😵|URL reachability checker| | ||
|📝|Placeholder/test words/mentioning future features| | ||
|📅|Copyright date checking| | ||
|🙈|Customizable word list checking| | ||
|📢|You can decide if you want to warn about potential problems and continue or have _fastlane_ show an error and stop after all scans are done.| | ||
|
||
##### [Do you like fastlane? Be the first to know about updates and new fastlane tools](https://tinyletter.com/fastlane-tools) | ||
|
||
|
@@ -77,13 +78,15 @@ Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.c | |
sudo gem install fastlane | ||
|
||
# Usage | ||
Run fastlane precheck to check the app metadata from iTunes Connect | ||
Run _fastlane precheck_ to check the app metadata from iTunes Connect | ||
|
||
fastlane precheck | ||
|
||
To get a list of available options run | ||
|
||
fastlane precheck --help | ||
|
||
<img src="assets/precheck.gif" /> | ||
|
||
# Example | ||
|
||
|
@@ -92,23 +95,32 @@ Since you might want to manually trigger _precheck_ but don't want to specify al | |
Run `fastlane precheck init` to create a new configuration file. Example: | ||
|
||
```ruby | ||
apple_things(level: :skip) # indicates that your metadata will not be checked by this rule | ||
curse_words(level: :warn) # when triggered, this rule will warn you of a potential problem | ||
unreachable_urls(level: :error) # show error and prevent any further commands from running after fastlane precheck finishes | ||
custom_text(data: ["fabric"], level: :warn) # pass in whatever words you want to check for | ||
# indicates that your metadata will not be checked by this rule | ||
negative_apple_sentiment(level: :skip) | ||
|
||
# when triggered, this rule will warn you of a potential problem | ||
curse_words(level: :warn) | ||
|
||
# show error and prevent any further commands from running after fastlane precheck finishes | ||
unreachable_urls(level: :error) | ||
|
||
# pass in whatever words you want to check for | ||
custom_text(data: ["chrome", "webos"], | ||
level: :warn) | ||
``` | ||
|
||
### Use with [`fastlane`](https://github.com/fastlane/fastlane/tree/master/fastlane) | ||
### Use with [_fastlane_](https://github.com/fastlane/fastlane/tree/master/fastlane) | ||
|
||
_precheck_ is totally integrated with [`deliver`](https://github.com/fastlane/fastlane/tree/master/deliver) another [`fastlane`](https://github.com/fastlane/fastlane/tree/master/fastlane) tool. | ||
_precheck_ is fully integrated with [_deliver_](https://github.com/fastlane/fastlane/tree/master/deliver) another [_fastlane_](https://github.com/fastlane/fastlane/tree/master/fastlane) tool. | ||
|
||
Update your `Fastfile` to contain the following code: | ||
|
||
```ruby | ||
lane :production do | ||
... | ||
# by default deliver will call precheck and warn you of any problems | ||
# if you want precheck to halt submitting to app review, you can pass precheck_default_rule_level: :error | ||
# if you want precheck to halt submitting to app review, you can pass | ||
# precheck_default_rule_level: :error | ||
deliver(precheck_default_rule_level: :error) | ||
... | ||
end | ||
|
@@ -122,7 +134,7 @@ end | |
|
||
# How does it work? | ||
|
||
`precheck` will access the `iTunes Connect` to download your app's metadata. It uses [spaceship](https://spaceship.airforce) to communicate with Apple's web services. | ||
`precheck` will access `iTunes Connect` to download your app's metadata. It uses [spaceship](https://spaceship.airforce) to communicate with Apple's web services. | ||
|
||
|
||
# Tips | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
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
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
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
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
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