Skip to content

Commit

Permalink
add apk downloader for json variation
Browse files Browse the repository at this point in the history
  • Loading branch information
MurtadhaS committed Nov 30, 2019
1 parent 75e69cb commit 292ce4f
Show file tree
Hide file tree
Showing 9 changed files with 420 additions and 294 deletions.
1 change: 1 addition & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ dependencies {
api 'com.android.support:design:27.1.1'
api 'com.squareup.okhttp3:okhttp:3.10.0'
api 'org.jsoup:jsoup:1.11.3'
api 'com.mindorks.android:prdownloader:0.6.0'
}
Binary file added library/src/main/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import android.text.TextUtils;
import android.util.Log;

import com.downloader.PRDownloader;
import com.github.javiersantos.appupdater.enums.AppUpdaterError;
import com.github.javiersantos.appupdater.enums.Display;
import com.github.javiersantos.appupdater.enums.Duration;
Expand Down Expand Up @@ -56,6 +57,9 @@ public AppUpdater(Context context) {
this.btnDismiss = context.getResources().getString(R.string.appupdater_btn_dismiss);
this.btnDisable = context.getResources().getString(R.string.appupdater_btn_disable);
this.isDialogCancelable = true;

//Initialize file downloader
PRDownloader.initialize(context);
}

@Override
Expand Down
Loading

0 comments on commit 292ce4f

Please sign in to comment.