Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Commit

Permalink
Released 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nlutsenko committed Nov 6, 2014
0 parents commit b2ed9ff
Show file tree
Hide file tree
Showing 92 changed files with 8,422 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
DS_Store

*.pbxuser
*.perspective
*.perspectivev3

*.mode1v3
*.mode2v3

*.xcodeproj/xcuserdata/*.xcuserdatad

*.xccheckout
*.xcuserdatad

Pods
Podfile.lock

DerivedData
build

PFResources.*
ParseUI.xcworkspace
29 changes: 29 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Contributing to ParseUI
We want to make contributing to this project as easy and transparent as possible.

## Pull Requests
We actively welcome your pull requests.

1. Fork the repo and create your branch from `master`.
2. If you've added code that should be tested, add tests
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes.
5. Make sure your code lints.
6. If you haven't already, complete the Contributor License Agreement ("CLA").

## Contributor License Agreement ("CLA")
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.

Complete your CLA here: <https://developers.facebook.com/opensource/cla>

## Issues
We use GitHub issues to track public bugs. Please ensure your description is clear and has sufficient instructions to be able to reproduce the issue.

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.

## Coding Style
* Most importantly, match the existing code style as much as possible.
* Try to keep lines under 100 characters, if possible.

## License
By contributing to ParseUI, you agree that your contributions will be licensed under its license.
17 changes: 17 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Copyright (c) 2014, Facebook, Inc. All rights reserved.

You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
copy, modify, and distribute this software in source code or binary form for use
in connection with the web services and APIs provided by Facebook.

As with any software that integrates with the Facebook platform, your use of
this software is subject to the Facebook Developer Principles and Policies
[http://developers.facebook.com/policy/]. This copyright notice shall be
included in all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
36 changes: 36 additions & 0 deletions ParseUI.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Pod::Spec.new do |s|
s.name = 'ParseUI'
s.version = '1.0.0'
s.license = { :type => 'SDK', :file => 'LICENSE'}
s.homepage = 'https://www.parse.com/'
s.summary = 'ParseUI is a library of useful User Interface components for the Parse iOS SDK.'
s.authors = 'Parse'
s.social_media_url = 'https://twitter.com/ParseIt'

s.source = { :git => "https://github.com/ParsePlatform/ParseUI-iOS.git", :tag => s.version.to_s }

s.platform = :ios
s.requires_arc = true
s.ios.deployment_target = '6.0'

s.prepare_command = <<-CMD
ruby ParseUI/Scripts/convert_images.rb \
ParseUI/Resources/Images/ \
ParseUI/Generated/PFResources
CMD
s.source_files = "ParseUI/**/*.{h,m}"
s.public_header_files = 'ParseUI/Classes/LogInViewController/*.h',
'ParseUI/Classes/SignUpViewController/*.h',
'ParseUI/Classes/QueryTableViewController/*.h',
'ParseUI/Classes/ProductTableViewController/*.h',
'ParseUI/Classes/Views/*.h',
'ParseUI/Classes/Cells/*.h',
'ParseUI/Classes/Other/*.h'
s.frameworks = 'Foundation',
'UIKit',
'CoreGraphics',
'QuartzCore'

s.dependency 'Parse', '~> 1.5.0'
s.dependency 'ParseFacebookUtils', '~> 1.5.0'
end
598 changes: 598 additions & 0 deletions ParseUI.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions ParseUI.xcodeproj/xcshareddata/xcschemes/ParseUI.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0600"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D2AAC07D0554694100DB518D"
BuildableName = "ParseUI.framework"
BlueprintName = "ParseUI"
ReferencedContainer = "container:ParseUI.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D2AAC07D0554694100DB518D"
BuildableName = "ParseUI.framework"
BlueprintName = "ParseUI"
ReferencedContainer = "container:ParseUI.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D2AAC07D0554694100DB518D"
BuildableName = "ParseUI.framework"
BlueprintName = "ParseUI"
ReferencedContainer = "container:ParseUI.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
63 changes: 63 additions & 0 deletions ParseUI/Classes/Cells/PFPurchaseTableViewCell.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
* copy, modify, and distribute this software in source code or binary form for use
* in connection with the web services and APIs provided by Facebook.
*
* As with any software that integrates with the Facebook platform, your use of
* this software is subject to the Facebook Developer Principles and Policies
* [http://developers.facebook.com/policy/]. This copyright notice shall be
* included in all copies or substantial portions of the software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/

#import <UIKit/UIKit.h>

#import <ParseUI/PFTableViewCell.h>

/*!
An enum that represents states of the PFPurchaseTableViewCell.
@see PFPurchaseTableViewCell
*/
typedef NS_ENUM(uint8_t, PFPurchaseTableViewCellState) {
/*! Normal state of the cell. */
PFPurchaseTableViewCellStateNormal = 0,
/*! Downloading state of the cell. */
PFPurchaseTableViewCellStateDownloading,
/*! State of the cell, when the product was downloaded. */
PFPurchaseTableViewCellStateDownloaded
};

/*!
`PFPurchaseTableViewCell` is a subclass <PFTableViewCell> that is used to show
products in a <PFProductTableViewController>.
@see PFProductTableViewController
*/
@interface PFPurchaseTableViewCell : PFTableViewCell

/*!
@abstract State of the cell.
@see PFPurchaseTableViewCellState
*/
@property (nonatomic, assign) PFPurchaseTableViewCellState state;

/*!
@abstract Label where price of the product is displayed.
*/
@property (nonatomic, strong, readonly) UILabel *priceLabel;

/*!
@abstract Progress view that is shown, when the product is downloading.
*/
@property (nonatomic, strong, readonly) UIProgressView *progressView;

@end
Loading

0 comments on commit b2ed9ff

Please sign in to comment.