Skip to content

Commit

Permalink
New navbar item App + move Android, iOS, React Native and Expo there
Browse files Browse the repository at this point in the history
This reduces the amount of items in Dev
  • Loading branch information
AlbertVilaCalvo committed Mar 18, 2022
1 parent 6cd4c0f commit a997293
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 4 deletions.
File renamed without changes.
24 changes: 24 additions & 0 deletions docs/app/app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: App
---

## Facebook SDK

How to generate Android Key hashes that you need to set in https://developers.facebook.com/apps/{app_id}/settings/basic/

It's something like `g5fGIBgB6noFO9ur78BdEr73KG6=`, ending with a '='.

Information sources:

- https://stackoverflow.com/questions/39051517/login-error-there-is-an-error-in-logging-you-into-this-application-please-try
- https://javascript.plainenglish.io/fix-login-error-there-is-an-error-in-logging-you-into-this-application-on-facebook-login-with-237e3baba116

First you need to get the SHA-1. You can get it in different ways:

- On Google Play. At the left side menu go to Setup -> App integrity, then select the tab 'App signing'
- From the apk itself with `keytool -list -printcert -jarfile <my-apk-file.apk>`

Once you have the SHA-1 you need to convert it to base64. There are various ways:

- https://tomeko.net/online_tools/hex_to_base64.php (ignore the alert 'Warning! Non-hex characters in input string ignored')
- `node -e 'console.log(Buffer.from(process.argv[1].split(":").map(hex => parseInt(hex, 16))).toString("base64"))' 'PASTE_YOUR_SHA1_HERE'`
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ module.exports = {
label: 'Dev',
position: 'left',
},
{
to: 'app',
activeBasePath: 'app',
label: 'App',
position: 'left',
},
{
to: 'devops/docker',
activeBasePath: 'devops',
Expand Down
11 changes: 7 additions & 4 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,21 @@ module.exports = {
'dev/typescript',
'dev/node',
'dev/react',
'dev/react-native',
'dev/expo',
'dev/docusaurus',
'dev/prettier',
'dev/eslint',
'dev/git-hooks',
'dev/jetbrains',
'dev/android',
'dev/ios',
'dev/python',
'dev/postgresql',
],
app: [
'app/app',
'app/android',
'app/ios',
'app/react-native',
'app/expo'
],
devops: [
'devops/docker',
'devops/kubernetes',
Expand Down

0 comments on commit a997293

Please sign in to comment.