|
| 1 | + |
| 2 | +:::info |
| 3 | +The following guide is used to manually install the extension, download dependencies and update the application descriptor. We highly recommend installing extensions using `apm`. Using `apm` will automate the installation and automatically handle updates and dependencies along with greatly simplifying the application descriptor generation. |
| 4 | +::: |
| 5 | + |
| 6 | + |
| 7 | +First step is always to add the extension to your development environment. Download the extension from the repository and then follow the tutorial located [here](/docs/tutorials/getting-started) to add the extension to your development environment. |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +## Dependencies |
| 13 | + |
| 14 | +Many of our extensions use some common libraries, for example, the Android Support libraries. |
| 15 | + |
| 16 | +We have to separate these libraries into separate extensions in order to avoid multiple versions of the libraries being included in your application and causing packaging conflicts. This means that you need to include some additional extensions in your application along with the main extension file. |
| 17 | + |
| 18 | +You will add these extensions as you do with any other extension, and you need to ensure it is packaged with your application. |
| 19 | + |
| 20 | + |
| 21 | +### Core |
| 22 | + |
| 23 | +The Core extension is required by this extension. You must include this extension in your application. |
| 24 | + |
| 25 | +The Core extension doesn't provide any functionality in itself but provides support libraries and frameworks used by our extensions. |
| 26 | +It also includes some centralised code for some common actions that can cause issues if they are implemented in each individual extension. |
| 27 | + |
| 28 | +You can access this extension here: [https://github.com/distriqt/ANE-Core](https://github.com/distriqt/ANE-Core). |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +### Android Support |
| 33 | + |
| 34 | +The Android Support libraries encompass the Android Support, Android X and common Google libraries. |
| 35 | + |
| 36 | +These libraries are specific to Android. There are no issues including these on all platforms, they are just **required** for Android. |
| 37 | + |
| 38 | +This extension requires the following extensions: |
| 39 | + |
| 40 | +- [androidx.core](https://github.com/distriqt/ANE-AndroidSupport/raw/master/lib/androidx.core.ane) |
| 41 | +- [androidx.media3](https://github.com/distriqt/ANE-AndroidSupport/raw/master/lib/androidx.media3.ane) |
| 42 | +- [com.bumptech.glide](https://github.com/distriqt/ANE-AndroidSupport/raw/master/lib/com.bumptech.glide.ane) |
| 43 | +- [com.google.android.material](https://github.com/distriqt/ANE-AndroidSupport/raw/master/lib/com.google.android.material.ane) |
| 44 | + |
| 45 | +You can access these extensions here: [https://github.com/distriqt/ANE-AndroidSupport](https://github.com/distriqt/ANE-AndroidSupport). |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +#### Square Libs |
| 50 | + |
| 51 | +Due to several of our extensions using the [Square open source libraries](http://square.github.io) the libraries have been separated into separate extensions allowing you to avoid conflicts and duplicate definitions. This means that you need to include the some of the square native extensions in your application along with this extension. |
| 52 | + |
| 53 | +You will add these extensions as you do with any other extension, and you need to ensure it is packaged with your application. |
| 54 | + |
| 55 | +This extension requires the following Square extensions: |
| 56 | + |
| 57 | +- [`com.distriqt.square.okhttp3`](https://github.com/distriqt/ANE-SquareLibs/raw/master/lib/com.distriqt.square.okhttp3.ane) |
| 58 | +- [`com.distriqt.square.retrofit2`](https://github.com/distriqt/ANE-SquareLibs/raw/master/lib/com.distriqt.square.retrofit2.ane) |
| 59 | + |
| 60 | +You can access these extensions here: [https://github.com/distriqt/ANE-SquareLibs](https://github.com/distriqt/ANE-SquareLibs). |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +### Google Play Services |
| 66 | + |
| 67 | +This extension requires usage of certain aspects of the Google Play Services client library. |
| 68 | +The client library is available as a series of extensions that you add into your applications packaging options. |
| 69 | +Each separate extension provides a component(s) from the Play Services client library and are used by different extensions. |
| 70 | + |
| 71 | +These client libraries aren't packaged with this extension as they are used by multiple ANEs and separating them |
| 72 | +will avoid conflicts, allowing you to use multiple extensions in the one application. |
| 73 | + |
| 74 | +This extension requires the following Google Play Services: |
| 75 | + |
| 76 | +- [com.distriqt.playservices.AdsIdentifier.ane](https://github.com/distriqt/ANE-GooglePlayServices/raw/master/lib/com.distriqt.playservices.AdsIdentifier.ane) |
| 77 | +- [com.distriqt.playservices.Auth.ane](https://github.com/distriqt/ANE-GooglePlayServices/raw/master/lib/com.distriqt.playservices.Auth.ane) |
| 78 | +- [com.distriqt.playservices.Location.ane](https://github.com/distriqt/ANE-GooglePlayServices/raw/master/lib/com.distriqt.playservices.Location.ane) |
| 79 | + |
| 80 | +You must include the above native extensions in your application along with this extension, |
| 81 | +and you need to ensure they are packaged with your application. |
| 82 | + |
| 83 | +You can access the Google Play Services client library extensions here: |
| 84 | +[https://github.com/distriqt/ANE-GooglePlayServices](https://github.com/distriqt/ANE-GooglePlayServices). |
| 85 | + |
| 86 | + |
| 87 | +> **Note:** The Google Play Services and Android Support ANEs are only **required** on Android devices. |
| 88 | +> There are no issues packaging these extensions with all platforms as there are default implementations available which will allow your code to package without errors however if you are only building an iOS application feel free to remove the Google Play Services and Android Support ANEs from your application. |
0 commit comments