Skip to content

Commit b5377e4

Browse files
Checpoint + Débogage en vue
1 parent 059ec6b commit b5377e4

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/airsquared/blobsaver/app/Devices.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static String modelToIdentifier(String deviceModel) {
110110
}
111111

112112
/**
113-
* @return either "iPhone", "iPod", "iPad", "AppleTV", or "T2 Mac".
113+
* @return either "iPhone", "iPod", "iPad", "AppleTV", "T2 Mac" or "Mac".
114114
*/
115115
public static String getDeviceType(String identifier) {
116116
if (identifier.startsWith("iPhone")) {
@@ -123,6 +123,8 @@ public static String getDeviceType(String identifier) {
123123
return "AppleTV";
124124
} else if (identifier.startsWith("iBridge")) {
125125
return "T2 Mac";
126+
} else if (identifier.startsWith("Mac")) {
127+
return "Mac";
126128
}
127129
throw new IllegalArgumentException("Not found: " + identifier);
128130
}
@@ -134,6 +136,7 @@ public static ObservableList<String> getModelsForType(String deviceType) {
134136
case "iPad" -> iPadList;
135137
case "AppleTV" -> AppleTVList;
136138
case "T2 Mac" -> iBridgeList;
139+
case "Mac" -> macsList;
137140
default -> FXCollections.emptyObservableList();
138141
};
139142
}
@@ -144,6 +147,7 @@ public static String getOSNameForType(String deviceType) {
144147
case "iPad" -> "iOS/iPadOS";
145148
case "AppleTV" -> "tvOS";
146149
case "T2 Mac" -> "bridgeOS";
150+
case "Mac" -> "macOS";
147151
default -> null;
148152
};
149153
}
@@ -196,5 +200,6 @@ public Object put(Object key, Object value) {
196200
loader.load("devicemodels/iPads.properties", iPads::add);
197201
loader.load("devicemodels/iBridges.properties", iBridgeList::add);
198202
loader.load("devicemodels/others.properties", _ -> {});
203+
loader.load("devicemodels/Macs.properties", macsList::add);
199204
}
200205
}

src/main/resources/airsquared/blobsaver/app/boardconfigs.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,4 @@ iBridge2,19=j185ap
165165
iBridge2,20=j185fap
166166
iBridge2,21=j223ap
167167
iBridge2,22=j215ap
168+
Mac16,10=j773gap

0 commit comments

Comments
 (0)