package zj.neverland.publicwidget;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}

@@ -105,16 +105,115 @@
 undle;%0A%0A
+import zj.neverland.publicsdk.update.Updater;%0Aimport zj.neverland.publicsdk.update.UpdaterConfig;%0A%0A
 public c
@@ -259,16 +259,53 @@
 vity %7B%0A%0A
+    private String UPLOADE_URL = %22%22;%0A
     @Ove
@@ -411,16 +411,16 @@
 State);%0A
-
         
@@ -465,10 +465,495 @@
 ;%0A    %7D%0A
+    /**%0A     * %E6%A3%80%E6%B5%8B%E5%8D%87%E7%BA%A7%0A     */%0A    public void updateVer() %7B%0A%0A        String url = UPLOADE_URL+%22/CEFOCAPP.apk%22;%0A        UpdaterConfig config = new UpdaterConfig.Builder(this)%0A                .setTitle(getResources().getString(R.string.app_name))%0A                .setDescription(getString(R.string.system_download_description))%0A                .setFileUrl(url)%0A                .setCanMediaScanner(true)%0A                .build();%0A        Updater.get().showLog(true).download(config);%0A    %7D%0A
 %7D%0A

add update