Skip to content

Commit

Permalink
Merge pull request #170 from CleverTap/develop
Browse files Browse the repository at this point in the history
Prepare release 0.5.2
  • Loading branch information
piyush-kukadiya authored Jul 20, 2021
2 parents 43a6b10 + 4f78e67 commit 9f0bda7
Show file tree
Hide file tree
Showing 11 changed files with 189 additions and 185 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change Log
==========

Version 0.5.2 *(20th July 2021)*
-------------------------------------------
- Supports CleverTap Android SDK `v4.2.0`
- Android SDK `v4.2.0` fixes NPE for `recordScreenView()` in Android

Version 0.5.1 *(5th May 2021)*
-------------------------------------------
- Update and Freeze [CleverTap React Native Podspec](/clevertap-react-native.podspec) to a specific version of a CleverTap iOS SDK
Expand Down
8 changes: 6 additions & 2 deletions Starter/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ import com.android.build.OutputFile

project.ext.react = [
entryFile: "index.js",
enableHermes: false
enableHermes: false,
nodeExecutableAndArgs: ["/usr/local/bin/node"]
]

apply from: "../../node_modules/react-native/react.gradle"
Expand Down Expand Up @@ -147,7 +148,7 @@ def enableHermes = project.ext.react.get("enableHermes", false);
dependencies {
implementation project(':clevertap-react-native')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'com.clevertap.android:clevertap-android-sdk:4.1.1'
implementation 'com.clevertap.android:clevertap-android-sdk:4.2.0'
implementation "com.facebook.react:react-native:+" // From node_modules
implementation 'com.google.android.gms:play-services-base:17.4.0'
implementation 'com.google.firebase:firebase-messaging:20.2.4'
Expand All @@ -162,6 +163,8 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0' //Mandatory for App Inbox
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.clevertap.android:clevertap-hms-sdk:1.0.2'//Optional dependency for hms
implementation 'com.huawei.hms:push:5.3.0.304'//Optional dependency for hms

if (enableHermes) {
// For RN 0.60.x
Expand All @@ -188,3 +191,4 @@ task copyDownloadableDepsToLibs(type: Copy) {
}

//apply plugin: 'com.google.gms.google-services'//Uncomment for Firebase Messaging
apply plugin: 'com.huawei.agconnect'//Add This at the bottom of the file
11 changes: 7 additions & 4 deletions Starter/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@
buildscript {
ext {
buildToolsVersion = "29.0.3"
minSdkVersion = 16
minSdkVersion = 17
compileSdkVersion = 29
targetSdkVersion = 29
supportLibVersion = "28.0.0"
}
repositories {
google()
jcenter()
maven {url 'https://developer.huawei.com/repo/'}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'com.google.gms:google-services:4.3.3'//Uncomment for Firebase Messaging
classpath 'com.huawei.agconnect:agcp:1.4.2.300'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -23,15 +25,16 @@ buildscript {

allprojects {
repositories {
mavenLocal()
google()
jcenter()
mavenCentral()
gradlePluginPortal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
url "$rootDir/../node_modules/jsc-android/dist"
}
maven {url 'https://developer.huawei.com/repo/'}
}
}
6 changes: 3 additions & 3 deletions Starter/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Oct 07 13:49:55 IST 2020
#Tue Jun 22 21:08:18 IST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
zipStoreBase=GRADLE_USER_HOME
320 changes: 160 additions & 160 deletions Starter/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "eslint ."
},
"dependencies": {
"clevertap-react-native": "git+https://github.com/CleverTap/clevertap-react-native.git#develop",
"clevertap-react-native": "git+https://github.com/CleverTap/clevertap-react-native.git#task/update_core_4.2.0/SDK-958",
"react": "16.9.0",
"react-native": "^0.63.3"
},
Expand Down
7 changes: 4 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 30
versionCode 51
versionName "0.5.1"
versionCode 52
versionName "0.5.2"
}
buildTypes {
release {
Expand All @@ -39,10 +39,11 @@ dependencies {
maven { url "$rootDir/../node_modules/react-native/android" }
}

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

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public List<Class<? extends JavaScriptModule>> createJSModules() {

/**
* @param reactContext
* @return a list of view managers that should be registered with {@link UIManagerModule}
* @return a list of view managers
*/
@Override
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
Expand Down
10 changes: 1 addition & 9 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@
};
```
3. The CleverTap SDK is not yet upgraded to AndroidX. Add the following to your gradle.properties file
```android.useAndroidX=true
android.enableJetifier=true
```
## Steps for iOS ##
Expand Down Expand Up @@ -68,7 +60,7 @@ 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.0.0'
implementation 'com.clevertap.android:clevertap-android-sdk:4.2.0'
implementation 'com.google.android.gms:play-services-base:17.4.0'
implementation 'com.google.firebase:firebase-messaging:20.2.4'
implementation 'com.google.android.exoplayer:exoplayer:2.11.5' //Optional for Audio/Video
Expand Down
1 change: 0 additions & 1 deletion docs/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Note: Need to use **@import CleverTapSDK;** instead of **#import <CleverTapSDK/C
@Override
public void onCreate() {
// Register the CleverTap ActivityLifecycleCallback; before calling super
CleverTapAPI.setUIEditorConnectionEnabled(false);
ActivityLifecycleCallback.register(this);
super.onCreate();
}
Expand Down
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.5.1",
"version": "0.5.2",
"description": "CleverTap React Native SDK.",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 9f0bda7

Please sign in to comment.