diff --git a/android/build.gradle b/android/build.gradle index 2ab6176..8a1e02e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -83,6 +83,7 @@ repositories { } def kotlin_version = getExtOrDefault("kotlinVersion") +def lytics_android_version = getExtOrDefault("lyticsAndroidVersion") dependencies { // For < 0.71, this will be from the local maven repo @@ -90,7 +91,6 @@ dependencies { //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - // FIXME: specify stable version - implementation 'com.github.lytics:android-sdk:main-SNAPSHOT' + implementation "com.github.lytics:android-sdk:$lytics_android_version" } diff --git a/android/gradle.properties b/android/gradle.properties index 6f62f52..567a307 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -3,3 +3,4 @@ Sdk_minSdkVersion=21 Sdk_targetSdkVersion=31 Sdk_compileSdkVersion=31 Sdk_ndkversion=21.4.7075529 +Sdk_lyticsAndroidVersion=0.9.0 diff --git a/package.json b/package.json index d99bb82..020bc8d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-lytics", - "version": "0.0.1", + "version": "0.9.0", "description": "Lytics SDK for React Native", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/react-native-lytics.podspec b/react-native-lytics.podspec index 9fe2a86..7a83629 100644 --- a/react-native-lytics.podspec +++ b/react-native-lytics.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| s.source_files = "ios/**/*.{h,m,mm,swift}" - s.dependency "LyticsSDK" + s.dependency "LyticsSDK", "~> 0.9.0" # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0. # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.