Skip to content

Commit 432c31d

Browse files
authored
Merge pull request #9 from handsomecode/develop
Develop
2 parents 9997f2a + a88a016 commit 432c31d

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TOOL_NAME = UnityBuildKit
2-
VERSION = 0.7.0
2+
VERSION = 1.1.1
33

44
PREFIX = /usr/local
55
INSTALL_PATH = $(PREFIX)/bin/$(TOOL_NAME)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img src="Assets/ubk_logo.png">
33
</p>
44
<p align="center">
5-
<img src="https://img.shields.io/badge/version-1.1.0-blue.svg?style=flat-square" />
5+
<img src="https://img.shields.io/badge/version-1.1.1-blue.svg?style=flat-square" />
66
<a href="https://github.com/handsomecode/UnityBuildKit/blob/master/LICENSE">
77
<img src="https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square"/>
88
</a>

Sources/UBKit/Files/Unity/UnityEditorBuildScript.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ extension File {
6767
var pbxPath = Path.Combine(iOSProjectRoot, PbxFilePath);
6868
pbx.ReadFromFile(pbxPath);
6969
70-
var folderGuid = pbx.AddFolderReference(Path.Combine(folderRootPath, "Data"), Path.Combine(iOSProjectRoot, DataProjectPath), PBXSourceTree.Absolute);
70+
var folderGuid = pbx.AddFolderReference(Path.Combine(folderRootPath, "Data"), DataProjectPath, PBXSourceTree.Absolute);
7171
var targetGiud = pbx.TargetGuidByName(iOSProjectName);
7272
var resourceGiud = pbx.GetResourcesBuildPhaseByTarget(targetGiud);
7373
pbx.AddFileToBuildSection(targetGiud, resourceGiud, folderGuid);

Sources/UBKit/Workers/XcodeProject.swift

+10-4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class XcodeProject {
3131
private let unityVersion: String
3232
private let projectPath: String
3333
private let vendorFolderPath: String
34+
private let vendorClassesFolderPath: String
35+
private let vendorLibrariesFolderPath: String
3436
private let specFileName: String
3537
private let bridgingFilesPath: String
3638

@@ -45,6 +47,8 @@ class XcodeProject {
4547

4648
self.projectPath = workingPath.appending(projectName).appending("/")
4749
self.vendorFolderPath = workingPath.appending("Vendor/UBK/")
50+
self.vendorClassesFolderPath = vendorFolderPath.appending("Classes")
51+
self.vendorLibrariesFolderPath = vendorFolderPath.appending("Libraries")
4852
self.specFileName = "project.yml"
4953
self.bridgingFilesPath = projectPath.appending("UnityBridge/")
5054
}
@@ -80,9 +84,9 @@ class XcodeProject {
8084
return unityFilesResult
8185
}
8286

83-
let unityFolderResult = createUnityVendorFolder()
84-
guard unityFolderResult == .success else {
85-
return unityFolderResult
87+
let unityFoldersResult = createUnityVendorFolders()
88+
guard unityFoldersResult == .success else {
89+
return unityFoldersResult
8690
}
8791

8892
let projectGenerationResult = generateXcodeProject()
@@ -211,9 +215,11 @@ private extension XcodeProject {
211215
}
212216
}
213217

214-
func createUnityVendorFolder() -> Result {
218+
func createUnityVendorFolders() -> Result {
215219
do {
216220
try fileManager.createDirectory(atPath: vendorFolderPath, withIntermediateDirectories: true, attributes: nil)
221+
try fileManager.createDirectory(atPath: vendorClassesFolderPath, withIntermediateDirectories: true, attributes: nil)
222+
try fileManager.createDirectory(atPath: vendorLibrariesFolderPath, withIntermediateDirectories: true, attributes: nil)
217223

218224
return .success
219225
} catch {

UnityBuildKit.xcodeproj/UBKit_Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.1</string>
18+
<string>1.1.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)