react-native-batch-push icon indicating copy to clipboard operation
react-native-batch-push copied to clipboard

Add ability to upgrade Batch sdk version on Android

Open Aure77 opened this issue 6 years ago • 0 comments

Actually this module is stick to batch-sdk v1.13 on Android : https://github.com/bamlab/react-native-batch-push/blob/ed66c53a1ac7ff31172dde211dfba72614906306/android/build.gradle#L44

It would be usefull to let user override it by using project ext property. ex:

def batchSdkVersion = rootProject.ext.hasProperty('batchSdkVersion') ? rootProject.ext.get('batchSdkVersion') : "1.13+"
implementation "com.batch.android:batch-sdk:$batchSdkVersion"

And user have to set this in their android/build.gradle :

ext {
    batchSdkVersion = "1.15.2"
}

Aure77 avatar Dec 02 '20 11:12 Aure77