-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from UniToolsTeam/develop
Develop
- Loading branch information
Showing
16 changed files
with
105 additions
and
31 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,4 @@ public override void OnInspectorGUI() | |
serializedObject.ApplyModifiedProperties(); | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ public override void OnInspectorGUI() | |
base.OnInspectorGUI(); | ||
} | ||
} | ||
} | ||
} |
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
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
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
using System; | ||
#if UNITY_IOS | ||
using UnityEditor.iOS.Xcode; | ||
|
||
#endif | ||
namespace UniTools.Build.iOS | ||
{ | ||
[Serializable] | ||
public sealed class BoolPlistElement : SerializablePlistElement<bool> | ||
{ | ||
#if UNITY_IOS | ||
public override void AddTo(PlistElementDict plistElementDict) | ||
{ | ||
plistElementDict.SetBoolean(Key, Value); | ||
} | ||
#endif | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
using System; | ||
using UnityEditor.iOS.Xcode; | ||
|
||
#if UNITY_IOS | ||
using UnityEditor.iOS.Xcode; | ||
#endif | ||
namespace UniTools.Build.iOS | ||
{ | ||
[Serializable] | ||
public sealed class FloatPlistElement : SerializablePlistElement<float> | ||
{ | ||
#if UNITY_IOS | ||
public override void AddTo(PlistElementDict plistElementDict) | ||
{ | ||
plistElementDict.SetReal(Key, Value); | ||
} | ||
#endif | ||
} | ||
} |
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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
#if UNITY_IOS | ||
using UnityEditor.iOS.Xcode; | ||
|
||
#endif | ||
namespace UniTools.Build.iOS | ||
{ | ||
public interface IPlistElement | ||
{ | ||
void AddTo(PlistElementDict plistElementDict); | ||
void AddTo( | ||
#if UNITY_IOS | ||
PlistElementDict plistElementDict | ||
#endif | ||
); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
using System; | ||
using UnityEditor.iOS.Xcode; | ||
|
||
#if UNITY_IOS | ||
using UnityEditor.iOS.Xcode; | ||
#endif | ||
namespace UniTools.Build.iOS | ||
{ | ||
[Serializable] | ||
public sealed class IntPlistElement : SerializablePlistElement<int> | ||
{ | ||
#if UNITY_IOS | ||
public override void AddTo(PlistElementDict plistElementDict) | ||
{ | ||
plistElementDict.SetInteger(Key, Value); | ||
} | ||
#endif | ||
} | ||
} |
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 |
---|---|---|
@@ -1,15 +1,26 @@ | ||
using System; | ||
using UnityEditor.iOS.Xcode; | ||
using UnityEngine; | ||
#if UNITY_IOS | ||
using UnityEditor.iOS.Xcode; | ||
#endif | ||
|
||
namespace UniTools.Build.iOS | ||
{ | ||
[Serializable] | ||
public abstract class SerializablePlistElement<TValue> : IPlistElement | ||
public abstract class SerializablePlistElement<TValue> | ||
: IPlistElement | ||
{ | ||
[SerializeField] protected string Key; | ||
[SerializeField] protected TValue Value; | ||
|
||
#if UNITY_IOS | ||
public abstract void AddTo(PlistElementDict plistElementDict); | ||
#else | ||
public void AddTo() | ||
{ | ||
throw new Exception($"{nameof(SerializablePlistElement<TValue>)}:Unsupported platform for {Key} and {Value}"); | ||
} | ||
|
||
#endif | ||
} | ||
} |
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 |
---|---|---|
@@ -1,14 +1,19 @@ | ||
using System; | ||
#if UNITY_IOS | ||
using UnityEditor.iOS.Xcode; | ||
#endif | ||
|
||
namespace UniTools.Build.iOS | ||
{ | ||
[Serializable] | ||
public sealed class StringPlistElement : SerializablePlistElement<string> | ||
{ | ||
#if UNITY_IOS | ||
|
||
public override void AddTo(PlistElementDict plistElementDict) | ||
{ | ||
plistElementDict.SetString(Key, Value); | ||
} | ||
#endif | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
{ | ||
"displayName": "UniTools.Build.iOS", | ||
"name": "com.unitools.build.ios", | ||
"version": "0.0.0", | ||
"version": "0.0.1-preview", | ||
"unity": "2019.1", | ||
"description": "AdvancedBuildPipeline", | ||
"description": "Part of the Customizable Build Pipeline tool for the iOS build target", | ||
"keywords": [ | ||
"unity", | ||
"ios", | ||
"build", | ||
"unity3d", | ||
"cli", | ||
"CI", | ||
"CD", | ||
"C#" | ||
"ci-cd", | ||
"build-tool", | ||
"ci-cd-pipeline", | ||
"unity-tool" | ||
], | ||
"category": "Libraries", | ||
"type": "library", | ||
"dependencies": { | ||
"com.unitools.cli": "0.0.0", | ||
"com.unitools.io": "0.0.0", | ||
"com.unitools.build": "0.0.0" | ||
"com.unitools.cli": "0.0.1-preview", | ||
"com.unitools.io": "0.0.1-preview", | ||
"com.unitools.build": "0.0.1-preview" | ||
} | ||
} |