App almost done

Hi, I know that I just did a similar question before in the forum but I have my app almost done and I need to change the icons that Fuse put by default and lock the rotation of the screen.

How can I do this? Is posible yet? There is any txt file that I can edit to do this changes?

Thanks!!!

Both these things can be controlled from the unoproj-file. The icons are set in the <Android><Icons>...</Icons></Android> and <iOS><Icons>...</Icons></iOS> sections, and orientation is set in the <Mobile><Orientations>...</Orientations></Mobile>-section.

Sigh, unfortunately it seems Mobile.Orientations is broken at the moment (at least on Android). I’ve raised an internal issue to get it fixed.

In the mean-time, the only fix I know of is to tweak the generated manifest, which can be found inside the .build-dir, and rebuild the result with the build.bat (or build.sh if you’re on OSX). Unfortunately, you need to do this after every change, because we’ll keep overwriting the manifest-file.

Sorry for the rather large delay, but I wanted to let you know I have pushed a fix for this and it will be out in the 27/7/2015 update.

I would love to get this to you for the monday update but this would mean skipping our pre-update testing procedures and apparently skipping tests can result in doom, hairloss, itchy trousers & death…I just can’t risk it.

Hope this finds you and your projects well.

Good Factory Dev 1: We’d also like to know more about your project and perhaps feature it as something made in Fuse. If you’re interested, get in touch at contact@fusetools.com :slight_smile:

Thanks i’ll wait for this release! In the new version the

<Android><Icons>...</Icons></Android> and <iOS><Icons>...</Icons></iOS>

Are gone. Now how can I set the Icon and all the settings?

Bent Stamnes: Thanks! I will send a description and screenshots of my proyect the next monday. :slight_smile:

Cristian Karmy: In the JSON format Android and iOS settings looks like this:

  "Android": {
    "ApplicationLabel": "$(Title)",
    "VersionCode": "$(VersionCount)",
    "VersionName": "$(Version)",
    "Description": "$(Description)",
    "Icons": {
      "LDPI": "$(Icon)",
      "MDPI": "$(Icon)",
      "HDPI": "$(Icon)",
      "XHDPI": "$(Icon)",
      "XXHDPI": "$(Icon)",
      "XXXHDPI": "$(Icon)"
    }
  },
  "iOS": {
    "Icons": {
      "iPhone_29_2x": "$(Icon)",
      "iPhone_29_3x": "$(Icon)",
      "iPhone_40_2x": "$(Icon)",
      "iPhone_40_3x": "$(Icon)",
      "iPhone_60_2x": "$(Icon)",
      "iPhone_60_3x": "$(Icon)",
      "iPad_29_1x": "$(Icon)",
      "iPad_29_2x": "$(Icon)",
      "iPad_40_1x": "$(Icon)",
      "iPad_40_2x": "$(Icon)",
      "iPad_76_1x": "$(Icon)",
      "iPad_76_2x": "$(Icon)"
    }
  },

I can for some reason not get this to register the icon I wish to use:

{
  ...
  "Icon": "img/icon.png",
  ...
  "Android": {
      ...
      "Icons": {
        "LDPI": "$(Icon)",
        "MDPI": "$(Icon)",
        "HDPI": "$(Icon)",
        "XHDPI": "$(Icon)",
        "XXHDPI": "$(Icon)",
        "XXXHDPI": "$(Icon)"
      },
  ...
  },
  "iOS": {
  "Icons": {
    "iPhone_29_2x": "$(Icon)",
    "iPhone_29_3x": "$(Icon)",
    "iPhone_40_2x": "$(Icon)",
    "iPhone_40_3x": "$(Icon)",
    "iPhone_60_2x": "$(Icon)",
    "iPhone_60_3x": "$(Icon)",
    "iPad_29_1x": "$(Icon)",
    "iPad_29_2x": "$(Icon)",
    "iPad_40_1x": "$(Icon)",
    "iPad_40_2x": "$(Icon)",
    "iPad_76_1x": "$(Icon)",
    "iPad_76_2x": "$(Icon)"
  }
  },
  "HTML": {
  "Title": "$(Title)",
  "Favicon": "$(Icon)"
  },
  "InternalsVisibleTo": [],
  ...
  "Includes": [
  "*"
  ],
  "Excludes": []
}

Can someone please explain what I am doing wrong? Thanks! :slight_smile:

Please anyone can help me to configure the Orientation and icons in my app?

I try adding this to the .unoproj file but I get ERROR: Invalid array ‘Android.Includes’

Thanks!

Good Factory Dev: We need more info to help debug that. Can you provide the project you struggle with?

I found the answer here: https://www.fusetools.com/learn/uno#uno-project-format-overview

This week I will send you my project to contact@fusetools.com and tell you what I’m doing. :slight_smile:

Great, just send it when you’re ready :slight_smile:

I’m trying to lock the Orientation only to Portrait but doesn’t work I have this code in .unoproj:

{
  "BuildDirectory": ".build",
  "CacheDirectory": ".cache",
  "RootNamespace": "$(QIdentifier)",
  "ReferenceUnoCore": true,
  "Version": "0.0.0",
  "VersionCount": 1,
  "Title": "$(Name)",
  "Copyright": "Copyright (C) 2015",
  "Publisher": "[Publisher]",
  "Mobile": {
  "KeepAlive": true,
  "ShowStatusbar": true,
  "RunsInBackground": true,
  "Orientations": "Portrait"
  },
  "Android": {
  "ApplicationLabel": "$(Title)",
  "VersionCode": "$(VersionCount)",
  "VersionName": "$(Version)",
  "Description": "$(Description)",
  "Icons": {
    "LDPI": "$(Icon)",
    "MDPI": "$(Icon)",
    "HDPI": "$(Icon)",
    "XHDPI": "$(Icon)",
    "XXHDPI": "$(Icon)",
    "XXXHDPI": "$(Icon)"
  }
  },
  "iOS": {
  "Icons": {
    "iPhone_29_2x": "$(Icon)",
    "iPhone_29_3x": "$(Icon)",
    "iPhone_40_2x": "$(Icon)",
    "iPhone_40_3x": "$(Icon)",
    "iPhone_60_2x": "$(Icon)",
    "iPhone_60_3x": "$(Icon)",
    "iPad_29_1x": "$(Icon)",
    "iPad_29_2x": "$(Icon)",
    "iPad_40_1x": "$(Icon)",
    "iPad_40_2x": "$(Icon)",
    "iPad_76_1x": "$(Icon)",
    "iPad_76_2x": "$(Icon)"
  }
  },
  "HTML": {
  "Title": "$(Title)",
  "Favicon": "$(Icon)"
  },
  "InternalsVisibleTo": [],
  "Packages": [
      "Fuse.Animations",
    "Fuse.BasicTheme",
    "Fuse.Controls",
    "Fuse.Designer",
    "Fuse.Drawing",
    "Fuse.Drawing.Primitives",
    "Fuse.Effects",
    "Fuse.Elements",
    "Fuse.Entities",
    "Fuse.Gestures",
    "Fuse.Navigation",
    "Fuse.Shapes",
    "Fuse.Triggers",
    "Fuse.Reactive",
    "FuseCore",
    "Uno.Collections",
    "Uno.Geometry",
    "Uno.Data.Xml",
    "Uno.Data.Json",
    "Uno.Net.Http",
    "Fuse.Native"
  ],
  "Projects": [],
  "Includes": [
  "*"
  ],
  "Excludes": []
}

But doesn’t work…