Matheus Marquesine
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    ### Guia de Deploy na Play Store para Aplicativos React-native #### Requisitos e informações necessárias ##### Setup Mobile Completo * Setup de mobile configurado e funcional * npm 6.13.4+ * node 13+ * Conta do Cliente na Google Play Console * Keytool * Banner do Aplicativo * Pelo menos 3 Prints do app * Breve descrição de até 80 caractéres (sobre o app) * Descrição Completa de até 4000 caractéres (sobre o app) * Email do cliente * Número do cliente ##### Exemplo de Banner <img src="https://i.imgur.com/7xxDRvP.png" width="80%" alt="UTI Neonatal"> #### Introdução Esse é o guia de Lançamento de um aplicativo mobile na Play Store. É muito importante que você guarde em um local seguro a chave que criaremos aqui, de preferência no Git ou algum lugar onde essa chave nunca será perdida, pois ela será usada para as atualizações futuras. #### 1. Criação do App no Google Play Console Logo que entramos na primeira página conseguimos encontrar um botão escrito "Criar App", clique nele e preencha as informações necessárias. ![Criar App](https://i.imgur.com/IlOC47q.png) #### Painel de Aplicativo Há uma aba no lado esquerdo do Google Play Console chamada "Painel", essa aba existe para cada aplicativo, e tem o objetivo de nos auxiliar no nosso caminho até o deploy do aplicativo. ##### 1.1 Configurando o App para lançamento Siga as tarefas para Configurar o App que o próprio Google nos indica. <img src="https://i.imgur.com/4pOvCyi.png" width="80%" alt="Configurar App"> Agora que já temos o App configurado na Google Play nós podemos passar para a criação do bundle e a sua assinatura. #### 2. Instalando e assinando o aplicativo Baixe o aplicativo normalmente pelo e baixe também suas dependências com o Yarn ou npm se for o caso. ##### 2.1 Gerando nossa chave !importante Agora criaremos nossa tão importante chave, para isso, usarei nomes padrões, que provavelmente nunca seriam esquecidos, por favor, anote as senhas e alias que você colocar aqui. Rode o comando: ``` keytool -genkey -v -keystore nome-do-projeto.keystore -alias projeto-alias -keyalg RSA -keysize 2048 -validity 10000 ``` Esse comando fará com que rodem algumas perguntas onde definiremos senhas e alias que serão usados depois, preencha com os dados necessários, e pronto, temos nossa chave de assinatura. ##### 2.2 Gerando o bundle Assinado Agora precisamos criar o bundle e assina-lo, para isso, nada melhor que usar o próprio Gradlew. Entre na pasta inicial do projeto, e procure o arquivo dentro da pasta android/app/ chamado: "build.gradle" é importante que seja esse arquivo e não o build.gradle da pasta android. Abra esse arquivo em um editor de texto e agora iremos alterar algumas coisas nele Primeiramente vá no seguinte escopo: ```java=1 defaultConfig { applicationId "com.utineonatal" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" } ``` Nesse momento ainda não iremos alterar nada dele, mas é bom esclarecer que é nessa parte em que definimos as versões do aplicativo, se você colocar uma versão errada, a Play Store não ira aceitar o seu aplicativo. Prosseguindo, desça um pouco o arquivo e procure pelo seguinte escopo: ```java=1 signingConfigs { debug { storeFile file('debug.keystore') storePassword 'android' keyAlias 'androiddebugkey' keyPassword 'android' } } ``` Altere esse escopo para a seguinte maneira e coloque as informações necessárias, as mesmas que você criou no passo anterior. É importante que a chave criada esteja na mesma pasta que o arquivo build.gradle: ```java=1 signingConfigs { release { storeFile file('projeto.keystore') storePassword 'senha1' keyAlias 'alias-projeto' keyPassword 'senha2' } } ``` Feito isso, resta apenas mais uma alteração nesse arquivo, procure pelo seguinte escopo: ```java=1 buildTypes { debug { signingConfig signingConfigs.debug } release { // Caution! In production, you need to generate your own keystore file. // see https://facebook.github.io/react-native/docs/signed-apk-android. signingConfig signingConfigs.debug minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } } ``` Altere ele para que ele fique dessa maneira: ```java=1 buildTypes { release { // Caution! In production, you need to generate your own keystore file. // see https://facebook.github.io/react-native/docs/signed-apk-android. signingConfig signingConfigs.release minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } } ``` Salve e feche o arquivo. ##### 2.3 Bisbilhotando o arquivo de versionamento de Sdk Volte para o início do projeto e va para a passa android, dentro dessa pasta há o outro arquivo build.gradle que eu havia comentado. É possível que você em algum momento tenha que alterar alguma configuração do sdk, por isso, abra esse arquivo em um editor de texto e procure pelo seguinte escopo: ```java=1 ext { buildToolsVersion = "28.0.3" minSdkVersion = 16 compileSdkVersion = 28 targetSdkVersion = 28 } ``` Aqui é possível alterar algumas versões de sdk, altere o "targetSdkVersion" para 29. Feito isso, pronto, o Bundle está pronto para ser gerado. ##### 2.4 Gerando o Bundle de fato Volte para a pasta inicial do projeto e então vá para a pasta "android", nessa pasta rode o seguinte comando: ```shell=1 ./gradlew bundleRelease ``` Após isso, o bundle está gerado e assinado, ele fica salvo na pasta "/projeto/android/app/build/outputs/bundle/release" . #### 3. Publicando o aplicativo Volte para a Play->Painel do app e procure por "Publicar o app no Google Play" <img src="https://i.imgur.com/ga5550Q.png" width="80%" alt="Publicar app"> Preencha o que for necessário e então envie o seu aplicativo para avaliação da Google Play Console, essa avaliação costuma durar cerca de 3-5 dias úteis no momento de criação desse guia.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully