File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
library/src/main/java/com/android/sebiya/update Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 77import android .util .Log ;
88import com .android .sebiya .update .AppVersionChecker .DefaultImpl ;
99
10- public final class AppUpdateInfo {
10+ public class AppUpdateInfo {
1111
1212 private static final String LOG_TAG = "AppUpdateInfo" ;
1313
1414 private Builder mBuilder ;
1515
16+ public AppUpdateInfo () {
17+
18+ }
19+
1620 private AppUpdateInfo (Builder builder ) {
1721 mBuilder = builder ;
1822 }
@@ -62,6 +66,9 @@ public static class Builder {
6266 private final Context context ;
6367
6468
69+ /**
70+ * @param context <code>null</code> possibly null if you call {@link #withCurrentVersion(long, String)}
71+ */
6572 public Builder (@ Nullable Context context ) {
6673 this .context = context ;
6774 }
@@ -71,6 +78,9 @@ public Builder withVersionChecker(AppVersionChecker checker) {
7178 return this ;
7279 }
7380
81+ /**
82+ * if you don't set current version we will version code and name from PackageManager.
83+ */
7484 public Builder withCurrentVersion (long code , String name ) {
7585 currentVersionCode = code ;
7686 currentVersionName = name ;
You can’t perform that action at this time.
0 commit comments