react-native-moengage-cards 6.2.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
19
19
  s.source_files = "ios/**/*.{h,m,mm,swift}"
20
20
  s.public_header_files = 'ios/**/*.h'
21
21
  s.dependency 'React'
22
- s.dependency 'MoEngagePluginCards','3.9.0'
22
+ s.dependency 'MoEngagePluginCards','3.9.2'
23
23
  s.dependency 'ReactNativeMoEngage'
24
24
  s.module_map = false
25
25
 
@@ -1,6 +1,12 @@
1
- buildscript {
2
- ext.kotlinVersion = '1.9.23'
1
+ import com.moengage.gradle.android.library.plugin.configs.BuildConfigType
2
+
3
+ ext {
4
+ moengageNativeBOMVersion = "2.1.0"
5
+ moengagePluginBaseBOMVersion = "2.0.0"
6
+ kotlinVersion = "1.9.23"
7
+ }
3
8
 
9
+ buildscript {
4
10
  repositories {
5
11
  google()
6
12
  mavenCentral()
@@ -8,52 +14,33 @@ buildscript {
8
14
  }
9
15
 
10
16
  dependencies {
11
- classpath 'com.android.tools.build:gradle:8.7.3'
17
+ classpath 'com.android.tools.build:gradle:8.13.2'
12
18
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
13
19
  classpath "org.jlleitschuh.gradle:ktlint-gradle:11.4.0"
20
+ classpath "com.moengage.android.hybrid.module.config.plugin:com.moengage.android.hybrid.module.config.plugin.gradle.plugin:0.0.4"
14
21
  }
15
22
  }
16
23
 
17
- ext {
18
- moengageNativeBOMVersion = "1.5.1"
19
- moengagePluginBaseBOMVersion = "1.2.1"
20
- }
21
-
22
- apply plugin: 'com.android.library'
23
- apply plugin: 'kotlin-android'
24
+ apply plugin: 'com.moengage.android.hybrid.module.config.plugin'
24
25
  apply plugin: "org.jlleitschuh.gradle.ktlint"
25
26
  apply plugin: 'com.facebook.react'
26
27
 
27
- android {
28
- compileSdk 35
29
- namespace "com.moengage.react.cards"
30
- defaultConfig {
31
- minSdk 23
32
- versionCode 1
33
- versionName "1.0"
34
-
35
- buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString())
36
- }
37
-
38
- buildTypes {
39
- release {
40
- minifyEnabled false
41
- }
42
- }
43
- lintOptions {
44
- disable 'GradleCompatible'
45
- }
46
- compileOptions {
47
- sourceCompatibility JavaVersion.VERSION_1_8
48
- targetCompatibility JavaVersion.VERSION_1_8
49
- }
50
-
28
+ hybridModuleConfig.configurePlugin {
51
29
  kotlinOptions {
52
- freeCompilerArgs = ['-Xjvm-default=all']
30
+ enableJvmTarget = false
31
+ compilerArgs = ['-Xjvm-default=all']
53
32
  }
54
- buildFeatures {
55
- buildConfig true
33
+ buildFeature {
34
+ buildConfigField(
35
+ BuildConfigType.BOOLEAN,
36
+ "IS_NEW_ARCHITECTURE_ENABLED",
37
+ isNewArchitectureEnabled().toString()
38
+ )
56
39
  }
40
+ }
41
+
42
+ android {
43
+ namespace "com.moengage.react.cards"
57
44
  sourceSets {
58
45
  main {
59
46
  if (isNewArchitectureEnabled()) {
@@ -65,12 +52,6 @@ android {
65
52
  }
66
53
  }
67
54
 
68
- repositories {
69
- mavenCentral()
70
- google()
71
- gradlePluginPortal()
72
- }
73
-
74
55
  dependencies {
75
56
  // noinspection GradleDynamicVersion
76
57
  compileOnly('com.facebook.react:react-native')
@@ -87,4 +68,5 @@ dependencies {
87
68
 
88
69
  def isNewArchitectureEnabled() {
89
70
  return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
90
- }
71
+ }
72
+
@@ -13,6 +13,6 @@
13
13
 
14
14
  distributionBase=GRADLE_USER_HOME
15
15
  distributionPath=wrapper/dists
16
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
16
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
17
17
  zipStoreBase=GRADLE_USER_HOME
18
18
  zipStorePath=wrapper/dists
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-moengage-cards",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "description": "Cards Module for the MoEngage Platform",
5
5
  "main": "src/index.ts",
6
6
  "keywords": [
@@ -46,5 +46,9 @@
46
46
  "android": {
47
47
  "javaPackageName": "com.moengage.react.cards"
48
48
  }
49
+ },
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "https://github.com/moengage/React-Native"
49
53
  }
50
54
  }