(alpha) This library provides the ability to upload a screenshot of your app to Slack.
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
meteorite-sample
meteorite
.gitignore
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

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'