package org.ligi.snackengage_demo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import java.util.Locale;
import org.ligi.snackengage.SnackEngage;
import org.ligi.snackengage.conditions.AfterNumberOfOpportunities;
import org.ligi.snackengage.conditions.NeverAgainWhenClickedOnce;
import org.ligi.snackengage.conditions.locale.IsOneOfTheseLocales;
import org.ligi.snackengage.snacks.BetaTestSnack;
import org.ligi.snackengage.snacks.DefaultRateSnack;
import org.ligi.snackengage.snacks.TranslateSnack;

public class DemoActivity extends AppCompatActivity {
    @Override
    protected void onCreate(final Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.content);

        findViewById(R.id.button).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(final View v) {
                SnackEngage.from(v)
                           .withSnack(new TranslateSnack("https://www.transifex.com/projects/p/snackengage").withConditions(new IsOneOfTheseLocales(Locale.CANADA),
                                                                                                                            new NeverAgainWhenClickedOnce(),
                                                                                                                            new AfterNumberOfOpportunities(10)))
                           .withSnack(new DefaultRateSnack())
                           .withSnack(new BetaTestSnack("https://plus.google.com/105597594975384338151/posts/A8sFHUAKYz3").withConditions(new NeverAgainWhenClickedOnce(),
                                                                                                                                          new AfterNumberOfOpportunities(
                                                                                                                                                  42)))
                           .build()
                           .engageWhenAppropriate();
            }
        });
    }
}

@@ -431,24 +431,27 @@
 .snacks.
-BetaTest
+DefaultRate
 Snack;%0Ai
@@ -480,35 +480,46 @@
 gage.snacks.
-DefaultRate
+GooglePlayOpenBetaTest
 Snack;%0Aimpor
@@ -1562,453 +1562,117 @@
 new 
-BetaTestSnack(%22https://plus.google.com/105597594975384338151/posts/A8sFHUAKYz3%22).withConditions(new NeverAgainWhenClickedOnce(),%0A                                                                                                                                          new AfterNumberOfOpportunities(%0A                                                                                                                                                  
+GooglePlayOpenBetaTestSnack().withConditions(new NeverAgainWhenClickedOnce(), new AfterNumberOfOpportunities(
 42))

Use the new GooglePlayOpenBetaTestSnack in the demo