crossplatformkorea / react-native-kakao-login

react-native native module for Kakao sign in.
MIT License
350 stars 133 forks source link

EAS build not working on expo managed workflow #386

Closed kAutoman closed 7 months ago

kAutoman commented 8 months ago

Description

Hello. I've tried to use this package for kakaotalk login with Expo managed workflow.

Steps to reproduce

When I use eas build -p android --profile development command, it's showing this error. image Here's my app.json image

React Native Kakao Login version

5.3.0

React Native version

0.72.5

Platforms

Android

JavaScript runtime

None

Architecture

None

Build type

Debug mode

Device

Android emulator

Device model

No response

Acknowledgements

Yes

coffsun commented 7 months ago

@kAutoman Did you solve this issue?

kAutoman commented 7 months ago

@coffsun I've fixed above issue with change kotlin version into 1.8.22 Here's config in app.json

[
        "@react-native-seoul/kakao-login",
        {
          "kakaoAppKey": "YOUR_KEY",
          "overrideKakaoSDKVersion": "2.9.0",
          "kotlinVersion": "1.8.22"
        }
],
coffsun commented 7 months ago

@kAutoman But, I have a problem. Do you know this problem? iOS build is fine, but it's only happening on Android.

스크린샷 2023-11-30 오후 8 50 39
kAutoman commented 7 months ago

@coffsun show me package.json and app.json

coffsun commented 7 months ago

@kAutoman This is my setup

app.json

{
  "expo": {
    "name": "Haeboda App",
    "slug": "haeboda-app",
    "scheme": "haeboda",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "userInterfaceStyle": "light",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain"
    },
    "assetBundlePatterns": ["**/*"],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "com.coffsun.haebodaapp",
      "usesAppleSignIn": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#ffffff"
      },
      "package": "com.coffsun.haebodaapp"
    },
    "web": {
      "favicon": "./assets/favicon.png",
      "bundler": "metro"
    },
    "plugins": [
      "expo-router",
      "expo-apple-authentication",
      [
        "@react-native-seoul/kakao-login",
        {
          "kakaoAppKey": "6ca652258b77e55a2c0955aa33f9e451",
          "overrideKakaoSDKVersion": "2.9.0",
          "kotlinVersion": "1.8.22"
        }
      ]
    ],
    "extra": {
      "router": {
        "origin": false
      },
      "eas": {
        "projectId": "c83b805e-ba57-4c6f-8983-3e8f9aa95385"
      }
    }
  }
}

package.json

{
  "name": "haeboda-app",
  "version": "1.0.0",
  "main": "expo-router/entry",
  "scripts": {
    "start": "expo start",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web",
    "lint": "eslint ."
  },
  "dependencies": {
    "@expo-google-fonts/noto-sans-kr": "^0.2.3",
    "@expo/webpack-config": "^19.0.0",
    "@react-native-async-storage/async-storage": "1.18.2",
    "@react-native-seoul/kakao-login": "^5.3.1",
    "@rneui/base": "^4.0.0-rc.7",
    "@rneui/themed": "^4.0.0-rc.8",
    "axios": "^1.5.1",
    "expo": "~49.0.5",
    "expo-apple-authentication": "~6.1.0",
    "expo-auth-session": "~5.0.2",
    "expo-blur": "~12.4.1",
    "expo-constants": "~14.4.2",
    "expo-crypto": "~12.4.1",
    "expo-dev-client": "~2.4.12",
    "expo-font": "~11.4.0",
    "expo-image": "~1.3.5",
    "expo-linking": "~5.0.2",
    "expo-router": "^2.0.0",
    "expo-splash-screen": "~0.20.5",
    "expo-status-bar": "~1.6.0",
    "expo-system-ui": "~2.4.0",
    "expo-web-browser": "~12.3.2",
    "firebase": "^10.5.2",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-native": "0.72.6",
    "react-native-gesture-handler": "~2.12.0",
    "react-native-safe-area-context": "4.6.3",
    "react-native-screens": "~3.22.0",
    "react-native-svg": "13.9.0",
    "react-native-web": "~0.19.6",
    "react-query": "^3.39.3"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@types/react": "~18.2.14",
    "eslint": "^8.47.0",
    "eslint-config-universe": "^12.0.0",
    "react-native-svg-transformer": "^1.1.0",
    "typescript": "^5.1.3"
  },
  "overrides": {
    "metro": "0.76.0",
    "metro-resolver": "0.76.0"
  },
  "eslintConfig": {
    "extends": "universe/native"
  },
  "private": true
}
coffsun commented 7 months ago

@kAutoman Could you please give me some advice on this issue?

coffsun commented 7 months ago

@kAutoman Thank you! I solved the problem this way (https://github.com/crossplatformkorea/react-native-kakao-login/issues/392)