forked from MobiVM/robovm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* actool: support for AltIcons and other options (MobiVM#718)
# the issue - originally was reported in MobiVM#636 (support for alt icons) - also if xcassets contain multiple icons -- random one was picked for the app - also if xcassets contain multiple launch images -- random one was picked for the app # the fix `robovm.xml` was extended with `actool` options: ``` <config> <tools> <actool> <appIcon>AppIcon</appIcon> <includeAllAppIcons>true</includeAllAppIcons> </actool> </tools> </config> ``` new parameters: - `appicon` - specifies which icon to use for app (in case of multiple) - `launchImage` -- specifies which launchImage to use (in case of multiple) - `includeAllAppIcons` -- will add `--include-all-app-icons` command line argument to include all app icons - `args` -- allows to add raw arguments for actool
- Loading branch information
Showing
3 changed files
with
127 additions
and
22 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
compiler/compiler/src/main/java/org/robovm/compiler/config/tools/ActoolOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.robovm.compiler.config.tools; | ||
|
||
import org.simpleframework.xml.Element; | ||
import org.simpleframework.xml.ElementList; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
/** | ||
* Settings to provide custom actool arguments | ||
* @author dkimitsa | ||
*/ | ||
public class ActoolOptions { | ||
@ElementList(required = false, entry = "arg") | ||
private ArrayList<String> args; | ||
|
||
@Element(required = false) | ||
private String appIcon; | ||
|
||
@Element(required = false) | ||
private String launchImage; | ||
|
||
@Element(required = false) | ||
private Boolean includeAllAppIcons; | ||
|
||
public List<String> getArguments() { | ||
return args != null ? Collections.unmodifiableList(args) : Collections.emptyList(); | ||
} | ||
|
||
public String getAppIconName() { | ||
return appIcon; | ||
} | ||
|
||
public String getLaunchImageName() { | ||
return launchImage; | ||
} | ||
|
||
public boolean shouldIncludeAllAppIcons() { | ||
return includeAllAppIcons != null ? includeAllAppIcons : false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters