Giter Site home page Giter Site logo

expo-build-notifier's Introduction

Expo Build Notifier (Archive)

This was for the old Expo build process, before EAS. So this project isn't maintained any more.

version npm

Use this to post a message to your chosen platform each time your Expo project is published. Current support for Discord, Slack and Telegram.

Installation

  1. Create a Webhook for the channel you want the messages to display in.

    • Discord
    • Slack
    • Telegram - Third party Article till I add one to the Github Wiki, You will need the access Token and Chat ID from this.
  2. Install the package as shown below:

NPM Yarn
npm i expo-build-notifier yarn add expo-build-notifier
  1. Add one of the below examples to your app.json in the root of your Expo React Native App.

Examples

Basic Discord Usage

"expo": {
    "hooks": {
        "postPublish": [
        {
            "file": "expo-build-notifier",
            "config": {
                "type": "discord",
                "webhookURL": "Insert_Webhook_URL",
            }
        }
        ]
    }
}

Basic Slack Usage

"expo": {
    "hooks": {
        "postPublish": [
        {
            "file": "expo-build-notifier",
            "config": {
                "type": "slack",
                "webhookURL": "Insert_Webhook_URL",
            }
        }
        ]
    }
}

Basic Telegram Usage

"expo": {
    "hooks": {
        "postPublish": [
        {
            "file": "expo-build-notifier",
            "config": {
                "type": "telegram",
                "token": "API_Token",
                "chatID": "CHAT_ID"
            }
        }
        ]
    }
}

Optional Properties

"expo": {
    "hooks": {
        "postPublish": [
        {
            "file": "expo-build-notifier",
            "config": {
                "type": "discord",
                "webhookURL": "Insert_Webhook_URL",
                "usernameType": "discordWebhook",
                "hideVersion": true,
                "hideReleaseChannel": true
            }
        }
        ]
    }
}
Required Parameter Value Default Value Options
✔️ Yes type string "discord", "slack", "telegram"
✔️ Yes webhookURL string
✔️ Yes webhookURL string
❌ No usernameType strong "default" "default", "discordWebhook"
❌ No hideVersion boolean false true, false
❌ No hideTimestamp boolean false true, false

N.B. usernameType only works for Discord currently.

Roadmap

  1. ✔️ Add Slack Functionality (Version 1.1.0)
  2. ✔️ Add Telegram Support
  3. Add Telegram Help Guide in the Wiki Page
  4. Add Error Handling
  5. Add Teams Support
  6. Refactor Code
  7. Work towards Version 2
    • The aim for version 2 will be to add a build URL (.apk, .ipa) to the message instead of a link to the project page.

Notes

If you don't set the type, it will try and find the information from the URL (Doesn't work for Telegram). If this fails, it will error. It is still best practise to define the type.

License

MIT

expo-build-notifier's People

Contributors

tom-spikeglobal avatar tomdowling avatar

Stargazers

Matteo Lobello avatar  avatar Mario Murrent avatar Maxim Lucas avatar

Watchers

 avatar

expo-build-notifier's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.