SkyDemoApplication.java 862 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.domokit.sky.demo;

import android.content.Context;

import org.domokit.sky.shell.ResourceExtractor;
import org.domokit.sky.shell.SkyApplication;

/**
 * SkyDemo implementation of {@link android.app.Application}
 */
public class SkyDemoApplication extends SkyApplication {
    private static final String[] DEMO_RESOURCES = {
        "cards.skyx",
        "fitness.skyx",
        "game.skyx",
        "interactive_flex.skyx",
        "mine_digger.skyx",
        "stocks.skyx",
    };

    @Override
    protected void onBeforeResourceExtraction(ResourceExtractor extractor) {
        super.onBeforeResourceExtraction(extractor);
        extractor.addResources(DEMO_RESOURCES);
    }
}