Skip to content

Commit

Permalink
Add R.swift example to SwiftUI example project
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlokhorst committed Sep 15, 2020
1 parent 42414f5 commit 371da68
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"pins": [
{
"package": "R.swift.Library",
"repositoryURL": "git@github.com:mac-cain13/R.swift.Library.git",
"repositoryURL": "https://github.com/mac-cain13/R.swift.Library.git",
"state": {
"branch": null,
"revision": "5a54805e3d08077e46edb2274ff27b20b700f568",
Expand Down
67 changes: 66 additions & 1 deletion Examples/RswiftUI/RswiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 52;
objects = {

/* Begin PBXBuildFile section */
E223B7AF2510E43300060B16 /* Rswift in Frameworks */ = {isa = PBXBuildFile; productRef = E223B7AE2510E43300060B16 /* Rswift */; };
E243EF952510DF9100DC653F /* RswiftUIApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = E243EF942510DF9100DC653F /* RswiftUIApp.swift */; };
E243EF972510DF9100DC653F /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E243EF962510DF9100DC653F /* ContentView.swift */; };
E243EF992510DF9200DC653F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E243EF982510DF9200DC653F /* Assets.xcassets */; };
Expand All @@ -16,6 +17,7 @@
E243EFB42510E08E00DC653F /* ClipAssets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E243EFB32510E08E00DC653F /* ClipAssets.xcassets */; };
E243EFB72510E08E00DC653F /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E243EFB62510E08E00DC653F /* Preview Assets.xcassets */; };
E243EFBC2510E08E00DC653F /* RswiftUIAppClip.app in Embed App Clips */ = {isa = PBXBuildFile; fileRef = E243EFAD2510E08D00DC653F /* RswiftUIAppClip.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
E2CD1B032510E5F4000ACEFB /* R.generated.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2CD1B022510E5F4000ACEFB /* R.generated.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -40,6 +42,15 @@
name = "Embed App Clips";
runOnlyForDeploymentPostprocessing = 0;
};
E2CD1B042510ED72000ACEFB /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 7;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
Expand All @@ -57,13 +68,15 @@
E243EFB82510E08E00DC653F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E243EFB92510E08E00DC653F /* RswiftUIAppClip.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RswiftUIAppClip.entitlements; sourceTree = "<group>"; };
E243EFC22510E0D900DC653F /* Rswift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Rswift.framework; sourceTree = BUILT_PRODUCTS_DIR; };
E2CD1B022510E5F4000ACEFB /* R.generated.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = R.generated.swift; sourceTree = SOURCE_ROOT; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
E243EF8E2510DF9100DC653F /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
E223B7AF2510E43300060B16 /* Rswift in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -99,6 +112,7 @@
E243EF932510DF9100DC653F /* RswiftUI */ = {
isa = PBXGroup;
children = (
E2CD1B022510E5F4000ACEFB /* R.generated.swift */,
E243EF942510DF9100DC653F /* RswiftUIApp.swift */,
E243EF962510DF9100DC653F /* ContentView.swift */,
E243EF982510DF9200DC653F /* Assets.xcassets */,
Expand Down Expand Up @@ -152,6 +166,7 @@
isa = PBXNativeTarget;
buildConfigurationList = E243EFA02510DF9200DC653F /* Build configuration list for PBXNativeTarget "RswiftUI" */;
buildPhases = (
E2CD1B012510E593000ACEFB /* R.swift */,
E243EF8D2510DF9100DC653F /* Sources */,
E243EF8E2510DF9100DC653F /* Frameworks */,
E243EF8F2510DF9100DC653F /* Resources */,
Expand All @@ -163,6 +178,9 @@
E243EFBB2510E08E00DC653F /* PBXTargetDependency */,
);
name = RswiftUI;
packageProductDependencies = (
E223B7AE2510E43300060B16 /* Rswift */,
);
productName = RswiftUI;
productReference = E243EF912510DF9100DC653F /* RswiftUI.app */;
productType = "com.apple.product-type.application";
Expand All @@ -174,6 +192,7 @@
E243EFA92510E08D00DC653F /* Sources */,
E243EFAA2510E08D00DC653F /* Frameworks */,
E243EFAB2510E08D00DC653F /* Resources */,
E2CD1B042510ED72000ACEFB /* CopyFiles */,
);
buildRules = (
);
Expand Down Expand Up @@ -210,6 +229,9 @@
Base,
);
mainGroup = E243EF882510DF9100DC653F;
packageReferences = (
E223B7AD2510E43300060B16 /* XCRemoteSwiftPackageReference "R.swift.Library" */,
);
productRefGroup = E243EF922510DF9100DC653F /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -241,13 +263,37 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
E2CD1B012510E593000ACEFB /* R.swift */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"$TEMP_DIR/rswift-lastrun",
);
name = R.swift;
outputFileListPaths = (
);
outputPaths = (
$SRCROOT/R.generated.swift,
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"$SRCROOT/../../build/Debug/rswift\" generate \"$SRCROOT/R.generated.swift\"\n";
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
E243EF8D2510DF9100DC653F /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E243EF972510DF9100DC653F /* ContentView.swift in Sources */,
E243EF952510DF9100DC653F /* RswiftUIApp.swift in Sources */,
E2CD1B032510E5F4000ACEFB /* R.generated.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -506,6 +552,25 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
E223B7AD2510E43300060B16 /* XCRemoteSwiftPackageReference "R.swift.Library" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/mac-cain13/R.swift.Library.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 5.2.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
E223B7AE2510E43300060B16 /* Rswift */ = {
isa = XCSwiftPackageProductDependency;
package = E223B7AD2510E43300060B16 /* XCRemoteSwiftPackageReference "R.swift.Library" */;
productName = Rswift;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = E243EF892510DF9100DC653F /* Project object */;
}
2 changes: 1 addition & 1 deletion Examples/RswiftUI/RswiftUI/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct ContentView: View {
Text("Hello, SwiftUI App!")
.padding()

Image("hand.ignoreme")
Image(uiImage: R.image.handIgnoreme()!)
.resizable()
.aspectRatio(1, contentMode: .fit)
.frame(width: 140)
Expand Down
16 changes: 8 additions & 8 deletions Examples/RtvApp/RtvApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
DEF5599F1CA4873D009B8C51 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DEF5599D1CA4873D009B8C51 /* Main.storyboard */; };
DEF559A11CA4873D009B8C51 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DEF559A01CA4873D009B8C51 /* Assets.xcassets */; };
DEF559B71CA48DC2009B8C51 /* R.generated.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEF559B61CA48DC2009B8C51 /* R.generated.swift */; };
E223B7B22510E46700060B16 /* Rswift in Frameworks */ = {isa = PBXBuildFile; productRef = E223B7B12510E46700060B16 /* Rswift */; };
E26B761B2451E7D100E1170F /* ImageTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E26B761A2451E7D100E1170F /* ImageTests.swift */; };
E26B761E2451EAB900E1170F /* Rswift in Frameworks */ = {isa = PBXBuildFile; productRef = E26B761D2451EAB900E1170F /* Rswift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -47,7 +47,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
E26B761E2451EAB900E1170F /* Rswift in Frameworks */,
E223B7B22510E46700060B16 /* Rswift in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -140,7 +140,7 @@
);
name = "ResourceApp-tvOS";
packageProductDependencies = (
E26B761D2451EAB900E1170F /* Rswift */,
E223B7B12510E46700060B16 /* Rswift */,
);
productName = "ResourceApp-tvOS";
productReference = DEF559971CA4873D009B8C51 /* ResourceApp-tvOS.app */;
Expand Down Expand Up @@ -200,7 +200,7 @@
);
mainGroup = D55C6CAF1B5D757300301B0D;
packageReferences = (
E26B761C2451EAB900E1170F /* XCRemoteSwiftPackageReference "R.swift.Library" */,
E223B7B02510E46700060B16 /* XCRemoteSwiftPackageReference "R.swift.Library" */,
);
productRefGroup = D55C6CB91B5D757300301B0D /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -515,9 +515,9 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
E26B761C2451EAB900E1170F /* XCRemoteSwiftPackageReference "R.swift.Library" */ = {
E223B7B02510E46700060B16 /* XCRemoteSwiftPackageReference "R.swift.Library" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "git@github.com:mac-cain13/R.swift.Library.git";
repositoryURL = "https://github.com/mac-cain13/R.swift.Library.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 5.2.0;
Expand All @@ -526,9 +526,9 @@
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
E26B761D2451EAB900E1170F /* Rswift */ = {
E223B7B12510E46700060B16 /* Rswift */ = {
isa = XCSwiftPackageProductDependency;
package = E26B761C2451EAB900E1170F /* XCRemoteSwiftPackageReference "R.swift.Library" */;
package = E223B7B02510E46700060B16 /* XCRemoteSwiftPackageReference "R.swift.Library" */;
productName = Rswift;
};
/* End XCSwiftPackageProductDependency section */
Expand Down

0 comments on commit 371da68

Please sign in to comment.