Skip to content

Commit

Permalink
Merge pull request #265 from CleverTap/develop
Browse files Browse the repository at this point in the history
Release 0.9.1
  • Loading branch information
root-ansh-ct authored Sep 21, 2022
2 parents 62cda93 + 87b4db8 commit fac96e5
Show file tree
Hide file tree
Showing 12 changed files with 18,130 additions and 1,834 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
Change Log
==========

Version 0.9.1 *(21 September 2022)*
-------------------------------------------
- Supports CleverTap Android Core SDK [v4.6.3](https://github.com/CleverTap/clevertap-android-sdk/blob/master/docs/CTCORECHANGELOG.md) and associated enhancements
- Supports CleverTap Android Push Templates SDK [v1.0.5](https://github.com/CleverTap/clevertap-android-sdk/blob/master/docs/CTPUSHTEMPLATESCHANGELOG.md) and associated enhancements
- Supports CleverTap Android HMS SDK [v1.3.1](https://github.com/CleverTap/clevertap-android-sdk/blob/master/docs/CTHUAWEIPUSHCHANGELOG.md) and associated enhancements
- Supports CleverTap Android XPS SDK [v1.5.0](https://github.com/CleverTap/clevertap-android-sdk/blob/master/docs/CTXIAOMIPUSHCHANGELOG.md) and associated Android 12, Region Changes and other enhancements

Version 0.9.0 *(23rd August 2022)*
-------------------------------------------
- Supports [CleverTap Android SDK v4.6.0](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev4.6.0_ptv1.0.4)
Expand Down
9 changes: 7 additions & 2 deletions Example/App.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
import React, { Component } from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
Expand Down Expand Up @@ -737,9 +738,9 @@ pushFcmRegistrationId = () => {
// or else two different tokens will be pushed to BackEnd resulting in unwanted behavior
// => https://github.com/CleverTap/clevertap-react-native/issues/166
// => https://developer.clevertap.com/docs/android#section-custom-android-push-notifications-handling
CleverTap.setPushToken("111056687894", CleverTap.FCM);
CleverTap.setPushToken("1000test000token000fcm", CleverTap.FCM);
//CleverTap.setPushToken("111056687894", CleverTap.HMS);//for Huawei push
//CleverTap.setPushToken("111056687894", CleverTap.XPS);//for Xiaomi push
CleverTap.setPushToken("1000test000token000xps", CleverTap.XPS,"Europe");//for Xiaomi push
//CleverTap.setPushToken("111056687894", CleverTap.BPS);//for Baidu push

}
Expand Down Expand Up @@ -984,6 +985,10 @@ function addCleverTapAPIListeners(fromClick) {
CleverTap.addListener(CleverTap.CleverTapInboxMessageButtonTapped, (event) => {
_handleCleverTapInbox(CleverTap.CleverTapInboxMessageButtonTapped, event);
});
CleverTap.addListener(CleverTap.CleverTapInboxMessageTapped, (event) => {
_handleCleverTapInbox(CleverTap.CleverTapInboxMessageTapped, event);
});

CleverTap.addListener(CleverTap.CleverTapDisplayUnitsLoaded, (event) => {
_handleCleverTapDisplayUnitsLoaded(CleverTap.CleverTapDisplayUnitsLoaded, event);
});
Expand Down
54 changes: 31 additions & 23 deletions Example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -189,44 +189,52 @@ android {

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules

//added from atlasian doc
implementation 'com.clevertap.android:clevertap-android-sdk:4.6.0'
implementation "com.clevertap.android:push-templates:1.0.4"
// implementation 'com.google.android.gms:play-services-ads:19.0.1'
implementation 'com.google.android.gms:play-services-base:17.6.0'
implementation 'com.android.installreferrer:installreferrer:2.2'
implementation 'com.google.firebase:firebase-messaging:21.0.0'
implementation project(':clevertap-react-native')
//added from atlasian doc
implementation 'com.github.bumptech.glide:glide:4.12.0' //Mandatory for App Inbox
implementation 'androidx.recyclerview:recyclerview:1.2.1' //Mandatory for App Inbox
//androidx
implementation 'androidx.core:core:1.3.0'
implementation 'androidx.fragment:fragment:1.3.6' // InApp
implementation 'androidx.recyclerview:recyclerview:1.2.1' //Mandatory for App Inbox
implementation 'androidx.viewpager:viewpager:1.0.0' //Mandatory for App Inbox
implementation 'com.google.android.material:material:1.4.0' //Mandatory for App Inbox
implementation 'androidx.appcompat:appcompat:1.3.1' //Mandatory for App Inbox
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
implementation 'androidx.core:core:1.3.0'
implementation 'androidx.fragment:fragment:1.3.6' // InApp
implementation 'com.google.android.exoplayer:exoplayer:2.15.1' //Optional for Audio/Video
implementation 'com.google.android.exoplayer:exoplayer-hls:2.15.1' //Optional for Audio/Video
implementation 'com.google.android.exoplayer:exoplayer-ui:2.15.1' //Optional for Audio/Video

//com.android
implementation 'com.android.installreferrer:installreferrer:2.2'
implementation 'com.android.support:multidex:1.0.3'

//react-native libs
implementation "com.facebook.react:react-native:+"

//com.google
implementation 'com.google.android.gms:play-services-base:17.6.0'
implementation 'com.google.firebase:firebase-messaging:21.0.0'
implementation 'com.google.android.material:material:1.4.0' //Mandatory for App Inbox
implementation 'com.google.android.exoplayer:exoplayer:2.17.1' //Optional for Audio/Video
implementation 'com.google.android.exoplayer:exoplayer-hls:2.17.1' //Optional for Audio/Video
implementation 'com.google.android.exoplayer:exoplayer-ui:2.17.1' //Optional for Audio/Video
//implementation 'com.google.android.gms:play-services-ads:19.0.1'


//clevertap
implementation 'com.clevertap.android:clevertap-android-sdk:4.6.3'
implementation "com.clevertap.android:push-templates:1.0.5"
implementation project(':clevertap-react-native')


// 3rd party
implementation 'com.github.bumptech.glide:glide:4.12.0' //Mandatory for App Inbox


debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
exclude group:'com.facebook.fbjni'
exclude group:'com.facebook.fbjni'
}

debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
exclude group:'com.facebook.flipper'
exclude group:'com.squareup.okhttp3', module:'okhttp'
}

debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
exclude group:'com.facebook.flipper'
}

if (enableHermes) {
def hermesPath = "../../node_modules/hermes-engine/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
Expand Down
2 changes: 2 additions & 0 deletions Example/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ android.enableJetifier=true

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.75.1

android.enableDexingArtifactTransform.desugaring=false
Loading

0 comments on commit fac96e5

Please sign in to comment.