зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1201646 - Basic updates support r=snorp
This commit is contained in:
Родитель
34798869bb
Коммит
44b885ef4c
|
@ -20,6 +20,7 @@ const Cr = Components.results;
|
|||
Cu.import('resource://gre/modules/SettingsRequestManager.jsm');
|
||||
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
|
||||
Cu.import('resource://gre/modules/Services.jsm');
|
||||
Cu.import('resource://gre/modules/AppConstants.jsm');
|
||||
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
XPCOMUtils.defineLazyGetter(this, "libcutils", function () {
|
||||
|
@ -327,7 +328,8 @@ setUpdateTrackingId();
|
|||
});
|
||||
}
|
||||
|
||||
syncCharPref('app.update.url');
|
||||
syncCharPref(AppConstants.MOZ_B2GDROID ? 'app.update.url.android'
|
||||
: 'app.update.url');
|
||||
syncCharPref('app.update.channel');
|
||||
})();
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@ JAVAFILES := \
|
|||
# org.mozilla.gecko.R itself.
|
||||
jars_dir := $(DEPTH)/mobile/android/base
|
||||
ANDROID_EXTRA_JARS := $(filter-out %gecko-R.jar,$(wildcard $(jars_dir)/*.jar))
|
||||
# Needed for the UpdateService
|
||||
ANDROID_EXTRA_JARS += $(ANDROID_COMPAT_LIB)
|
||||
|
||||
# The GeckoView consuming APK depends on the GeckoView resources. This hacks a
|
||||
# type of poor man's AAR support.
|
||||
|
|
|
@ -109,6 +109,12 @@
|
|||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<service
|
||||
android:exported="false"
|
||||
android:name="org.mozilla.gecko.updater.UpdateService"
|
||||
android:process="org.mozilla.b2gdroid.UpdateService">
|
||||
</service>
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
|
|
@ -28,6 +28,7 @@ import org.mozilla.gecko.GeckoBatteryManager;
|
|||
import org.mozilla.gecko.GeckoEvent;
|
||||
import org.mozilla.gecko.GeckoThread;
|
||||
import org.mozilla.gecko.IntentHelper;
|
||||
import org.mozilla.gecko.updater.UpdateServiceHelper;
|
||||
import org.mozilla.gecko.util.GeckoEventListener;
|
||||
|
||||
import org.mozilla.b2gdroid.ScreenStateObserver;
|
||||
|
@ -86,6 +87,8 @@ public class Launcher extends Activity
|
|||
|
||||
GeckoAppShell.setGeckoInterface(new BaseGeckoInterface(this));
|
||||
|
||||
UpdateServiceHelper.registerForUpdates(this);
|
||||
|
||||
EventDispatcher.getInstance().registerGeckoThreadListener(this,
|
||||
"Launcher:Ready");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче