Skip to content

Commit 1b63692

Browse files
Syncing changes from private repository
1 parent 8d68262 commit 1b63692

File tree

717 files changed

+4285
-58
lines changed

Some content is hidden

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

717 files changed

+4285
-58
lines changed

.github/pull_request_template.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file using the standards as defined at [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0).
3+
4+
### Version 1.0.1 *(2024-08-01)*
5+
Added:
6+
7+
- `ApplicationPreferences` a data storage registry focused on Chartboost SDKs and their context.
8+
9+
### Version 1.0.0 *(2024-01-26)*
10+
11+
First version of Chartboost Utilities package for Unity.
12+
13+
Added:
14+
- General Chartboost shared constants an extension methods.

CHANGELOG.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CONTRIBUTING.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Contributing to Chartboost Core
2+
3+
We value each contribution provided by the community and strive to achieve the following goals for the most optimal contribution experience:
4+
5+
- Maintain the SDK's quality.
6+
- Fix problems that are important to users.
7+
- Enable a sustainable system for the SDK's maintainers to review contributions.
8+
9+
Therefore, this document will note specific steps and details required for you to contribute.
10+
11+
## How Can I Contribute?
12+
13+
There are two ways to contribute:
14+
- [Reporting Bugs](#reporting-bugs)
15+
- [Pull Requests](#pull-requests)
16+
17+
### Reporting Bugs
18+
Bugs are tracked as a type of [GitHub issues](https://guides.github.com/features/issues/). To submit a report, create an issue and provide the information instructed in the template.
19+
20+
> **Note:** If you find a **Closed** issue that seems similar to what you're experiencing, open a new issue and include a link to the closed issue.
21+
22+
Follow these guides to create a detailed and effective report for us to understand and resolve issues faster:
23+
24+
* **Use a clear, concise, and descriptive title** for the issue that identifies the problem.
25+
* **Describe the steps with as much concise detail as possible to reproduce the problem**. For example, start by explaining how the Chartboost Core SDK was initialized and the method calls invoked afterwards.
26+
* **Provide specific examples to demonstrate each step**. Include links to files, screenshots, Charles logs, or copy/pasteable code snippets used in those examples. Use [markdown code blocks]([https://help.github.com/articles/markdown-basics/#multiple-lines](https://help.github.com/articles/markdown-basics/#multiple-lines)) when providing snippets.
27+
* **Describe the behavior(s) observed** and explain why that behavior is a problem.
28+
* **Describe the behavior(s) expected.**
29+
* **Include screenshots and animated GIFs** of the described steps and behaviors that demonstrate the problem.
30+
* **If you're reporting a crash**, include the crash report with a stack trace and in the issue using either a [code block](https://help.github.com/articles/markdown-basics/#multiple-lines), [file attachment](https://help.github.com/articles/file-attachments-on-issues-and-pull-requests/), or [gist](https://gist.github.com/) link.
31+
* **If the problem is related to performance or memory**, include a CPU profile capture.
32+
* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened.
33+
34+
### Pull Requests
35+
In order to submit pull requests, you are required to review and sign the [Contribution License Agreement (CLA)](https://developers.chartboost.com/docs/mediation-contribution-license-agreement) which is available on the Chartboost website to view. Once you have read the agreement, sign the appropriate form depending on whether you are an individual an employer contributor.
36+
37+
- [Individual contributor license agreement form](https://na3.docusign.net/Member/PowerFormSigning.aspx?PowerFormId=159c66e8-610c-4afc-9330-15bc2217c291&env=na3&acct=9c982e12-8675-45df-9d81-95fe3656e695&v=2).
38+
_You wish to contribute on your own behalf as an individual._
39+
40+
- [Employer contributor license agreement form](https://na3.docusign.net/Member/PowerFormSigning.aspx?PowerFormId=73009870-c5f9-483f-b21c-eb3a222d2d6b&env=na3&acct=9c982e12-8675-45df-9d81-95fe3656e695&v=2).
41+
_You wish to contribute on behalf of your employer._
42+
43+
#### Submitting a Pull Request
44+
Follow these steps to have your contribution considered by the maintainers:
45+
46+
1. Review and sign the [Contribution License Agreement (CLA)](https://developers.chartboost.com/docs/mediation-contribution-license-agreement).
47+
2. Identify the issue related to your fix. If an issue doesn't exist, then create a new issue.
48+
3. Create a pull request.
49+
4. Format the title starting with the issue number, followed by a brief description of the fix. _Example: `[ISSUE-60] Fix null pointer exception`._
50+
5. Follow the [style guides](#style-guides) in your pull request.
51+
6. Submit your pull request.
52+
7. Verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing. If a status check is failing and you believe that the failure is unrelated to your change, then leave a comment on the pull request explaining why you believe the failure is unrelated. A maintainer will re-run the status check. If we conclude that the failure was a false positive, then we will open an issue to track the problem with our status check suite.
53+
54+
While the prerequisites above must be satisfied before your pull request is reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be accepted.
55+
56+
## Style Guides
57+
58+
### Git Commit Messages
59+
60+
* Use the present tense ("Add feature" not "Added feature")
61+
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
62+
* Limit the first line to 72 characters or less
63+
* Reference issues and pull requests liberally after the first line
64+
65+
### Kotlin
66+
67+
Follow the Android developers [Kotlin style guide](https://developer.android.com/kotlin/style-guide).
68+
69+
### Swift
70+
71+
Follow Google's [Swift style guide](https://google.github.io/swift/).
72+
73+
### C#
74+
75+
Follow Microsoft's [C# coding conventions guide](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions).

CONTRIBUTING.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<package>
33
<metadata>
44
<id>Chartboost.CSharp.Utilities.Unity</id>
5-
<version>1.0.0</version>
5+
<version>1.0.1</version>
66
<title>Chartboost Utilities for Unity</title>
77
<description>Reusable Utilities for Chartboost's Unity Projects</description>
88
<authors>Chartboost</authors>
@@ -12,5 +12,8 @@
1212
<copyright>Copyright 2024</copyright>
1313
<tags>Chartboost, Ads, Mediation, Unity, cs</tags>
1414
<repository type="git" url="https://github.com/ChartBoost/chartboost-unity-utilities"/>
15+
<dependencies>
16+
<dependency id="Chartboost.CSharp.Logging.Unity" version="1.0.0" />
17+
</dependencies>
1518
</metadata>
1619
</package>

Dependencies.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Chartboost.Utilities.Dependencies",
3+
"rootNamespace": "",
4+
"references": [],
5+
"includePlatforms": [
6+
"Editor"
7+
],
8+
"excludePlatforms": [],
9+
"allowUnsafeCode": false,
10+
"overrideReferences": false,
11+
"precompiledReferences": [],
12+
"autoReferenced": true,
13+
"defineConstraints": [],
14+
"versionDefines": [],
15+
"noEngineReferences": false
16+
}

Dependencies/Chartboost.Utilities.Dependencies.asmdef.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dependencies/DependencyInstaller.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using UnityEditor;
2+
using UnityEditor.PackageManager;
3+
4+
namespace Dependencies
5+
{
6+
/// <summary>
7+
/// Helper class that allows installation of any additional dependencies that are available to install using Unity Package Manager(UPM)
8+
/// This would allow installation of UPM based packages even when sdk is not installed using UPM
9+
/// </summary>
10+
[InitializeOnLoad]
11+
public static class DependencyInstaller
12+
{
13+
private const string NewtonSoftJsonDependency = "com.unity.nuget.newtonsoft-json";
14+
private const string NewtonSoftJsonVersion = "3.2.1";
15+
16+
private static readonly string[] DependencyPackages = {
17+
$"{NewtonSoftJsonDependency}@{NewtonSoftJsonVersion}"
18+
};
19+
20+
static DependencyInstaller()
21+
{
22+
foreach (var package in DependencyPackages)
23+
Client.Add(package);
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)