Skip to content

Commit

Permalink
Release 4.1.0 (#106)
Browse files Browse the repository at this point in the history
* Implemented GetAllInboxMessages for AndroidlatformBinding

* [MC-1969] Implement ARP response handling (#86)

* Added Discarded events validator

* Implemented ARP caching and setting in header

* Move ARP to meta in body. Load ARP on init. Process ARP before save. Fix prefs namespaces.

* Load discarded events when user changes

---------

Co-authored-by: Nikola Zagorchev <[email protected]>

* [MC-1970] Implement _i and _j request parameters (#88)

* Add MetaData interceptor to handle _i and _j

* Check if the response or content is not null

* Update constants

---------

Co-authored-by: Nikola Zagorchev <[email protected]>

* [MC-2064] Add Proxy and SpikyProxy Domain for Android and iOS platforms (#89)

* Add LaunchWithCredentialsForProxyServer in Plugin, Clevertap and platformBindings

* Add LaunchWithCredentialsForProxyServer in ClevertapUnityManager and platformBinding for iOS.

* Рename performLaunchTask to initializeAndNotifyLaunch

* Add proxy and spikyProxy to settings

* Use LaunchWithCredentials on Native

---------

Co-authored-by: Nikola Zagorchev <[email protected]>

* Fix android launch with credentials and proxy (#91)

* [MC-2113] File type variables for iOS and Android (#90)

* Implement File variable changes

* Update mobile SDKs

* Update Variable and fix FileIsReady callbacks

* Add iOS implementation

---------

Co-authored-by: Nikola Zagorchev <[email protected]>

* Define File variable fix (#95)

* Define file variable fix

* Change variable platform virtual methods

* fix(MC-2358): Fix string variables on android always having default values

* fix(MC-2374): Fix json messages send from Android Unity plugin (#97)

* CleverTap iOS SDK update and editor update (#102)

* Bump iOS version to 7.0.3

* Bump project version

* chore(MC-2434): Update Android SDK to 7.0.3 (#103)

* Example UI (#94)

* Initial UI

* Add KeyValue prefab

* Make SDK version public

* Make KeyValue texts clickable

* Add AdHoc component

* Increase font sizes

* Build AdHoc programmatically

* Add additional button to InputPanel

* Update Tabs size and background

* Update elements size

* KeyValue refresh only element transform

* Increase KeyValue font size

* Add variables as key values in the UI

* Add Logger

* Add Account Id

* Add File variables

* Add Toast

* Make Input field expand vertically

* Add account name

* Fix scroll view scroll with input fields

* Update main scene

* Set Canvas pixels per unit

* Add rounded corners

* Reorder screens

* Increase target frame rate on mobile

* Fix additional button vertical fit

* Enable mouse wheel scroll, fix scroll over contentview (raycast)

* Rename input field scroll fixer

* Fix selection inside input

* Add summary for custom scroll rect

* Move scripts into folders

* Change match width and height of main canvas

* Use custom scroll rect on all scroll views and update contenviews

* Make More menu scrollable

* Add account region

* Update toast

* Use toasts

* Add UnityIngameDebugConsole and show/hide option

* Add logs and toasts

* Move ButtonActionModel to separate file

* Variables do not recreate components on restore

* Android include dependencies for app inbox

* Remove unused component

* Update app initialization

* Logger log errors

* Rename project to CTExample, remove CleverTapTests, add UIElementsSchema

* Rename namespace

* Rename log

* Update Unity version to 2022.3.50

* Update product name

* Add Mobile Notifications package and enable notifications on iOS (#99)

* Add firebase integration to Example UI Android project

* Fix properties type

---------

Co-authored-by: Vassil Angelov <[email protected]>
Co-authored-by: Vassil Angelov <[email protected]>

* Fix Android file var value (#104)

* Release/4.1.0 (#105)

* Update version and package

* Update changelog and docs

---------

Co-authored-by: Alok Kumar <[email protected]>
Co-authored-by: Vassil Angelov <[email protected]>
  • Loading branch information
3 people authored Dec 13, 2024
1 parent b6a2ab3 commit 1a0439c
Show file tree
Hide file tree
Showing 306 changed files with 29,439 additions and 979 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Change Log
==========

Version 4.1.0 *(13 December, 2024)*
-------------------------------------------
- Updated to [CleverTap Android SDK v7.0.3](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev7.0.3)
- Updated to [CleverTap iOS SDK v7.0.3](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/7.0.3)
- Supports launch with proxy and spiky proxy domain
- Supports file type variables
- Unity native networking improvements
- Fixes missing GetAllInboxMessages() in Android plugin
- Fixes string variables on Android always having default values
- Fixes json messages send from Android Unity plugin

Version 4.0.0 *(07 August, 2024)*
-------------------------------------------
- Added native support for WebGL, Mac and Windows platform
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@
</intent-filter>
</service>

<meta-data
android:name="FCM_SENDER_ID"
android:value="id:YOUR_FCM_SENDER_ID" />

<meta-data
android:name="CLEVERTAP_ACCOUNT_ID"
android:value="Your CleverTap Account ID" />
Expand All @@ -93,6 +89,10 @@
android:name="CLEVERTAP_TOKEN"
android:value="Your CleverTap Account Token" />

<meta-data
android:name="CLEVERTAP_REGION"
android:value="Your CleverTap Account Region" />

</application>

</manifest>
14 changes: 14 additions & 0 deletions CTExample/Assets/Plugins/Android/baseProjectTemplate.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins {
// If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
// See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
// See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
// To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version
id 'com.android.application' version '7.4.2' apply false
id 'com.android.library' version '7.4.2' apply false
id 'com.google.gms.google-services' version '4.4.2' apply false
**BUILD_SCRIPT_DEPS**
}

task clean(type: Delete) {
delete rootProject.buildDir
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 65 additions & 0 deletions CTExample/Assets/Plugins/Android/launcherTemplate.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

dependencies {
implementation project(':unityLibrary')
implementation(platform("com.google.firebase:firebase-bom:31.0.0"))
implementation("com.google.firebase:firebase-messaging")
}

android {
namespace "**NAMESPACE**"
ndkPath "**NDKPATH**"

compileSdkVersion **APIVERSION**
buildToolsVersion '**BUILDTOOLS**'

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

defaultConfig {
minSdkVersion **MINSDKVERSION**
targetSdkVersion **TARGETSDKVERSION**
applicationId '**APPLICATIONID**'
ndk {
abiFilters **ABIFILTERS**
}
versionCode **VERSIONCODE**
versionName '**VERSIONNAME**'
}

aaptOptions {
noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
}**SIGN**

lintOptions {
abortOnError false
}

buildTypes {
debug {
minifyEnabled **MINIFY_DEBUG**
proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
jniDebuggable true
}
release {
minifyEnabled **MINIFY_RELEASE**
proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
}
}**PACKAGING_OPTIONS****PLAY_ASSET_PACKS****SPLITS**
**BUILT_APK_LOCATION**
bundle {
language {
enableSplit = false
}
density {
enableSplit = false
}
abi {
enableSplit = true
}
}
}**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP**
7 changes: 7 additions & 0 deletions CTExample/Assets/Plugins/Android/launcherTemplate.gradle.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions CTExample/Assets/Plugins/Android/mainTemplate.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
apply plugin: 'com.android.library'
**APPLY_PLUGINS**

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// MANDATORY for CleverTap App Inbox
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.viewpager:viewpager:1.0.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'

// Optional ExoPlayer Libraries for CleverTap Audio/Video Inbox Messages.
// Audio/Video messages will be dropped without these dependencies
implementation "com.google.android.exoplayer:exoplayer:2.19.1"
implementation "com.google.android.exoplayer:exoplayer-hls:2.19.1"
implementation "com.google.android.exoplayer:exoplayer-ui:2.19.1"

// Optional AndroidX Media3 Libraries for CleverTap Audio/Video Inbox Messages.
// Audio/Video messages will be dropped without these dependencies
// implementation "androidx.media3:media3-exoplayer:1.1.1"
// implementation "androidx.media3:media3-exoplayer-hls:1.1.1"
// implementation "androidx.media3:media3-ui:1.1.1"
**DEPS**}

android {
namespace "com.unity3d.player"
ndkPath "**NDKPATH**"

compileSdkVersion **APIVERSION**
buildToolsVersion '**BUILDTOOLS**'

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

defaultConfig {
minSdkVersion **MINSDKVERSION**
targetSdkVersion **TARGETSDKVERSION**
ndk {
abiFilters **ABIFILTERS**
}
versionCode **VERSIONCODE**
versionName '**VERSIONNAME**'
consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
}

lintOptions {
abortOnError false
}

aaptOptions {
noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
}**PACKAGING_OPTIONS**
}
**IL_CPP_BUILD_SETUP**
**SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**
8 changes: 8 additions & 0 deletions CTExample/Assets/Prefabs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1a0439c

Please sign in to comment.