Skip to content

Commit facd225

Browse files
author
Listiarso Wastuargo
committed
(っ˘▽˘)っ ☁️ ⊂(◕。◕⊂)
0 parents  commit facd225

File tree

452 files changed

+40232
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

452 files changed

+40232
-0
lines changed

.gitignore

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
2+
[Bb]in/
3+
[Oo]bj/
4+
5+
# mstest test results
6+
TestResults
7+
8+
# AppPackages for Win8
9+
AppPackages/
10+
11+
## Ignore Visual Studio temporary files, build results, and
12+
## files generated by popular Visual Studio add-ons.
13+
14+
# User-specific files
15+
*.suo
16+
*.user
17+
*.sln.docstates
18+
*.userprefs
19+
20+
# Build results
21+
[Dd]ebug/
22+
[Rr]elease/
23+
x64/
24+
*_i.c
25+
*_p.c
26+
*.ilk
27+
*.meta
28+
*.obj
29+
*.pch
30+
*.pdb
31+
*.pgc
32+
*.pgd
33+
*.rsp
34+
*.sbr
35+
*.tlb
36+
*.tli
37+
*.tlh
38+
*.tmp
39+
*.log
40+
*.vspscc
41+
*.vssscc
42+
*.pyc
43+
.builds
44+
dist/
45+
46+
# Visual C++ cache files
47+
ipch/
48+
*.aps
49+
*.ncb
50+
*.opensdf
51+
*.sdf
52+
53+
# Visual Studio profiler
54+
*.psess
55+
*.vsp
56+
*.vspx
57+
58+
# Guidance Automation Toolkit
59+
*.gpState
60+
61+
# ReSharper is a .NET coding add-in
62+
_ReSharper*
63+
64+
# NCrunch
65+
*.ncrunch*
66+
.*crunch*.local.xml
67+
68+
# Installshield output folder
69+
[Ee]xpress
70+
71+
# DocProject is a documentation generator add-in
72+
DocProject/buildhelp/
73+
DocProject/Help/*.HxT
74+
DocProject/Help/*.HxC
75+
DocProject/Help/*.hhc
76+
DocProject/Help/*.hhk
77+
DocProject/Help/*.hhp
78+
DocProject/Help/Html2
79+
DocProject/Help/html
80+
81+
# Click-Once directory
82+
publish
83+
84+
# Publish Web Output
85+
*.Publish.xml
86+
87+
# NuGet Packages Directory
88+
packages/
89+
90+
# Windows Azure Build Output
91+
csx
92+
*.build.csdef
93+
94+
# Others
95+
[Bb]in
96+
[Oo]bj
97+
sql
98+
TestResults
99+
[Tt]est[Rr]esult*
100+
*.Cache
101+
ClientBin
102+
[Ss]tyle[Cc]op.*
103+
~$*
104+
*.dbmdl
105+
Generated_Code #added for RIA/Silverlight projects
106+
107+
# Backup & report files from converting an old project file to a newer
108+
# Visual Studio version. Backup files are not needed, because we have git ;-)
109+
_UpgradeReport_Files/
110+
Backup*/
111+
UpgradeLog*.XML

.nuget/NuGet.Config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<solution>
4+
<add key="disableSourceControlIntegration" value="true" />
5+
</solution>
6+
</configuration>

.nuget/NuGet.exe

1.59 MB
Binary file not shown.

.nuget/NuGet.targets

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
5+
6+
<!-- Enable the restore command to run before builds -->
7+
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
8+
9+
<!-- Property that enables building a package from a project -->
10+
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
11+
12+
<!-- Determines if package restore consent is required to restore packages -->
13+
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
14+
15+
<!-- Download NuGet.exe if it does not already exist -->
16+
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
17+
</PropertyGroup>
18+
19+
<ItemGroup Condition=" '$(PackageSources)' == '' ">
20+
<!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
21+
<!--
22+
<PackageSource Include="https://nuget.org/api/v2/" />
23+
<PackageSource Include="https://my-nuget-source/nuget/" />
24+
-->
25+
</ItemGroup>
26+
27+
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
28+
<!-- Windows specific commands -->
29+
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
30+
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
31+
<PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir>
32+
</PropertyGroup>
33+
34+
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
35+
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
36+
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
37+
<PackagesConfig>packages.config</PackagesConfig>
38+
<PackagesDir>$(SolutionDir)packages</PackagesDir>
39+
</PropertyGroup>
40+
41+
<PropertyGroup>
42+
<!-- NuGet command -->
43+
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
44+
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
45+
46+
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
47+
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
48+
49+
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
50+
51+
<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
52+
<!-- Commands -->
53+
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -o "$(PackagesDir)"</RestoreCommand>
54+
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
55+
56+
<!-- Make the build depend on restore packages -->
57+
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
58+
RestorePackages;
59+
$(BuildDependsOn);
60+
</BuildDependsOn>
61+
62+
<!-- Make the build depend on restore packages -->
63+
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
64+
$(BuildDependsOn);
65+
BuildPackage;
66+
</BuildDependsOn>
67+
</PropertyGroup>
68+
69+
<Target Name="CheckPrerequisites">
70+
<!-- Raise an error if we're unable to locate nuget.exe -->
71+
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
72+
<SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
73+
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
74+
</Target>
75+
76+
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
77+
<Exec Command="$(RestoreCommand)"
78+
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
79+
80+
<Exec Command="$(RestoreCommand)"
81+
LogStandardErrorAsError="true"
82+
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
83+
</Target>
84+
85+
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
86+
<Exec Command="$(BuildCommand)"
87+
Condition=" '$(OS)' != 'Windows_NT' " />
88+
89+
<Exec Command="$(BuildCommand)"
90+
LogStandardErrorAsError="true"
91+
Condition=" '$(OS)' == 'Windows_NT' " />
92+
</Target>
93+
94+
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
95+
<ParameterGroup>
96+
<OutputFilename ParameterType="System.String" Required="true" />
97+
</ParameterGroup>
98+
<Task>
99+
<Reference Include="System.Core" />
100+
<Using Namespace="System" />
101+
<Using Namespace="System.IO" />
102+
<Using Namespace="System.Net" />
103+
<Using Namespace="Microsoft.Build.Framework" />
104+
<Using Namespace="Microsoft.Build.Utilities" />
105+
<Code Type="Fragment" Language="cs">
106+
<![CDATA[
107+
try {
108+
OutputFilename = Path.GetFullPath(OutputFilename);
109+
110+
Log.LogMessage("Downloading latest version of NuGet.exe...");
111+
WebClient webClient = new WebClient();
112+
webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
113+
114+
return true;
115+
}
116+
catch (Exception ex) {
117+
Log.LogErrorFromException(ex);
118+
return false;
119+
}
120+
]]>
121+
</Code>
122+
</Task>
123+
</UsingTask>
124+
125+
<UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
126+
<ParameterGroup>
127+
<EnvKey ParameterType="System.String" Required="true" />
128+
<EnvValue ParameterType="System.String" Required="true" />
129+
</ParameterGroup>
130+
<Task>
131+
<Using Namespace="System" />
132+
<Code Type="Fragment" Language="cs">
133+
<![CDATA[
134+
try {
135+
Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
136+
}
137+
catch {
138+
}
139+
]]>
140+
</Code>
141+
</Task>
142+
</UsingTask>
143+
</Project>

.nuget/packages.config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="coveralls.net" version="0.6.0" />
4+
<package id="OpenCover" version="4.6.166" />
5+
</packages>

CONTRIBUTING.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Contributing to Parse SDK for .NET
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+
Not all issues are SDK issues. If you're unsure whether your bug is with the SDK or backend, you can test to see if it reproduces with our [REST API][rest-api] and [Parse API Console][parse-api-console]. If it does, you can report backend bugs [here][bug-reports].
36+
37+
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:
38+
39+
* A description. What did you expect to happen and what actually happened? Why do you think that was wrong?
40+
* A simple unit test that fails. Refer [here][tests-dir] for examples of existing unit tests. See our [README](README.md#usage) for how to run unit tests. You can submit a pull request with your failing unit test so that our CI verifies that the test fails.
41+
* What version does this reproduce on? What version did it last work on?
42+
* [Stacktrace or GTFO][stacktrace-or-gtfo]. In all honesty, full stacktraces with line numbers make a happy developer.
43+
* Anything else you find relevant.
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 more concise code style for your IDE and getting a linter on GitHub, but for now try to keep the following:
50+
51+
* If you're developing on Visual Studio, please use `Parse.vssettings`.
52+
* Most importantly, match the existing code style as much as possible.
53+
* Try to keep lines under 120 characters, if possible.
54+
55+
## License
56+
By contributing to Parse .NET SDK, you agree that your contributions will be licensed under its license.
57+
58+
[google-group]: https://groups.google.com/forum/#!forum/parse-developers
59+
[stack-overflow]: http://stackoverflow.com/tags/parse.com
60+
[bug-reports]: https://www.parse.com/help#report
61+
[rest-api]: https://www.parse.com/docs/rest/guide
62+
[parse-api-console]: http://blog.parse.com/announcements/introducing-the-parse-api-console/
63+
[stacktrace-or-gtfo]: http://i.imgur.com/jacoj.jpg
64+
[tests-dir]: /ParseTest.Unit

LICENSE

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
BSD License
2+
3+
For Parse .NET SDK software
4+
5+
Copyright (c) 2015-present, Parse, LLC. All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without modification,
8+
are permitted provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice, this
11+
list of conditions and the following disclaimer.
12+
13+
* Redistributions in binary form must reproduce the above copyright notice,
14+
this list of conditions and the following disclaimer in the documentation
15+
and/or other materials provided with the distribution.
16+
17+
* Neither the name Parse nor the names of its contributors may be used to
18+
endorse or promote products derived from this software without specific
19+
prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)