Skip to content

Commit

Permalink
Run config enhancements (MobiVM#761)
Browse files Browse the repository at this point in the history
* run config enhancements

* prepare plist for bundle id, non editable text area

* null check for bundle identifier, and give mask of items that should be checked if they are in entiltments

* update keys

(cherry picked from commit 204304f)
  • Loading branch information
Tom-Ski authored and dkimitsa committed Apr 12, 2024
1 parent 6df4ce7 commit e127427
Show file tree
Hide file tree
Showing 4 changed files with 559 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ public String getAppIdPrefix() {
return appIdPrefix;
}

public String getAppId () {
return appId;
}
public Date getCreationDate() {
return creationDate;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ public static String[] listUdids() {
}
}

public static boolean isConnected (String uuid) {
String[] strings = listUdids();
for (String string : strings) {
if (string.equalsIgnoreCase(uuid)) return true;
}
return false;
}

/**
* Registers a new {@link EventListener} which will be called when devices
* are added and removed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="org.robovm.idea.running.RoboVmIOSRunConfigurationSettingsEditor">
<grid id="27dc6" binding="panel" layout-manager="BorderLayout" hgap="0" vgap="0">
<constraints>
<xy x="20" y="20" width="500" height="424"/>
<xy x="20" y="20" width="500" height="768"/>
</constraints>
<properties/>
<border type="none"/>
Expand All @@ -20,7 +20,7 @@
<properties/>
<border type="none"/>
<children>
<grid id="b6433" layout-manager="GridLayoutManager" row-count="5" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<grid id="b6433" layout-manager="GridLayoutManager" row-count="7" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<grid row="0" column="0" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
Expand Down Expand Up @@ -52,17 +52,23 @@
</component>
<component id="c4a17" class="javax.swing.JLabel">
<constraints>
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="5" use-parent-layout="false"/>
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="5" use-parent-layout="false">
<preferred-size width="96" height="9"/>
</grid>
</constraints>
<properties>
<text value="Signing Identity"/>
</properties>
</component>
<component id="e300e" class="javax.swing.JComboBox" binding="signingIdentity">
<constraints>
<grid row="2" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
<grid row="2" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="78" height="9"/>
</grid>
</constraints>
<properties/>
<properties>
<model/>
</properties>
</component>
<component id="f283b" class="javax.swing.JLabel">
<constraints>
Expand All @@ -84,14 +90,44 @@
<constraints>
<grid row="3" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<properties>
<model/>
</properties>
</component>
<component id="5338e" class="com.intellij.ui.components.JBTextField" binding="targetDeviceUDID">
<component id="5b969" class="javax.swing.JComboBox" binding="targetDeviceUDID">
<constraints>
<grid row="4" column="2" row-span="1" col-span="1" vsize-policy="2" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
</component>
<grid id="9763" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<grid row="6" column="1" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="a8acf" class="javax.swing.JTextPane" binding="errors">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false">
<minimum-size width="0" height="0"/>
</grid>
</constraints>
<properties>
<background color="-12829119"/>
<editable value="false"/>
<foreground color="-37766"/>
<text value=""/>
</properties>
</component>
</children>
</grid>
<vspacer id="82d31">
<constraints>
<grid row="5" column="2" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
</constraints>
</vspacer>
</children>
</grid>
<grid id="f35fa" layout-manager="GridLayoutManager" row-count="4" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
Expand Down Expand Up @@ -178,26 +214,66 @@
</grid>
</children>
</tabbedpane>
<grid id="432cd" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<grid id="432cd" layout-manager="GridLayoutManager" row-count="2" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints border-constraint="North"/>
<properties/>
<border type="none"/>
<children>
<component id="3e044" class="javax.swing.JLabel">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false">
<preferred-size width="135" height="17"/>
</grid>
</constraints>
<properties>
<text value="Module"/>
</properties>
</component>
<component id="4e2ce" class="javax.swing.JComboBox" binding="module">
<constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
<grid row="0" column="1" row-span="1" col-span="3" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
</component>
<grid id="b9b65" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="10" left="0" bottom="10" right="0"/>
<constraints>
<grid row="1" column="2" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false">
<preferred-size width="75" height="27"/>
</grid>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="f84b4" class="javax.swing.JLabel" binding="bundleLabel">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<foreground color="-8554110"/>
<text value="undetected"/>
</properties>
</component>
</children>
</grid>
<component id="8fe12" class="javax.swing.JLabel">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false">
<preferred-size width="135" height="27"/>
</grid>
</constraints>
<properties>
<text value="Detected bundle ID"/>
</properties>
</component>
<vspacer id="4cd72">
<constraints>
<grid row="1" column="3" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false">
<preferred-size width="11" height="27"/>
</grid>
</constraints>
</vspacer>
</children>
</grid>
</children>
Expand Down
Loading

0 comments on commit e127427

Please sign in to comment.