Ejemplo n.º 1
0
    private void serialise()
    {
        using (StreamWriter o = new StreamWriter(InventoryPostProcessor.UNIBILL_JSON_INVENTORY_PATH)) {
            var json = JsonConvert.SerializeObject(config.Serialize(), Newtonsoft.Json.Formatting.Indented);
            o.Write(json);
        }

        try {
            AssetDatabase.ImportAsset(InventoryPostProcessor.UNIBILL_JSON_INVENTORY_PATH);
        } catch (Exception) {
        }

        UnibillInjector.GetStorekitGenerator().writeFile();
        UnibillInjector.GetGooglePlayCSVGenerator().writeCSV();
        UnibillInjector.GetAmazonGenerator().encodeAll();

        AssetDatabase.ImportAsset("Assets/Plugins/unibill/resources/amazon.sdktester.json.txt");
        AndroidManifestGenerator.mergeManifest();
    }
Ejemplo n.º 2
0
    private void serialise()
    {
        using (StreamWriter o = new StreamWriter(InventoryPostProcessor.UNIBILL_JSON_INVENTORY_PATH)) {
            var json = MiniJSON.jsonEncode(config.Serialize());
            o.Write(json);
        }

        try {
            AssetDatabase.ImportAsset(InventoryPostProcessor.UNIBILL_JSON_INVENTORY_PATH);
        } catch (Exception) {
        }

        UnibillInjector.GetStorekitGenerator().writeFile(BillingPlatform.AppleAppStore);
        UnibillInjector.GetStorekitGenerator().writeFile(BillingPlatform.MacAppStore);
        UnibillInjector.GetGooglePlayCSVGenerator().writeCSV();
        UnibillInjector.GetAmazonGenerator().encodeAll();

        AssetDatabase.ImportAsset("Assets/Plugins/unibill/resources/amazon.sdktester.json.txt");
        AndroidManifestGenerator.mergeManifest();
    }