Skip to content

docs: update README.md - #355

Merged
hyochan merged 2 commits into
mainfrom
bang9-patch-1
Nov 27, 2022
Merged

docs: update README.md#355
hyochan merged 2 commits into
mainfrom
bang9-patch-1

Conversation

@bang9

@bang9 bang9 commented Nov 27, 2022

Copy link
Copy Markdown
Contributor

README.md 의 키해시 스크립트에 debug.keystore 경로가 user root 를 가리키고 있어서 수정합니다.
resolve #353

@bang9
bang9 requested a review from hyochan November 27, 2022 06:23
@bang9 bang9 self-assigned this Nov 27, 2022
@hyochan hyochan added the 📖 documentation Improvements or additions to documentation label Nov 27, 2022
Comment thread README.md Outdated
- React Native에서는 개발시 `android/app/debug.keystore`의 해시를 추가해주시면 됩니다.
```
keytool -exportcert -alias androiddebugkey -keystore ~./android/app/debug.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64
keytool -exportcert -alias androiddebugkey -keystore {your-project-root}/android/app/debug.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

보통은 안드 스튜디오 설치하면 아래 경로에 잡히는데 오타가 있네요.

keytool -exportcert -alias androiddebugkey -keystore ~/.android/app/debug.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64

문구를 아래와 같이 바꾸는게 어떨까요?

keytool -exportcert -alias androiddebugkey -keystore ~/.android/app/debug.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64

보통은 위 경로에서 글로벌 디버그 키를 추출할 수 있지만 프로젝트 루트에서 다른 디버그 키를 사용하고 있는 경우에는 아래와 같이 keystore 경로를 변경해주세요.

keytool -exportcert -alias androiddebugkey -keystore {your-project-root}/android/app/debug.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64

@bang9 bang9 Nov 27, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RN 프로젝트의 경우 디버그키를 글로벌이 아닌 기본 생성되는 템플릿에 고정된 android/app/debug.keystore 키를 쓰고있어서 (react/react-native#22665) 모든 프로젝트에서 똑같은 값이 추출됩니다. (예: #223)

그냥 아래의 키를 디버그 모드에서 사용하라고 가이드하고 (Xo8WBi6jzSxKDVR4drqm84yr9iU=)
image

아래의 문구를 추가하는건 어떨까요?

템플릿에서 기본 제공되는것 이외의 keystore 에서 hash key 를 추출하기 위해서는 아래의 명령어를 사용하세요

글로벌 debug keystore 에서 hash key 추출

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64

특정 경로의 keystore 에서 hash key 추출

keytool -exportcert -alias {my-app-key-alias} -keystore {your-key-path}/{my-app-key}.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RN 프로젝트의 경우 디버그키를 글로벌이 아닌 기본 생성되는 템플릿에 고정된 android/app/debug.keystore 키를 쓰고있어서 (facebook/react-native#22665) 모든 프로젝트에서 똑같은 값이 추출됩니다. (예: #223)

그냥 아래의 키를 디버그 모드에서 사용하라고 가이드하고 (Xo8WBi6jzSxKDVR4drqm84yr9iU=) image

아래의 문구를 추가하는건 어떨까요?

템플릿에서 기본 제공되는것 이외의 keystore 에서 hash key 를 추출하기 위해서는 아래의 명령어를 사용하세요
글로벌 debug keystore 에서 hash key 추출

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64

특정 경로의 keystore 에서 hash key 추출

keytool -exportcert -alias {my-app-key-alias} -keystore {your-key-path}/{my-app-key}.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64

설명 감사합니다. 이렇게 수정하는게 좋아보입니다 :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hyochan 수정 완료했습니다 :)

@hyochan hyochan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

감사합니다 👍

@hyochan
hyochan merged commit 0e5f26a into main Nov 27, 2022
@hyochan
hyochan deleted the bang9-patch-1 branch November 27, 2022 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📖 documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

안드로이드 키 해시 설정 오류

2 participants