{"id":18333129,"url":"https://github.com/candycoded/appsettings","last_synced_at":"2025-04-09T18:43:49.370Z","repository":{"id":57402612,"uuid":"352496502","full_name":"CandyCoded/AppSettings","owner":"CandyCoded","description":"⚙️ Get app specific settings from the OS.","archived":false,"fork":false,"pushed_at":"2021-03-29T06:32:41.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-17T15:08:04.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CandyCoded.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-29T02:47:33.000Z","updated_at":"2021-03-29T06:53:37.000Z","dependencies_parsed_at":"2022-09-26T17:01:06.286Z","dependency_job_id":null,"html_url":"https://github.com/CandyCoded/AppSettings","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CandyCoded%2FAppSettings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CandyCoded%2FAppSettings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CandyCoded%2FAppSettings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CandyCoded%2FAppSettings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CandyCoded","download_url":"https://codeload.github.com/CandyCoded/AppSettings/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248090590,"owners_count":21046116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T19:41:24.424Z","updated_at":"2025-04-09T18:43:49.337Z","avatar_url":"https://github.com/CandyCoded.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# App Settings\n\n\u003e ⚙️ Get app specific settings from the OS.\n\n[![npm](https://img.shields.io/npm/v/xyz.candycoded.appsettings)](https://www.npmjs.com/package/xyz.candycoded.appsettings)\n\n### Unity Package Manager\n\n\u003chttps://docs.unity3d.com/Packages/com.unity.package-manager-ui@2.0/manual/index.html\u003e\n\n#### Git\n\n```json\n{\n  \"dependencies\": {\n    \"xyz.candycoded.appsettings\": \"https://github.com/CandyCoded/appsettings.git#v1.0.0\",\n    ...\n  }\n}\n```\n\n#### Scoped UPM Registry\n\n```json\n{\n  \"dependencies\": {\n    \"xyz.candycoded.appsettings\": \"1.0.0\",\n    ...\n  },\n  \"scopedRegistries\": [\n    {\n      \"name\": \"candycoded\",\n      \"url\": \"https://registry.npmjs.com\",\n      \"scopes\": [\"xyz.candycoded\"]\n    }\n  ]\n}\n```\n\n## Usage\n\n### Create `Settings.bundle` in iOS project\n\n\u003e Note: This will have to be done on each new build so safe the `.bundle` file somewhere outside the `Builds/` folder.\n\n\u003chttps://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/UserDefaults/Preferences/Preferences.html\u003e\n\n1. Right-click on the project in the project navigator\n1. Click **New File...**\n1. Search for **Resources / Settings Bundle**\n1. Click **Next**\n1. Rename the file if necessary\n1. Click **Create**\n1. Click on the newly created **Settings.bundle/Root.plist** file in the project navigator\n1. Make necessary changes\n\n### Reference the values from your app\n\n\u003e Note: The key used is the field **Identifier** in the **Settings.bundle/Root.plist** file.\n\n```csharp\nusing CandyCoded.AppSettings;\nusing UnityEngine;\n\npublic class TestAppSettings : MonoBehaviour\n{\n\n    private void Start()\n    {\n\n        Debug.Log(AppSettings.GetFloat(\"version\"));\n\n    }\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandycoded%2Fappsettings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcandycoded%2Fappsettings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandycoded%2Fappsettings/lists"}