├── .github └── FUNDING.yml ├── ProjectSettings ├── ProjectVersion.txt ├── TagManager.asset ├── AudioManager.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── TimeManager.asset ├── DynamicsManager.asset ├── EditorSettings.asset ├── NetworkManager.asset ├── ProjectSettings.asset ├── QualitySettings.asset ├── GraphicsSettings.asset ├── Physics2DSettings.asset ├── ClusterInputManager.asset ├── EditorBuildSettings.asset └── UnityConnectSettings.asset ├── Assets ├── Scenes │ ├── Demo.unity │ └── Demo.unity.meta ├── Scripts │ ├── TestRequest.cs │ └── TestRequest.cs.meta ├── Plugins │ ├── iOS │ │ ├── IOSReviewRequest.m │ │ ├── IOSReviewRequest.cs.meta │ │ ├── IOSReviewRequest.cs │ │ └── IOSReviewRequest.m.meta │ └── iOS.meta ├── Plugins.meta ├── Scenes.meta └── Scripts.meta ├── README.md ├── .gitattributes ├── LICENSE └── .gitignore /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: Elringus 2 | ko_fi: elringus 3 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.6.2f1 2 | -------------------------------------------------------------------------------- /Assets/Scenes/Demo.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/Assets/Scenes/Demo.unity -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/ios-review-request/HEAD/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /Assets/Scripts/TestRequest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class TestRequest : MonoBehaviour 4 | { 5 | private void Start () 6 | { 7 | IOSReviewRequest.RequestReview(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/Scenes/Demo.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48b2b4a77e43a6346be98bcd36981af3 3 | timeCreated: 1498132405 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/iOS/IOSReviewRequest.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | void RequestReviewInternal() 4 | { 5 | #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 103000 6 | [SKStoreReviewController requestReview]; 7 | #endif 8 | } 9 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95c41cf2c8c53e54e97375ddbe5c429f 3 | folderAsset: yes 4 | timeCreated: 1498132384 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa79a6dcb860de842a1c288398e2e9d8 3 | folderAsset: yes 4 | timeCreated: 1498132399 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 631a3b34a2956d14398493c51daa6b92 3 | folderAsset: yes 4 | timeCreated: 1498132493 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/iOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d6631f4fe41c924ea8befd8638c3739 3 | folderAsset: yes 4 | timeCreated: 1498131509 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/TestRequest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c81349204f34c1849ac4cfc66c7bdb59 3 | timeCreated: 1498132652 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/iOS/IOSReviewRequest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1eb1bbaa6211e423b98f20c866dde362 3 | timeCreated: 1497902531 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iOSReviewRequest 2 | 3 | A simple C# wrapper to execute native iOS review request. 4 | 5 | [iOSReviewRequest.unitypackage](https://github.com/Elringus/iOSReviewRequest/releases/download/v1.0-release/iOSReviewRequest.unitypackage) 6 | 7 | *iOS version 10.3 or higher is required.* 8 | 9 | ![ReviewRequest](https://i.gyazo.com/ff94730f69ae4efca322e83e01b76831.png) 10 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /Assets/Plugins/iOS/IOSReviewRequest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | #if UNITY_IOS && !UNITY_EDITOR 3 | using System.Runtime.InteropServices; 4 | #endif 5 | 6 | /// 7 | /// Wrapper to call a native iOS review request. 8 | /// Requires iOS version 10.3 or higher. 9 | /// 10 | public static class IOSReviewRequest 11 | { 12 | #if UNITY_IOS && !UNITY_EDITOR 13 | [DllImport("__Internal")] 14 | private static extern void RequestReviewInternal(); 15 | #endif 16 | 17 | public static void RequestReview () 18 | { 19 | #if UNITY_IOS && !UNITY_EDITOR 20 | RequestReviewInternal(); 21 | #else 22 | Debug.Log("Native iOS review request wasn't performed due to incompatible platform."); 23 | #endif 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Artyom Sovetnikov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | 8 | # Autogenerated VS/MD solution and project files 9 | ExportedObj/ 10 | *.csproj 11 | *.unityproj 12 | *.sln 13 | *.suo 14 | *.tmp 15 | *.user 16 | *.userprefs 17 | *.pidb 18 | *.booproj 19 | *.svd 20 | 21 | 22 | # Unity3D generated meta files 23 | *.pidb.meta 24 | 25 | # Unity3D Generated File On Crash Reports 26 | sysinfo.txt 27 | 28 | # Builds 29 | *.apk 30 | *.unitypackage 31 | 32 | # ========================= 33 | # Operating System Files 34 | # ========================= 35 | 36 | # OSX 37 | # ========================= 38 | 39 | .DS_Store 40 | .AppleDouble 41 | .LSOverride 42 | 43 | # Thumbnails 44 | ._* 45 | 46 | # Files that might appear in the root of a volume 47 | .DocumentRevisions-V100 48 | .fseventsd 49 | .Spotlight-V100 50 | .TemporaryItems 51 | .Trashes 52 | .VolumeIcon.icns 53 | 54 | # Directories potentially created on remote AFP share 55 | .AppleDB 56 | .AppleDesktop 57 | Network Trash Folder 58 | Temporary Items 59 | .apdisk 60 | 61 | # Windows 62 | # ========================= 63 | 64 | # Windows image file caches 65 | Thumbs.db 66 | ehthumbs.db 67 | 68 | # Folder config file 69 | Desktop.ini 70 | 71 | # Recycle Bin used on file shares 72 | $RECYCLE.BIN/ 73 | 74 | # Windows Installer files 75 | *.cab 76 | *.msi 77 | *.msm 78 | *.msp 79 | 80 | # Windows shortcuts 81 | *.lnk 82 | -------------------------------------------------------------------------------- /Assets/Plugins/iOS/IOSReviewRequest.m.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb96fd84a669b4331ad8f235a7078d36 3 | timeCreated: 1497902645 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | '': Any 15 | second: 16 | enabled: 0 17 | settings: 18 | Exclude Android: 1 19 | Exclude Editor: 1 20 | Exclude Linux: 1 21 | Exclude Linux64: 1 22 | Exclude LinuxUniversal: 1 23 | Exclude OSXIntel: 1 24 | Exclude OSXIntel64: 1 25 | Exclude OSXUniversal: 1 26 | Exclude Win: 1 27 | Exclude Win64: 1 28 | Exclude iOS: 0 29 | Exclude tvOS: 1 30 | data: 31 | first: 32 | '': Editor 33 | second: 34 | enabled: 0 35 | settings: 36 | CPU: AnyCPU 37 | OS: AnyOS 38 | data: 39 | first: 40 | Android: Android 41 | second: 42 | enabled: 0 43 | settings: 44 | CPU: ARMv7 45 | data: 46 | first: 47 | Any: 48 | second: 49 | enabled: 0 50 | settings: {} 51 | data: 52 | first: 53 | Editor: Editor 54 | second: 55 | enabled: 0 56 | settings: 57 | DefaultValueInitialized: true 58 | data: 59 | first: 60 | Facebook: Win 61 | second: 62 | enabled: 0 63 | settings: 64 | CPU: AnyCPU 65 | data: 66 | first: 67 | Facebook: Win64 68 | second: 69 | enabled: 0 70 | settings: 71 | CPU: AnyCPU 72 | data: 73 | first: 74 | Standalone: Linux 75 | second: 76 | enabled: 0 77 | settings: 78 | CPU: x86 79 | data: 80 | first: 81 | Standalone: Linux64 82 | second: 83 | enabled: 0 84 | settings: 85 | CPU: x86_64 86 | data: 87 | first: 88 | Standalone: OSXIntel 89 | second: 90 | enabled: 0 91 | settings: 92 | CPU: AnyCPU 93 | data: 94 | first: 95 | Standalone: OSXIntel64 96 | second: 97 | enabled: 0 98 | settings: 99 | CPU: AnyCPU 100 | data: 101 | first: 102 | Standalone: Win 103 | second: 104 | enabled: 0 105 | settings: 106 | CPU: AnyCPU 107 | data: 108 | first: 109 | Standalone: Win64 110 | second: 111 | enabled: 0 112 | settings: 113 | CPU: AnyCPU 114 | data: 115 | first: 116 | iPhone: iOS 117 | second: 118 | enabled: 1 119 | settings: 120 | CompileFlags: 121 | FrameworkDependencies: StoreKit; 122 | data: 123 | first: 124 | tvOS: tvOS 125 | second: 126 | enabled: 0 127 | settings: 128 | CompileFlags: 129 | FrameworkDependencies: 130 | userData: 131 | assetBundleName: 132 | assetBundleVariant: 133 | --------------------------------------------------------------------------------