Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit df6851f

Browse files
(っ˘▽˘)っ ☁️☁️☁️ ⊂(◕。◕⊂)
0 parents  commit df6851f

30 files changed

+2982
-0
lines changed

.gitignore

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Created by https://www.gitignore.io/api/osx,objective-c,xcode
2+
3+
### OSX ###
4+
.DS_Store
5+
.AppleDouble
6+
.LSOverride
7+
8+
# Icon must end with two \r
9+
Icon
10+
11+
12+
# Thumbnails
13+
._*
14+
15+
# Files that might appear in the root of a volume
16+
.DocumentRevisions-V100
17+
.fseventsd
18+
.Spotlight-V100
19+
.TemporaryItems
20+
.Trashes
21+
.VolumeIcon.icns
22+
23+
# Directories potentially created on remote AFP share
24+
.AppleDB
25+
.AppleDesktop
26+
Network Trash Folder
27+
Temporary Items
28+
.apdisk
29+
30+
31+
### Objective-C ###
32+
# Xcode
33+
#
34+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
35+
36+
## Build generated
37+
build/
38+
DerivedData
39+
40+
## Various settings
41+
*.pbxuser
42+
!default.pbxuser
43+
*.mode1v3
44+
!default.mode1v3
45+
*.mode2v3
46+
!default.mode2v3
47+
*.perspectivev3
48+
!default.perspectivev3
49+
xcuserdata
50+
51+
## Other
52+
*.xccheckout
53+
*.moved-aside
54+
*.xcuserstate
55+
*.xcscmblueprint
56+
57+
## Obj-C/Swift specific
58+
*.hmap
59+
*.ipa
60+
61+
# CocoaPods
62+
#
63+
# We recommend against adding the Pods directory to your .gitignore. However
64+
# you should judge for yourself, the pros and cons are mentioned at:
65+
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
66+
#
67+
Pods/
68+
69+
# Carthage
70+
#
71+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
72+
# Carthage/Checkouts
73+
74+
Carthage/Build
75+
76+
### Objective-C Patch ###
77+
*.xcscmblueprint
78+
79+
80+
### Xcode ###
81+
# Xcode
82+
#
83+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
84+
85+
## Build generated
86+
build/
87+
DerivedData
88+
89+
## Various settings
90+
*.pbxuser
91+
!default.pbxuser
92+
*.mode1v3
93+
!default.mode1v3
94+
*.mode2v3
95+
!default.mode2v3
96+
*.perspectivev3
97+
!default.perspectivev3
98+
xcuserdata
99+
100+
## Other
101+
*.xccheckout
102+
*.moved-aside
103+
*.xcuserstate
104+

.swiftlint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
line_length: 140
2+
file_length: 1000
3+
type_body_length: 500
4+
opt_in_rules:
5+
- empty_count
6+
disabled_rules:
7+
- cyclomatic_complexity
8+
excluded:
9+
- Pods

.travis.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
branches:
2+
only:
3+
- master
4+
language: objective-c
5+
os: osx
6+
osx_image: xcode7.2
7+
cache:
8+
- cocoapods
9+
env:
10+
matrix:
11+
- TEST_TYPE=iOS
12+
- TEST_TYPE=OSX
13+
- TEST_TYPE=OSXDemo
14+
- TEST_TYPE=CocoaPods
15+
before_install:
16+
- |
17+
gem install cocoapods --pre --quiet --no-ri --no-rdoc
18+
pod setup --silent
19+
pod repo update --silent
20+
21+
if [ "$TEST_TYPE" = iOS ] || [ "$TEST_TYPE" = OSX ] || [ "$TEST_TYPE" = OSXDemo ]; then
22+
pod install
23+
gem install xcpretty -N --no-ri --no-rdoc
24+
fi
25+
script:
26+
- |
27+
if [ "$TEST_TYPE" = iOS ]; then
28+
set -o pipefail
29+
xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk iphonesimulator -scheme ParseLiveQuery-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 4s" -destination "platform=iOS Simulator,name=iPhone 6 Plus" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
30+
elif [ "$TEST_TYPE" = OSX ]; then
31+
set -o pipefail
32+
xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk macosx -scheme ParseLiveQuery-OSX -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
33+
elif [ "$TEST_TYPE" = OSXDemo ]; then
34+
set -o pipefail
35+
xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk macosx -scheme LiveQueryDemo -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
36+
elif [ "$TEST_TYPE" = CocoaPods ]; then
37+
pod lib lint ParseLiveQuery.podspec
38+
fi
39+
after_success:
40+
- |
41+
if [ "$TEST_TYPE" = iOS ] || [ "$TEST_TYPE" = OSX ]; then
42+
bash <(curl -s https://codecov.io/bash)
43+
fi

CONTRIBUTING.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Contributing to Parse LiveQueryClient for iOS/OS X
2+
We want to make contributing to this project as easy and transparent as possible.
3+
4+
## Code of Conduct
5+
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https://code.facebook.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
6+
7+
## Our Development Process
8+
Most of our work will be done in public directly on GitHub. There may be changes done through our internal source control, but it will be rare and only as needed.
9+
10+
### `master` is unsafe
11+
Our goal is to keep `master` stable, but there may be changes that your application may not be compatible with. We'll do our best to publicize any breaking changes, but try to use our specific releases in any production environment.
12+
13+
### Pull Requests
14+
We actively welcome your pull requests. When we get one, we'll run some Parse-specific integration tests on it first. From here, we'll need to get a core member to sign off on the changes and then merge the pull request. For API changes we may need to fix internal uses, which could cause some delay. We'll do our best to provide updates and feedback throughout the process.
15+
16+
1. Fork the repo and create your branch from `master`.
17+
4. Add unit tests for any new code you add.
18+
3. If you've changed APIs, update the documentation.
19+
4. Ensure the test suite passes.
20+
5. Make sure your code lints.
21+
6. If you haven't already, complete the Contributor License Agreement ("CLA").
22+
23+
### Contributor License Agreement ("CLA")
24+
In order to accept your pull request, we need you to submit a CLA. You only need to do this once to work on any of Facebook's open source projects.
25+
26+
Complete your CLA here: <https://developers.facebook.com/opensource/cla>
27+
28+
## Bugs
29+
Although we try to keep developing on Parse easy, you still may run into some issues. General questions should be asked on [Google Groups][google-group], technical questions should be asked on [Stack Overflow][stack-overflow], and for everything else we'll be using GitHub issues.
30+
31+
### Known Issues
32+
We use GitHub issues to track public bugs. We will keep a close eye on this and try to make it clear when we have an internal fix in progress. Before filing a new issue, try to make sure your problem doesn't already exist.
33+
34+
### Reporting New Issues
35+
36+
Details are key. The more information you provide us the easier it'll be for us to debug and the faster you'll receive a fix. Some examples of useful tidbits:
37+
38+
* A description. What did you expect to happen and what actually happened? Why do you think that was wrong?
39+
* A simple unit test that fails. You can submit a pull request with your failing unit test so that our CI verifies that the test fails.
40+
* What version does this reproduce on? What version did it last work on?
41+
* [Stacktrace or GTFO][stacktrace-or-gtfo]. In all honesty, full stacktraces with line numbers make a happy developer.
42+
* Anything else you find relevant.
43+
44+
45+
### Security Bugs
46+
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe disclosure of security bugs. In those cases, please go through the process outlined on that page and do not file a public issue.
47+
48+
## Style Guide
49+
We're still working on providing a code style for your IDE and getting a linter on GitHub, but for now try to keep the following:
50+
51+
* Most importantly, match the existing code style as much as possible.
52+
* Try to keep lines under 120 characters, if possible.
53+
54+
## License
55+
By contributing to Parse Live Query, you agree that your contributions will be licensed under its license.
56+
57+
[google-group]: https://groups.google.com/forum/#!forum/parse-developers
58+
[stack-overflow]: http://stackoverflow.com/tags/parse.com
59+
[rest-api]: https://www.parse.com/docs/rest/guide
60+
[parse-api-console]: http://blog.parse.com/announcements/introducing-the-parse-api-console/
61+
[stacktrace-or-gtfo]: http://i.imgur.com/jacoj.jpg

0 commit comments

Comments
 (0)