Skip to content

Commit 424fea2

Browse files
authored
feat: add xcode, android studio and code editor location and set global default (#54)
1 parent aea2230 commit 424fea2

File tree

14 files changed

+745
-67
lines changed

14 files changed

+745
-67
lines changed

ReactNativeGUITools.xcodeproj/project.pbxproj

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
/* Begin PBXBuildFile section */
1010
960B0A2B2BDCD04000494CA2 /* DropView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 960B0A2A2BDCD04000494CA2 /* DropView.swift */; };
1111
960BC8842BF3D84800914023 /* NSBezierPath.swift in Sources */ = {isa = PBXBuildFile; fileRef = 960BC8832BF3D84800914023 /* NSBezierPath.swift */; };
12+
960F35ED2C14469500989279 /* MainSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 960F35EC2C14469500989279 /* MainSettings.swift */; };
13+
960F35EF2C147D4100989279 /* PlistStorable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 960F35EE2C147D4100989279 /* PlistStorable.swift */; };
14+
960F35F12C148A8D00989279 /* MainSettingsManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 960F35F02C148A8D00989279 /* MainSettingsManager.swift */; };
1215
960F596B2BD967D600E08DEA /* NSPasteboardItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 960F596A2BD967D600E08DEA /* NSPasteboardItem.swift */; };
1316
960F596D2BD9755400E08DEA /* MainProjectListVC+ContexMenu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 960F596C2BD9755400E08DEA /* MainProjectListVC+ContexMenu.swift */; };
17+
961F2F0B2C0C94DA0071068A /* MainSettingsVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 961F2F0A2C0C94DA0071068A /* MainSettingsVC.swift */; };
1418
962075742C06404500AB61AB /* NSWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 962075732C06404500AB61AB /* NSWindowController.swift */; };
1519
963CAEEC2BFCF95C007F7572 /* NSMenu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 963CAEEB2BFCF95C007F7572 /* NSMenu.swift */; };
1620
964A8FF22BEFC67700ED5F1A /* URLSession.swift in Sources */ = {isa = PBXBuildFile; fileRef = 964A8FF12BEFC67700ED5F1A /* URLSession.swift */; };
@@ -59,18 +63,22 @@
5963
96F3D61D2BF8978E0079141F /* NSColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96F3D61C2BF8978E0079141F /* NSColor.swift */; };
6064
96F71CF52BD2D7490003D728 /* ProjectTabViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96F71CF42BD2D7490003D728 /* ProjectTabViewController.swift */; };
6165
96F9445E2C01E19A0053B5DC /* AppUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96F9445D2C01E19A0053B5DC /* AppUtils.swift */; };
62-
96FCDF9B2C0AF01500A2AFBA /* ProjectInfo+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96FCDF9A2C0AF01500A2AFBA /* ProjectInfo+Extension.swift */; };
6366
96FCDF9E2C0AF07400A2AFBA /* ProjectInfoCollection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96FCDF9D2C0AF07400A2AFBA /* ProjectInfoCollection.swift */; };
6467
96FCDFA02C0AF49700A2AFBA /* PromptAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96FCDF9F2C0AF49700A2AFBA /* PromptAlertView.swift */; };
6568
96FCDFA32C0B3CC700A2AFBA /* ProjectListMenu+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96FCDFA22C0B3CC700A2AFBA /* ProjectListMenu+Extension.swift */; };
6669
96FCDFA62C0B3EB200A2AFBA /* ProjectListStatusBarMenu+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96FCDFA52C0B3EB200A2AFBA /* ProjectListStatusBarMenu+Extension.swift */; };
70+
96FCDFA82C0B5F3200A2AFBA /* MainSettingsWC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96FCDFA72C0B5F3200A2AFBA /* MainSettingsWC.swift */; };
6771
/* End PBXBuildFile section */
6872

6973
/* Begin PBXFileReference section */
7074
960B0A2A2BDCD04000494CA2 /* DropView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DropView.swift; sourceTree = "<group>"; };
7175
960BC8832BF3D84800914023 /* NSBezierPath.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSBezierPath.swift; sourceTree = "<group>"; };
76+
960F35EC2C14469500989279 /* MainSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainSettings.swift; sourceTree = "<group>"; };
77+
960F35EE2C147D4100989279 /* PlistStorable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlistStorable.swift; sourceTree = "<group>"; };
78+
960F35F02C148A8D00989279 /* MainSettingsManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainSettingsManager.swift; sourceTree = "<group>"; };
7279
960F596A2BD967D600E08DEA /* NSPasteboardItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSPasteboardItem.swift; sourceTree = "<group>"; };
7380
960F596C2BD9755400E08DEA /* MainProjectListVC+ContexMenu.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MainProjectListVC+ContexMenu.swift"; sourceTree = "<group>"; };
81+
961F2F0A2C0C94DA0071068A /* MainSettingsVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainSettingsVC.swift; sourceTree = "<group>"; };
7482
962075732C06404500AB61AB /* NSWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSWindowController.swift; sourceTree = "<group>"; };
7583
963CAEEB2BFCF95C007F7572 /* NSMenu.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSMenu.swift; sourceTree = "<group>"; };
7684
964A8FF12BEFC67700ED5F1A /* URLSession.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = URLSession.swift; sourceTree = "<group>"; };
@@ -122,11 +130,11 @@
122130
96F3D61C2BF8978E0079141F /* NSColor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSColor.swift; sourceTree = "<group>"; };
123131
96F71CF42BD2D7490003D728 /* ProjectTabViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProjectTabViewController.swift; sourceTree = "<group>"; };
124132
96F9445D2C01E19A0053B5DC /* AppUtils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppUtils.swift; sourceTree = "<group>"; };
125-
96FCDF9A2C0AF01500A2AFBA /* ProjectInfo+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ProjectInfo+Extension.swift"; sourceTree = "<group>"; };
126133
96FCDF9D2C0AF07400A2AFBA /* ProjectInfoCollection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProjectInfoCollection.swift; sourceTree = "<group>"; };
127134
96FCDF9F2C0AF49700A2AFBA /* PromptAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PromptAlertView.swift; sourceTree = "<group>"; };
128135
96FCDFA22C0B3CC700A2AFBA /* ProjectListMenu+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ProjectListMenu+Extension.swift"; sourceTree = "<group>"; };
129136
96FCDFA52C0B3EB200A2AFBA /* ProjectListStatusBarMenu+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ProjectListStatusBarMenu+Extension.swift"; sourceTree = "<group>"; };
137+
96FCDFA72C0B5F3200A2AFBA /* MainSettingsWC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainSettingsWC.swift; sourceTree = "<group>"; };
130138
/* End PBXFileReference section */
131139

132140
/* Begin PBXFrameworksBuildPhase section */
@@ -140,6 +148,23 @@
140148
/* End PBXFrameworksBuildPhase section */
141149

142150
/* Begin PBXGroup section */
151+
960F35EB2C14468000989279 /* MainSettings */ = {
152+
isa = PBXGroup;
153+
children = (
154+
960F35EC2C14469500989279 /* MainSettings.swift */,
155+
960F35F02C148A8D00989279 /* MainSettingsManager.swift */,
156+
);
157+
path = MainSettings;
158+
sourceTree = "<group>";
159+
};
160+
961F2F092C0C94370071068A /* MainSettingsVC */ = {
161+
isa = PBXGroup;
162+
children = (
163+
961F2F0A2C0C94DA0071068A /* MainSettingsVC.swift */,
164+
);
165+
path = MainSettingsVC;
166+
sourceTree = "<group>";
167+
};
143168
965EF8372BA36378000ADFDA = {
144169
isa = PBXGroup;
145170
children = (
@@ -204,8 +229,10 @@
204229
96F10FDC2BD17A4D00ED5968 /* ProjectInfoVC */,
205230
96F10FDB2BD178FF00ED5968 /* ToolsOutlineVC */,
206231
96F10FDA2BD1785100ED5968 /* MainProjectListVC */,
232+
961F2F092C0C94370071068A /* MainSettingsVC */,
207233
96A93FC72BE3FBBF0033DFD1 /* MainProjectListWC.swift */,
208234
96A93FC92BE3FD610033DFD1 /* ToolsOutlineWC.swift */,
235+
96FCDFA72C0B5F3200A2AFBA /* MainSettingsWC.swift */,
209236
);
210237
path = Controller;
211238
sourceTree = "<group>";
@@ -231,6 +258,7 @@
231258
96F3D61C2BF8978E0079141F /* NSColor.swift */,
232259
963CAEEB2BFCF95C007F7572 /* NSMenu.swift */,
233260
962075732C06404500AB61AB /* NSWindowController.swift */,
261+
960F35EE2C147D4100989279 /* PlistStorable.swift */,
234262
);
235263
path = Extensions;
236264
sourceTree = "<group>";
@@ -247,6 +275,7 @@
247275
96B7C45D2BA71ED100197448 /* Modal */ = {
248276
isa = PBXGroup;
249277
children = (
278+
960F35EB2C14468000989279 /* MainSettings */,
250279
96FCDF9C2C0AF05500A2AFBA /* ProjectInfoCollection */,
251280
96FCDF992C0AEFAD00A2AFBA /* ProjectInfo */,
252281
96D181432BADEC7200380905 /* MenuNode.swift */,
@@ -407,7 +436,6 @@
407436
isa = PBXGroup;
408437
children = (
409438
9675F5BC2BCC49A1008FF0F4 /* ProjectInfo.swift */,
410-
96FCDF9A2C0AF01500A2AFBA /* ProjectInfo+Extension.swift */,
411439
);
412440
path = ProjectInfo;
413441
sourceTree = "<group>";
@@ -521,9 +549,11 @@
521549
96EB35B22BD80A4700BC04BF /* ScrcpyVC.swift in Sources */,
522550
96EB35AF2BD809CE00BC04BF /* KeytoolVC.swift in Sources */,
523551
96F3972F2BFE62CE00AD7FC4 /* ProjectListMenu.swift in Sources */,
552+
960F35EF2C147D4100989279 /* PlistStorable.swift in Sources */,
524553
965EF8462BA36378000ADFDA /* MainProjectListVC.swift in Sources */,
525554
96C0A4932BC441B50069FB7F /* PasteboardWriter.swift in Sources */,
526555
96D181442BADEC7200380905 /* MenuNode.swift in Sources */,
556+
961F2F0B2C0C94DA0071068A /* MainSettingsVC.swift in Sources */,
527557
96EB35B32BD80A4B00BC04BF /* AdbVC.swift in Sources */,
528558
96F10FDE2BD17A7400ED5968 /* ProjectInfoVC.swift in Sources */,
529559
962075742C06404500AB61AB /* NSWindowController.swift in Sources */,
@@ -532,12 +562,12 @@
532562
96EB35AD2BD809C600BC04BF /* lAPToolVC.swift in Sources */,
533563
96EB35BB2BD81B4200BC04BF /* ToolsOutlineVC+DataSource.swift in Sources */,
534564
96FCDFA02C0AF49700A2AFBA /* PromptAlertView.swift in Sources */,
535-
96FCDF9B2C0AF01500A2AFBA /* ProjectInfo+Extension.swift in Sources */,
536565
968C6CB52BCC16CC00F8C5A1 /* NSImage.swift in Sources */,
537566
960BC8842BF3D84800914023 /* NSBezierPath.swift in Sources */,
538567
960F596B2BD967D600E08DEA /* NSPasteboardItem.swift in Sources */,
539568
96D181472BADF13900380905 /* ToolsOutlineCellView.swift in Sources */,
540569
968C6CAF2BCC14CE00F8C5A1 /* ProjectListCellView.swift in Sources */,
570+
960F35F12C148A8D00989279 /* MainSettingsManager.swift in Sources */,
541571
96EB35B52BD80A5200BC04BF /* YarnVC.swift in Sources */,
542572
96AFFF1A2BFA08A9002D3828 /* ProjectListStatusBarMenu.swift in Sources */,
543573
96D1814E2BADF4EE00380905 /* NibInstantiatable.swift in Sources */,
@@ -552,6 +582,7 @@
552582
96F71CF52BD2D7490003D728 /* ProjectTabViewController.swift in Sources */,
553583
96FCDFA62C0B3EB200A2AFBA /* ProjectListStatusBarMenu+Extension.swift in Sources */,
554584
960B0A2B2BDCD04000494CA2 /* DropView.swift in Sources */,
585+
960F35ED2C14469500989279 /* MainSettings.swift in Sources */,
555586
96EB35B02BD809D100BC04BF /* BundletoolVC.swift in Sources */,
556587
960F596D2BD9755400E08DEA /* MainProjectListVC+ContexMenu.swift in Sources */,
557588
96BC50B62BEA83B8001002EB /* NSAlert.swift in Sources */,
@@ -563,6 +594,7 @@
563594
96EB35B72BD80A5B00BC04BF /* SystemInfoVC.swift in Sources */,
564595
96AB0B422BE296DF006613F7 /* MainProjectListVC+SearchDelegate.swift in Sources */,
565596
96EB35BF2BD81E2B00BC04BF /* MainProjectListVC+DataSource.swift in Sources */,
597+
96FCDFA82C0B5F3200A2AFBA /* MainSettingsWC.swift in Sources */,
566598
);
567599
runOnlyForDeploymentPostprocessing = 0;
568600
};

ReactNativeGUITools/AppDelegate.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,16 @@ class AppDelegate: NSObject, NSApplicationDelegate {
4343
}
4444
return true
4545
}
46+
47+
@IBAction func openSettings(_ sender: Any) {
48+
let storyboard = NSStoryboard(name: "Main", bundle: nil)
49+
guard let controller = storyboard.instantiateController(withIdentifier: "MainSettingsWC") as? MainSettingsWC else {
50+
return
51+
}
52+
let allWC = NSWindowController.getAllControllers()
53+
if let mainWindow = allWC.first?.window {
54+
controller.location = mainWindow.frame
55+
controller.showWindow(mainWindow)
56+
}
57+
}
4658
}

0 commit comments

Comments
 (0)