{"id":13731834,"url":"https://github.com/rixment/awu-plugin","last_synced_at":"2025-04-10T21:22:04.212Z","repository":{"id":80023049,"uuid":"247908508","full_name":"rixment/awu-plugin","owner":"rixment","description":"Android Wrapper for Unity","archived":false,"fork":false,"pushed_at":"2021-01-20T13:45:30.000Z","size":155,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T18:52:25.436Z","etag":null,"topics":["android","android-library","unity","unity-android","unity-plugin"],"latest_commit_sha":null,"homepage":"","language":"Java","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/rixment.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-03-17T07:44:09.000Z","updated_at":"2024-09-30T09:39:26.000Z","dependencies_parsed_at":"2024-01-07T20:11:33.703Z","dependency_job_id":null,"html_url":"https://github.com/rixment/awu-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixment%2Fawu-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixment%2Fawu-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixment%2Fawu-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixment%2Fawu-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rixment","download_url":"https://codeload.github.com/rixment/awu-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248299024,"owners_count":21080449,"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":["android","android-library","unity","unity-android","unity-plugin"],"created_at":"2024-08-03T02:01:39.555Z","updated_at":"2025-04-10T21:22:04.186Z","avatar_url":"https://github.com/rixment.png","language":"Java","readme":"# Android Wrapper for Unity (awu)\n\nThis is an Android's _library_ that is designed to be used as a plugin within Unity's project. It is created using Android Studio 3.6 and should consist of all projects files required by the IDE if one desires to tweak its functionality to his or hers needs.\n\nThe main purpose of this _library_ is to allow the user to retreive platform related information within Unity's project and currently includes:\n\n- retreiving information regarding the state of the network via `isNetworkAvailable`\n- determining established connection type via `IsConnectedViaCellular` and `IsConnectedViaWifi`\n- determining if a device on which the app is running is of Tv-type via `isAndroidTv`\n- text based message sharing with the use of Android's Intent mechanism via `shareText`\n\n## How to integrate\n\n1. Clone _awu_ repository and build the _library_ using Android Studio yourself or download the latest _.aar library_ release from [here](awu/build/outputs/aar/awu-release.aar)\n\n2. Copy the _.aar library_ file into your Unity's project _Assets/Plugins/Android_ directory\n\n3. _(Optional)_ In Unity select the _.aar library_ file from Project window and mark the option __Load on startup__ from the Inspector\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"./read.me/awu_inspector.png\"\u003e\u003c/p\u003e \n\n4. Copy Unity's C# implementation available from [here](UnityScript/Awu.cs) into your _Assets/Scripts_\n\n## Usage\n\nUpon finishing the integration process described above you should be able to take advantage of _library's_ functionality.\u003cbr\u003e\nIn your C# Unity's code you can use it in the following way:\n\n```csharp\nbool isConnected = Awu.IsNetworkAvailable; // Let's check if we're connected to the internet\n\nbool isTv = Awu.IsAndroidTv; // Let's check if the game is running on Android TV enabled device\n\nbool isCellular = Awu.IsConnectedViaCellular; // Is mobile data connection established\n\nbool isWifi = Awu.IsConnectedViaWifi; // Is wifi connection established\n\n// Let's share our game with a friend via text message\nAwu.ShareText(\"Share via\", \"My Awesome Game\", new System.Uri(\"http://my.awesomegame.com\"));\n```\n\n## Proguard\n\nProjects utilising proguard obfuscation process should keep `-keep class rixment.awu.** { *; }` within its _proguard_ definition file.\n\n## Copyright and License\n\nCopyright 2005-2020 Rixment. Code released under the [MIT](./LICENSE) license.\n","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixment%2Fawu-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frixment%2Fawu-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixment%2Fawu-plugin/lists"}