Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Meteorite

This library provides the ability to upload a screenshot of your app to Slack.

How to use

1. Add your Slack API token as meta-data element to the application element

Slack API token will be obtained from the following URL.

https://api.slack.com/web

// your app's AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest
    package="com.os.operando.meteorite.sample"
    xmlns:android="http://schemas.android.com/apk/res/android">

    <application
        android:name=".MyApplication"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">

        .....

        <meta-data
            android:name="com.os.operando.meteorite.slackToken"
            android:value="your Slack API token"/>
    </application>
</manifest>
2. Add MeteoriteActivity and MeteoroidReceiver to the manifest:
// your app's AndroidManifest.xml
<activity android:name="com.os.operando.meteorite.MeteoriteActivity"/>
<activity android:name="com.os.operando.meteorite.ScreenshotActivity" />

<receiver
    android:name="com.os.operando.meteor.MeteorReceiver"
    android:enabled="true"
    android:exported="true"/>
3. Call MeteorNotification.show() and registerActivityLifecycleCallbacks(new MeteorActivityLifecycleCallbacks()) at the Application class.
public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Meteorite.init(this);
    }
}

Download

Gradle:

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://dl.bintray.com/operandoos/maven/"
        }
    }
}

compile 'com.os.operando.meteorite:meteorite:0.1.1'

About

(alpha) This library provides the ability to upload a screenshot of your app to Slack.

Resources

Packages

No packages published

Languages

You can’t perform that action at this time.