From 6cbf48cf4b0bb7d8613c4d84fb3571c128fb0044 Mon Sep 17 00:00:00 2001 From: Barry Carroll Date: Fri, 4 Nov 2016 16:26:53 +0000 Subject: [PATCH] Increases the clarity of installation instructions and fixes an issue in the build script * Make it more clear about which provider to use in the AndroidManifest.xml * Fix an issue where the android plugin would not be generated if a zip of the repository was downloaded * Expand the README with more requirements --- README.md | 34 +++++++++++++++---- .../plugin-dependencies/AndroidManifest.xml | 6 ++-- build.gradle | 3 +- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 89e02f9..6d899dc 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,32 @@ Zendesk Unity3D Plugin ====================== -This is a Unity plugin that wraps the iOS and Android Zendesk SDKs. +This is a Unity plugin that wraps the iOS and Android Zendesk Support SDKs. ## Requirements -- OSX or Linux operating system (The plugin is not supported on Windows) -- Unity 5.0+ -- Xcode 8.0+ (if building for iOS) -- Android SDK with the latest support repository and libraries installed. (Required to build the plugin, even if you are just using iOS) +- Unity 5.x + +### OS requirements + +The Android build script, `./android-plugin/build.gradle`, requires the `zip` command which is commonly +distributed on Linux and Unix based systems, including Mac OS. + +`zip.exe` is not distributed on Windows machines and must be [installed](http://gnuwin32.sourceforge.net/packages/zip.htm) and added to the PATH. + +Alternatively, the 7zip command line application, `7za.exe`, can be used to perform the same task. More details are in the `stripCssFromAndroidSdk` task in `./android-plugin/build.gradle`. + +### iOS requirements + +- Xcode 8.0+ +- Android requirements also have to be met, even if only building the iOS plugin. + +### Android requirements + +Most requirements will be downloaded automatically. You will have to ensure that some components are up to date in the Android SDK Manager. + +- Android SDK Build-tools 24.0.0 +- Latest version of Android Support Repository ## Basics @@ -43,9 +61,11 @@ This is a Unity plugin that wraps the iOS and Android Zendesk SDKs. } ``` -4. Android conflicts +4. Android manifest + * [MUST DO] One of the `` elements must be uncommented for the plugin to build correctly. See the documentation in `/Assets/Plugins/Android/AndroidManifest.xml` * You may already have a file at `/Assets/Plugins/Android/AndroidManifest.xml`. If so, you will have to manually merge the items of that manifest with the one we supply in our plugin. Specifically, your `` tag must have the `android:theme="@style/UnityTheme"` attribute, and your `UnityPlayerActivity` (or derived class) `` entry must have `` as a child tag. + ## App Configuration and Zendesk App Interfaces @@ -181,7 +201,7 @@ Custom Help Center articles are styled with CSS that can be specified in the fol On Android, this file must be edited before you create the plugin with `./gradlew build` -`/sdk_unity_plugin/android-plugin/src/main/res/assets/help_center_article_style.css` +`/sdk_unity_plugin/android-plugin/src/main/assets/help_center_article_style.css` ## String and Localization Customization diff --git a/android-plugin/plugin-dependencies/AndroidManifest.xml b/android-plugin/plugin-dependencies/AndroidManifest.xml index 7e7d050..5eeb414 100755 --- a/android-plugin/plugin-dependencies/AndroidManifest.xml +++ b/android-plugin/plugin-dependencies/AndroidManifest.xml @@ -30,8 +30,8 @@ -->