Adds lib for rating the app *Google Play release*

This commit is contained in:
tom79 2017-10-06 18:43:03 +02:00
parent becae0157a
commit fb0ee85e7f
2 changed files with 6 additions and 0 deletions

View File

@ -42,4 +42,5 @@ dependencies {
compile 'com.google.code.gson:gson:2.8.0'
compile 'org.jsoup:jsoup:1.10.3'
safetynetCompile 'com.google.android.gms:play-services-safetynet:11.0.4'
safetynetCompile 'io.github.kobakei:ratethisapp:1.2.0'
}

View File

@ -62,6 +62,7 @@ import android.widget.Toast;
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.gms.security.ProviderInstaller;
import com.kobakei.ratethisapp.RateThisApp;
import com.nostra13.universalimageloader.cache.disc.impl.UnlimitedDiskCache;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
@ -176,6 +177,10 @@ public class MainActivity extends AppCompatActivity
finish();
return;
}
RateThisApp.onCreate(this);
RateThisApp.Config config = new RateThisApp.Config(5, 10);
RateThisApp.init(config);
SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
Helper.canPin = false;
Helper.fillMapEmoji(getApplicationContext());