Skip to content

Commit

Permalink
Merge pull request #200 from CleverTap/develop
Browse files Browse the repository at this point in the history
task SDK-1193: Add Android 12 support and update core-sdk to 4.3.1
  • Loading branch information
piyush-kukadiya authored Nov 30, 2021
2 parents dbe773b + 9ed97b0 commit a3d04b8
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 37 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
==========

Version 0.7.0 *(30th November 2021)*
-------------------------------------------
- Supports CleverTap Android SDK `v4.3.1` backing Android 12

Version 0.6.0 *(3rd September 2021)*
-------------------------------------------
- Adds public methods for suspending/discarding & resuming InApp Notifications
Expand Down
24 changes: 12 additions & 12 deletions Example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -193,24 +193,24 @@ dependencies {
implementation "com.facebook.react:react-native:+" // From node_modules

//added from atlasian doc
implementation 'com.clevertap.android:clevertap-android-sdk:4.2.0'
implementation 'com.clevertap.android:clevertap-android-sdk:4.3.1'
// implementation 'com.google.android.gms:play-services-ads:19.0.1'
implementation 'com.google.android.gms:play-services-base:17.4.0'
implementation 'com.android.installreferrer:installreferrer:2.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:20.2.4'
implementation project(':clevertap-react-native')
//added from atlasian doc
implementation 'com.github.bumptech.glide:glide:4.11.0' //Mandatory for App Inbox
implementation 'androidx.recyclerview:recyclerview:1.1.0' //Mandatory for App Inbox
implementation 'com.github.bumptech.glide:glide:4.12.0' //Mandatory for App Inbox
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.3.0' //Mandatory for App Inbox
implementation 'androidx.appcompat:appcompat:1.2.0' //Mandatory for App Inbox
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
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.1.0' // InApp
implementation 'com.google.android.exoplayer:exoplayer:2.11.5' //Optional for Audio/Video
implementation 'com.google.android.exoplayer:exoplayer-hls:2.11.5' //Optional for Audio/Video
implementation 'com.google.android.exoplayer:exoplayer-ui:2.11.5' //Optional for Audio/Video
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
implementation 'com.android.support:multidex:1.0.3'

debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
Expand Down
5 changes: 3 additions & 2 deletions Example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
android:windowSoftInputMode="adjustResize"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -28,7 +29,7 @@
<!-- <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>-->
<!-- </intent-filter>-->
<!-- </service>-->
<service android:name=".MyFirebaseMessagingService">
<service android:name=".MyFirebaseMessagingService" android:exported="true">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
Expand Down
6 changes: 3 additions & 3 deletions Example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

buildscript {
ext {
buildToolsVersion = "29.0.3"
buildToolsVersion = "30.0.3"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
compileSdkVersion = 31
targetSdkVersion = 31
ndkVersion = "20.1.5948944"
}
repositories {
Expand Down
14 changes: 7 additions & 7 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ buildscript {
}

android {
compileSdkVersion 30
compileSdkVersion 31
buildToolsVersion '30.0.3'

defaultConfig {
minSdkVersion 16
targetSdkVersion 30
versionCode 60
versionName "0.6.0"
targetSdkVersion 31
versionCode 70
versionName "0.7.0"
}
buildTypes {
release {
Expand All @@ -39,11 +39,11 @@ dependencies {
maven { url "$rootDir/../node_modules/react-native/android" }
}

api 'com.clevertap.android:clevertap-android-sdk:4.2.0'
implementation 'com.android.installreferrer:installreferrer:2.1'
api 'com.clevertap.android:clevertap-android-sdk:4.3.1'
implementation 'com.android.installreferrer:installreferrer:2.2'
//compile 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.facebook.react:react-native:+'
compileOnly 'androidx.annotation:annotation:1.1.0'
compileOnly 'androidx.annotation:annotation:1.2.0'
}

repositories {
Expand Down
22 changes: 11 additions & 11 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ If you're on RN 0.60 or your project configuration doesn't allow to add `use_fra
```gradle
dependencies {
...
implementation 'com.clevertap.android:clevertap-android-sdk:4.2.0'
implementation 'com.google.android.gms:play-services-base:17.4.0'
implementation 'com.clevertap.android:clevertap-android-sdk:4.3.1'
implementation 'com.google.android.gms:play-services-base:17.6.0'
implementation 'com.google.firebase:firebase-messaging:20.2.4'
implementation 'com.google.android.exoplayer:exoplayer:2.11.5' //Optional for Audio/Video
implementation 'com.google.android.exoplayer:exoplayer-hls:2.11.5' //Optional for Audio/Video
implementation 'com.google.android.exoplayer:exoplayer-ui:2.11.5' //Optional for Audio/Video
implementation 'com.github.bumptech.glide:glide:4.11.0' //Mandatory for App Inbox
implementation 'androidx.recyclerview:recyclerview:1.1.0' //Mandatory for App Inbox
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
implementation 'com.github.bumptech.glide:glide:4.12.0' //Mandatory for App Inbox
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.2.1' //Mandatory for App Inbox
implementation 'androidx.appcompat:appcompat:1.2.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.core:core:1.3.0'
implementation 'androidx.fragment:fragment:1.1.0' // InApp
implementation 'androidx.fragment:fragment:1.3.6' // InApp
//Mandatory for React Native SDK v0.3.9 and above add the following -
implementation 'com.android.installreferrer:installreferrer:2.1'
implementation 'com.android.installreferrer:installreferrer:2.2'
//Note - ExoPlayer dependencies are optional but all 3 are required for Audio/Video Inbox and InApp Messages
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clevertap-react-native",
"version": "0.6.0",
"version": "0.7.0",
"description": "CleverTap React Native SDK.",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit a3d04b8

Please sign in to comment.