Skip to content

Commit

Permalink
Merge pull request #130 from tenjin/dg/release-1.12.31
Browse files Browse the repository at this point in the history
Release 1.12.31
  • Loading branch information
giraldogdiego authored Jul 7, 2023
2 parents 2e9b76f + d89bc62 commit b1c3120
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 83 deletions.
83 changes: 0 additions & 83 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,82 +6,6 @@ The Unity SDK for Tenjin. To learn more about Tenjin and our product offering, p
- Tenjin Unity SDK supports both iOS and Android.
- Review the [iOS][1] and [Android][2] documentation and apply the proper platform settings to your builds.
- For any issues or support, please contact: [email protected]
- **iOS Notes**:

- Xcode 13 requirement, if you’re using Unity iOS SDK v1.12.21 and higher.
- When building iOS, confirm that these frameworks were automatically added to the Xcode build. If any are missing, you will need to add them manually.
- AdServices.framework
- AdSupport.framework
- AppTrackingTransparency.framework
- iAd.framework
- StoreKit.framework
- For AppTrackingTransparency, be sure to update your project `.plist` file and add `Privacy - Tracking Usage Description` <a href="https://developer.apple.com/documentation/bundleresources/information_property_list/nsusertrackingusagedescription" target="_new">(NSUserTrackingUsageDescription)</a> along with the text message you want to display to users. This library is only available in iOS 14.0+.
- For <a href="https://developer.apple.com/documentation/iad/setting_up_apple_search_ads_attribution" target="_new">Apple Search Ads Attribution</a> support, please be sure to upgrade to v1.12.6+ and add the `AdServices.framework` library. This library is only available in iOS 14.3+.

- **Android Notes**:

1. If you have another SDK installed which already has Google Play Services installed or uses [PlayServicesResolver][3], you may need to delete duplicate libraries:

```
/Assets/Plugins/Android/play-services-ads-identifier--*.aar
/Assets/Plugins/Android/play-services-basement---*.aar
```

2. If you are using Tenjin Unity SDK alongside another SDK in Unity version 2019.4.21f1 and higher, and are using Gradle to build the Android App, you might face build errors such as `DuplicateMethodException` etc., or find that referrer install is not working. If that is the case, please do the following:
* Remove all the `*.aar` files from the `Assets/Plugins/Android` folder except `tenjin.aar`.
* Add the following to your `mainTemplate.gradle` file:
```groovy
// Android Resolver Repos Start
([rootProject] + (rootProject.subprojects as List)).each { project ->
project.repositories {
def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace("\\", "/")
maven {
url "https://maven.google.com"
}
maven {
url "https://s3.amazonaws.com/moat-sdk-builds"
}
maven {
url 'https://developer.huawei.com/repo/'
}
mavenLocal()
mavenCentral()
google()
}
}

// Android Resolver Repos End
apply plugin: 'com.android.library'
**APPLY_PLUGINS**
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
implementation 'com.android.support:multidex:1.0.3'
// Note: replace {version} with the appropriate version number
// Required for Google Play store
implementation 'com.google.android.gms:play-services-analytics:{version}'
implementation 'com.android.installreferrer:installreferrer:{version}'
// Required for Huawei OAID
implementation 'com.huawei.hms:ads-identifier:{version}'
implementation 'com.huawei.hms:ads-installreferrer:{version}'

androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
// Android Resolver Dependencies End
**DEPS**}
```
* Add the following entry to the `gradleTemplate.properties` file:
```
android.useAndroidX=true
```
3. If you see the following errors on the app initialization, move tenjin.aar file from `/Assets/Plugins/Android/Tenjin/libs` to `/Assets/Plugins/Android/`. Also check the Proguard Settings [here][4].

```
AndroidJavaException: java.lang.NoSuchMethodError: no static method with name='setWrapperVersion'
AndroidJavaException: java.lang.ClassNotFoundException: com.tenjin.android.TenjinSDK
```
4. If you update SDK to v1.12.9 or higher, we are going to make version 2019.4.21f1 the minimum Unity 3D version. If you prefer to use the older version, please contact us, so we can help you with a customized solution. Furthermore, upgrade the External Dependency Manager for Unity to 1.12.167.

# Table of contents

Expand Down Expand Up @@ -118,13 +42,6 @@ The Unity SDK for Tenjin. To learn more about Tenjin and our product offering, p

2. Import the `TenjinUnityPackage.unitypackage` into your project: `Assets -> Import Package`.

3. By default, we have included <a href="https://developers.google.com/android/guides/setup" target="_new">Google Play Services</a> AAR files as part of our SDK. If you do not plan on using Google Play Services, you can delete these AAR files:

```
/Assets/Plugins/Android/play-services-*.aar
/Assets/Plugins/Android/installreferrer-*.aar
```

> We have a demo project - [tenjin-unity-sdk-demo][29] that demonstrates the integration of tenjin-unity-sdk. You can this project as example to understand how to integrate the tenjin-unity-sdk.
## <a id="google-play"></a>Google Play
Expand Down
7 changes: 7 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,3 +323,10 @@ v1.12.30

- Android v1.12.21
- iOS v1.12.25

v1.12.31
----
* Fixed concurrency issue on `connect` method call (iOS)

- Android v1.12.21
- iOS v1.12.26
Binary file modified TenjinUnityPackage.unitypackage
Binary file not shown.

0 comments on commit b1c3120

Please sign in to comment.