Skip to content

Commit 39adc8c

Browse files
author
Alex Usbergo
committed
Mods enabled by default
1 parent ecb9c77 commit 39adc8c

File tree

18 files changed

+176
-291
lines changed

18 files changed

+176
-291
lines changed

Render.xcodeproj/project.pbxproj

Lines changed: 63 additions & 156 deletions
Large diffs are not rendered by default.

Render.xcodeproj/xcshareddata/xcschemes/Test.xcscheme

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@
5757
value = "YES"
5858
isEnabled = "YES">
5959
</EnvironmentVariable>
60-
<EnvironmentVariable
61-
key = "RENDER_MOD_STYLESHEET"
62-
value = "YES"
63-
isEnabled = "YES">
64-
</EnvironmentVariable>
6560
</EnvironmentVariables>
6661
<AdditionalOptions>
6762
</AdditionalOptions>
@@ -94,11 +89,6 @@
9489
value = "YES"
9590
isEnabled = "YES">
9691
</EnvironmentVariable>
97-
<EnvironmentVariable
98-
key = "RENDER_MOD_STYLESHEET"
99-
value = "YES"
100-
isEnabled = "YES">
101-
</EnvironmentVariable>
10292
</EnvironmentVariables>
10393
<AdditionalOptions>
10494
</AdditionalOptions>
@@ -127,11 +117,6 @@
127117
value = "YES"
128118
isEnabled = "YES">
129119
</EnvironmentVariable>
130-
<EnvironmentVariable
131-
key = "RENDER_MOD_STYLESHEET"
132-
value = "YES"
133-
isEnabled = "YES">
134-
</EnvironmentVariable>
135120
</EnvironmentVariables>
136121
</ProfileAction>
137122
<AnalyzeAction

RenderNeutrino.podspec

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Pod::Spec.new do |s|
22
s.name = "RenderNeutrino"
3-
s.version = "5.2"
3+
s.version = "5.3"
44
s.summary = "Render is a declarative library for building efficient UIs on iOS inspired by React."
55
s.description = <<-DESC
6+
s.platform = :ios
67
Render is a declarative library for building efficient UIs on iOS inspired by React.
78
89
* Declarative: Render uses a declarative API to define UI components. You simply describe the layout for your UI based on a set of inputs and the framework takes care of the rest (diff and reconciliation from virtual view hierarchy to the actual one under the hood).
@@ -17,7 +18,9 @@ Pod::Spec.new do |s|
1718
s.source = { :git => "https://github.com/alexdrone/Render.git", :tag => s.version.to_s }
1819
s.social_media_url = 'https://twitter.com/alexdrone'
1920
s.ios.deployment_target = '10.0'
20-
s.source_files = 'render/**/*.{swift,h,m}'
21-
22-
21+
s.source_files = 'render/**/*', 'mods/inspector/**/*'
22+
s.ios.public_header_files = ['render/**/*.{h}']
23+
s.frameworks = 'UIKit'
24+
s.module_name = "RenderNeutrino"
25+
s.compiler_flags = ""
2326
end

demo/catalog/RenderNeutrinoDemo.xcodeproj/project.pbxproj

Lines changed: 41 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
/* End PBXAggregateTarget section */
2222

2323
/* Begin PBXBuildFile section */
24+
16016AB620C0706E003B434A /* RenderNeutrino.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 16016AB320C0705C003B434A /* RenderNeutrino.framework */; };
25+
16016AB720C0706E003B434A /* RenderNeutrino.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 16016AB320C0705C003B434A /* RenderNeutrino.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
2426
160307581FE6810200044D00 /* counter.yaml in Resources */ = {isa = PBXBuildFile; fileRef = 160307571FE6810200044D00 /* counter.yaml */; };
2527
161456111FE5C89600B9E091 /* stylesheet.yaml in Resources */ = {isa = PBXBuildFile; fileRef = 161456101FE5C89600B9E091 /* stylesheet.yaml */; };
2628
1614561C1FE5D44C00B9E091 /* Counter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1614561B1FE5D44C00B9E091 /* Counter.swift */; };
@@ -51,27 +53,27 @@
5153
/* End PBXBuildFile section */
5254

5355
/* Begin PBXContainerItemProxy section */
54-
16FB711420C02142007063B2 /* PBXContainerItemProxy */ = {
56+
16016AB220C0705C003B434A /* PBXContainerItemProxy */ = {
5557
isa = PBXContainerItemProxy;
56-
containerPortal = 16FB710E20C02142007063B2 /* Render.xcodeproj */;
57-
proxyType = 2;
58-
remoteGlobalIDString = FR_177833167596;
59-
remoteInfo = Generate;
60-
};
61-
16FB711620C02142007063B2 /* PBXContainerItemProxy */ = {
62-
isa = PBXContainerItemProxy;
63-
containerPortal = 16FB710E20C02142007063B2 /* Render.xcodeproj */;
58+
containerPortal = 16016AAD20C0705C003B434A /* Render.xcodeproj */;
6459
proxyType = 2;
6560
remoteGlobalIDString = FR_699701780932;
6661
remoteInfo = RenderNeutrino;
6762
};
68-
16FB711820C02142007063B2 /* PBXContainerItemProxy */ = {
63+
16016AB420C0705C003B434A /* PBXContainerItemProxy */ = {
6964
isa = PBXContainerItemProxy;
70-
containerPortal = 16FB710E20C02142007063B2 /* Render.xcodeproj */;
65+
containerPortal = 16016AAD20C0705C003B434A /* Render.xcodeproj */;
7166
proxyType = 2;
7267
remoteGlobalIDString = FR_479945003232;
7368
remoteInfo = Test;
7469
};
70+
16016AB820C0706E003B434A /* PBXContainerItemProxy */ = {
71+
isa = PBXContainerItemProxy;
72+
containerPortal = 16016AAD20C0705C003B434A /* Render.xcodeproj */;
73+
proxyType = 1;
74+
remoteGlobalIDString = NT_699701780932;
75+
remoteInfo = RenderNeutrino;
76+
};
7577
16FB711E20C021EB007063B2 /* PBXContainerItemProxy */ = {
7678
isa = PBXContainerItemProxy;
7779
containerPortal = 16FB711A20C021EB007063B2 /* RenderInspector.xcodeproj */;
@@ -88,13 +90,15 @@
8890
dstPath = "";
8991
dstSubfolderSpec = 10;
9092
files = (
93+
16016AB720C0706E003B434A /* RenderNeutrino.framework in Embed Frameworks */,
9194
);
9295
name = "Embed Frameworks";
9396
runOnlyForDeploymentPostprocessing = 0;
9497
};
9598
/* End PBXCopyFilesBuildPhase section */
9699

97100
/* Begin PBXFileReference section */
101+
16016AAD20C0705C003B434A /* Render.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Render.xcodeproj; path = ../../Render.xcodeproj; sourceTree = "<group>"; };
98102
160307571FE6810200044D00 /* counter.yaml */ = {isa = PBXFileReference; lastKnownFileType = text; path = counter.yaml; sourceTree = "<group>"; };
99103
161456101FE5C89600B9E091 /* stylesheet.yaml */ = {isa = PBXFileReference; lastKnownFileType = text; path = stylesheet.yaml; sourceTree = "<group>"; };
100104
1614561B1FE5D44C00B9E091 /* Counter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Counter.swift; sourceTree = "<group>"; };
@@ -124,7 +128,6 @@
124128
16D24C441FD5705E000BADB9 /* AppStoreEntryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppStoreEntryViewController.swift; sourceTree = "<group>"; };
125129
16D5F6CA2011FDEF0003CDF7 /* S.generated.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = S.generated.swift; sourceTree = "<group>"; };
126130
16ED28021FD5A74900D5E222 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
127-
16FB710E20C02142007063B2 /* Render.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Render.xcodeproj; path = ../../Render.xcodeproj; sourceTree = "<group>"; };
128131
16FB711A20C021EB007063B2 /* RenderInspector.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RenderInspector.xcodeproj; path = ../../tools/src/inspector/ios/RenderInspector.xcodeproj; sourceTree = "<group>"; };
129132
/* End PBXFileReference section */
130133

@@ -133,12 +136,22 @@
133136
isa = PBXFrameworksBuildPhase;
134137
buildActionMask = 2147483647;
135138
files = (
139+
16016AB620C0706E003B434A /* RenderNeutrino.framework in Frameworks */,
136140
);
137141
runOnlyForDeploymentPostprocessing = 0;
138142
};
139143
/* End PBXFrameworksBuildPhase section */
140144

141145
/* Begin PBXGroup section */
146+
16016AAE20C0705C003B434A /* Products */ = {
147+
isa = PBXGroup;
148+
children = (
149+
16016AB320C0705C003B434A /* RenderNeutrino.framework */,
150+
16016AB520C0705C003B434A /* Test.xctest */,
151+
);
152+
name = Products;
153+
sourceTree = "<group>";
154+
};
142155
166F93FD20890A7F0084D5ED /* common */ = {
143156
isa = PBXGroup;
144157
children = (
@@ -161,8 +174,8 @@
161174
168FA6CA1F8F856D00A12585 = {
162175
isa = PBXGroup;
163176
children = (
177+
16016AAD20C0705C003B434A /* Render.xcodeproj */,
164178
16FB711A20C021EB007063B2 /* RenderInspector.xcodeproj */,
165-
16FB710E20C02142007063B2 /* Render.xcodeproj */,
166179
168FA6D51F8F856D00A12585 /* src */,
167180
168FA6D41F8F856D00A12585 /* Products */,
168181
169DC8E61F93A4A000625FA6 /* Frameworks */,
@@ -248,16 +261,6 @@
248261
path = components;
249262
sourceTree = "<group>";
250263
};
251-
16FB710F20C02142007063B2 /* Products */ = {
252-
isa = PBXGroup;
253-
children = (
254-
16FB711520C02142007063B2 /* Generate.app */,
255-
16FB711720C02142007063B2 /* RenderNeutrino.framework */,
256-
16FB711920C02142007063B2 /* Test.xctest */,
257-
);
258-
name = Products;
259-
sourceTree = "<group>";
260-
};
261264
16FB711B20C021EB007063B2 /* Products */ = {
262265
isa = PBXGroup;
263266
children = (
@@ -282,6 +285,7 @@
282285
buildRules = (
283286
);
284287
dependencies = (
288+
16016AB920C0706E003B434A /* PBXTargetDependency */,
285289
);
286290
name = RenderNeutrinoDemo;
287291
productName = PureDemo;
@@ -321,8 +325,8 @@
321325
projectDirPath = "";
322326
projectReferences = (
323327
{
324-
ProductGroup = 16FB710F20C02142007063B2 /* Products */;
325-
ProjectRef = 16FB710E20C02142007063B2 /* Render.xcodeproj */;
328+
ProductGroup = 16016AAE20C0705C003B434A /* Products */;
329+
ProjectRef = 16016AAD20C0705C003B434A /* Render.xcodeproj */;
326330
},
327331
{
328332
ProductGroup = 16FB711B20C021EB007063B2 /* Products */;
@@ -338,25 +342,18 @@
338342
/* End PBXProject section */
339343

340344
/* Begin PBXReferenceProxy section */
341-
16FB711520C02142007063B2 /* Generate.app */ = {
342-
isa = PBXReferenceProxy;
343-
fileType = wrapper.application;
344-
path = Generate.app;
345-
remoteRef = 16FB711420C02142007063B2 /* PBXContainerItemProxy */;
346-
sourceTree = BUILT_PRODUCTS_DIR;
347-
};
348-
16FB711720C02142007063B2 /* RenderNeutrino.framework */ = {
345+
16016AB320C0705C003B434A /* RenderNeutrino.framework */ = {
349346
isa = PBXReferenceProxy;
350347
fileType = wrapper.framework;
351348
path = RenderNeutrino.framework;
352-
remoteRef = 16FB711620C02142007063B2 /* PBXContainerItemProxy */;
349+
remoteRef = 16016AB220C0705C003B434A /* PBXContainerItemProxy */;
353350
sourceTree = BUILT_PRODUCTS_DIR;
354351
};
355-
16FB711920C02142007063B2 /* Test.xctest */ = {
352+
16016AB520C0705C003B434A /* Test.xctest */ = {
356353
isa = PBXReferenceProxy;
357354
fileType = wrapper.cfbundle;
358355
path = Test.xctest;
359-
remoteRef = 16FB711820C02142007063B2 /* PBXContainerItemProxy */;
356+
remoteRef = 16016AB420C0705C003B434A /* PBXContainerItemProxy */;
360357
sourceTree = BUILT_PRODUCTS_DIR;
361358
};
362359
16FB711F20C021EB007063B2 /* RenderInspector.framework */ = {
@@ -444,6 +441,14 @@
444441
};
445442
/* End PBXSourcesBuildPhase section */
446443

444+
/* Begin PBXTargetDependency section */
445+
16016AB920C0706E003B434A /* PBXTargetDependency */ = {
446+
isa = PBXTargetDependency;
447+
name = RenderNeutrino;
448+
targetProxy = 16016AB820C0706E003B434A /* PBXContainerItemProxy */;
449+
};
450+
/* End PBXTargetDependency section */
451+
447452
/* Begin PBXVariantGroup section */
448453
168FA6DF1F8F856D00A12585 /* LaunchScreen.storyboard */ = {
449454
isa = PBXVariantGroup;

project.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,22 @@ targets:
1010
type: framework
1111
sources:
1212
- render/
13-
- mods/
1413
headers:
1514
- render/RenderNeutrino.h
1615
- render/deps/yoga/
17-
- mods/deps/yaml/yaml.h
16+
- render/mods/deps/yaml/yaml.h
1817
settings:
1918
base:
2019
INFOPLIST_FILE: render/Info.plist
2120
PRODUCT_BUNDLE_IDENTIFIER: io.alexdrone.render
2221
PLATFORM: platform $platform
2322
SWIFT_WHOLE_MODULE_OPTIMIZATION: YES
23+
RENDER_MOD_INSPECTOR: YES
24+
RENDER_MOD_STYLESHEET: YES
25+
OTHERCFLAGS: -DRENDER_MOD_INSPECTOR -DRENDER_MOD_STYLESHEET
2426
configFiles:
2527
Debug: configs/Debug.xcconfig
2628
Release: configs/Release.xcconfig
27-
Generate:
28-
platform: macOS
29-
type: application
30-
sources:
31-
- tools/src/generate/
32-
- mods/stylesheet/
33-
headers:
34-
- tools/src/generate/generate-Bridging-Header.h
35-
settings:
36-
base:
37-
SWIFT_OBJC_BRIDGING_HEADER: tools/src/generate/generate-Bridging-Header.h
3829
Test:
3930
platform: iOS
4031
type: bundle.unit-test
@@ -50,6 +41,3 @@ targets:
5041
- variable: TEST
5142
value: YES
5243
isEnabled: true
53-
- variable: RENDER_MOD_STYLESHEET
54-
value: YES
55-
isEnabled: true

render/deps/yoga/YGExtensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ public extension UIView {
546546

547547
// MARK: - UIStylesheetRepresentableEnum Yoga Compliancy
548548

549-
#if RENDER_MOD_STYLESHEET
549+
//#if RENDER_MOD_STYLESHEET
550550
extension YGAlign: UIStylesheetRepresentableEnum {
551551
public init?(rawValue: Int) { self.init(rawValue: Int32(rawValue)) }
552552
public static func expressionConstants() -> [String : Double] { return [:] }
@@ -586,4 +586,4 @@ extension YGDisplay: UIStylesheetRepresentableEnum {
586586
public init?(rawValue: Int) { self.init(rawValue: Int32(rawValue)) }
587587
public static func expressionConstants() -> [String : Double] { return [:] }
588588
}
589-
#endif
589+
//#endif

mods/stylesheet/deps/Expression.swift renamed to render/mods/stylesheet/deps/Expression.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if RENDER_MOD_STYLESHEET
1+
//#if RENDER_MOD_STYLESHEET
22
//
33
// Expression.swift
44
// Expression
@@ -1813,4 +1813,4 @@ extension Optional: _Optional {
18131813
static var nullValue: Any { return none as Any }
18141814
}
18151815

1816-
#endif
1816+
//#endif

mods/stylesheet/deps/YamlBridge.swift renamed to render/mods/stylesheet/deps/YamlBridge.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if RENDER_MOD_STYLESHEET
1+
//#if RENDER_MOD_STYLESHEET
22
import Foundation
33

44
final class YAMLConstructor {
@@ -2134,4 +2134,4 @@ extension YAMLError {
21342134
return (YAMLMark(line: line + 1, column: column + 1), contents)
21352135
}
21362136
}
2137-
#endif
2137+
//#endif
File renamed without changes.

0 commit comments

Comments
 (0)