Iterable / react-native-sdk

MIT License
37 stars 32 forks source link

v1.3.13 Android Build fails #502

Open yaqoobhisbani opened 1 year ago

yaqoobhisbani commented 1 year ago

I'm using "@iterable/react-native-sdk": "^1.3.13" and build is failing from yesterday. Here's the error.

`

Task :iterable_react-native-sdk:compileReleaseJavaWithJavac FAILED /Users/runner/work/1/s/node_modules/@iterable/react-native-sdk/android/src/main/java/com/iterable/reactnative/RNIterableAPIModule.java:231: error: method setRead in class IterableInAppManager cannot be applied to given types; IterableApi.getInstance().getInAppManager().setRead(RNIterableInternal.getMessageById(messageId), read); ^ required: IterableInAppMessage,boolean,SuccessHandler found: IterableInAppMessage,boolean reason: actual and formal argument lists differ in length /Users/runner/work/1/s/node_modules/@iterable/react-native-sdk/android/src/main/java/com/iterable/reactnative/RNIterableAPIModule.java:237: error: incompatible types: IterableInAppDeleteActionType cannot be converted to SuccessHandler IterableApi.getInstance().getInAppManager().removeMessage(RNIterableInternal.getMessageById(messageId), Serialization.getIterableDeleteActionTypeFromInteger(deleteSource), Serialization.getIterableInAppLocationFromInteger(location)); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 2 errors FAILURE: Build failed with an exception.

`

Here's the package json:

{
  "name": "myapp",
  "version": "1",
  "scripts": {
    "start": "expo start --dev-client",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web",
    "build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'"
  },
  "dependencies": {
    "@iterable/react-native-sdk": "^1.3.13",
    "@react-native-async-storage/async-storage": "^1.17.11",
    "@react-native-community/netinfo": "9.3.5",
    "@react-native-community/push-notification-ios": "^1.10.1",
    "@react-native-firebase/analytics": "^14.7.0",
    "@react-native-firebase/app": "^14.7.0",
    "@react-navigation/bottom-tabs": "^6.4.0",
    "@react-navigation/native": "^6.0.13",
    "@react-navigation/native-stack": "^6.9.0",
    "amazon-cognito-identity-js": "^6.0.1",
    "aws-amplify": "^5.0.4",
    "aws-amplify-react-native": "^7.0.1",
    "base64-js": "^1.5.1",
    "buffer": "^6.0.3",
    "exceljs": "^4.3.0",
    "expo": "~47.0.12",
    "expo-checkbox": "^2.2.2",
    "expo-build-properties": "~0.4.1",
    "expo-document-picker": "~11.0.1",
    "expo-file-system": "~15.1.1",
    "expo-linear-gradient": "~12.0.1",
    "expo-local-authentication": "~13.0.2",
    "expo-secure-store": "~12.0.0",
    "expo-sharing": "~11.0.1",
    "expo-splash-screen": "~0.17.5",
    "expo-status-bar": "~1.4.2",
    "formik": "^2.2.9",
    "graphql": "^16.6.0",
    "intl": "^1.2.5",
    "moment": "^2.29.4",
    "react": "18.1.0",
    "react-dom": "18.1.0",
    "react-native": "0.70.8",
    "react-native-accordion-list-view": "^1.0.4",
    "react-native-axios": "^0.17.1",
    "react-native-calendar-picker": "^7.1.3",
    "react-native-circular-progress": "^1.3.7",
    "react-native-circular-progress-indicator": "^4.4.0",
    "react-native-collapsible": "^1.6.1",
    "react-native-date-picker": "^4.2.6",
    "react-native-datepicker": "^1.7.2",
    "react-native-dotenv": "^3.4.2",
    "react-native-dropdown-select-list": "^2.0.4",
    "react-native-fs": "^2.20.0",
    "react-native-image-picker": "^5.0.1",
    "react-native-image-to-pdf": "^1.2.0",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-keychain": "^8.1.1",
    "react-native-linear-gradient": "^2.6.2",
    "react-native-modal": "^13.0.1",
    "react-native-picker-select": "^8.0.4",
    "react-native-pie-chart": "^3.0.1",
    "react-native-progress-circle": "^2.1.0",
    "react-native-push-notification": "^8.1.1",
    "react-native-reanimated": "~2.12.0",
    "react-native-safe-area-context": "4.4.1",
    "react-native-screens": "~3.18.0",
    "react-native-simple-radio-button": "^2.7.4",
    "react-native-svg": "13.4.0",
    "react-native-svg-transformer": "^1.0.0",
    "react-native-vector-icons": "^9.2.0",
    "react-native-view-pdf": "^0.14.0",
    "react-native-view-shot": "3.4.0",
    "react-native-web": "^0.18.9",
    "react-native-webview": "11.23.1",
    "rn-fetch-blob": "^0.12.0",
    "rn-pdf-reader-js": "^4.1.1",
    "save": "^2.9.0",
    "url": "^0.11.0",
    "yarn": "^1.22.19",
    "yup": "^0.32.11"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "babel-plugin-transform-remove-console": "^6.9.4",
    "reactotron-react-native": "^5.0.3"
  },
  "private": true
}
bhandanyan-nomad commented 1 year ago

Experiencing this with the newest release v1.3.14

davidtruong commented 1 year ago

New build deployment in the works. Stay tuned.