Skip to content

Commit

Permalink
Add R.swift to AppClip example project
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlokhorst committed Sep 15, 2020
1 parent 371da68 commit 493c338
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 137 deletions.
59 changes: 43 additions & 16 deletions Examples/RswiftUI/RswiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
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 */; };
E2CD1B072510EFE0000ACEFB /* R.generated.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2CD1B062510EFE0000ACEFB /* R.generated.swift */; };
E2CD1B092510EFF8000ACEFB /* R.generated.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2CD1B082510EFF8000ACEFB /* R.generated.swift */; };
E2CD1B0B2510F8A4000ACEFB /* Rswift in Frameworks */ = {isa = PBXBuildFile; productRef = E2CD1B0A2510F8A4000ACEFB /* Rswift */; };
E2CD1B0C2510F900000ACEFB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E243EF982510DF9200DC653F /* Assets.xcassets */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -42,15 +45,6 @@
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 @@ -68,7 +62,8 @@
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; };
E2CD1B062510EFE0000ACEFB /* R.generated.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = R.generated.swift; sourceTree = "<group>"; };
E2CD1B082510EFF8000ACEFB /* R.generated.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = R.generated.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -84,6 +79,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
E2CD1B0B2510F8A4000ACEFB /* Rswift in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -112,7 +108,7 @@
E243EF932510DF9100DC653F /* RswiftUI */ = {
isa = PBXGroup;
children = (
E2CD1B022510E5F4000ACEFB /* R.generated.swift */,
E2CD1B062510EFE0000ACEFB /* R.generated.swift */,
E243EF942510DF9100DC653F /* RswiftUIApp.swift */,
E243EF962510DF9100DC653F /* ContentView.swift */,
E243EF982510DF9200DC653F /* Assets.xcassets */,
Expand All @@ -133,6 +129,7 @@
E243EFAE2510E08D00DC653F /* RswiftUIAppClip */ = {
isa = PBXGroup;
children = (
E2CD1B082510EFF8000ACEFB /* R.generated.swift */,
E243EFAF2510E08D00DC653F /* RswiftUIAppClipApp.swift */,
E243EFB12510E08D00DC653F /* ContentView.swift */,
E243EFB32510E08E00DC653F /* ClipAssets.xcassets */,
Expand Down Expand Up @@ -189,16 +186,19 @@
isa = PBXNativeTarget;
buildConfigurationList = E243EFC02510E08E00DC653F /* Build configuration list for PBXNativeTarget "RswiftUIAppClip" */;
buildPhases = (
E2CD1B052510EF53000ACEFB /* R.swift */,
E243EFA92510E08D00DC653F /* Sources */,
E243EFAA2510E08D00DC653F /* Frameworks */,
E243EFAB2510E08D00DC653F /* Resources */,
E2CD1B042510ED72000ACEFB /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = RswiftUIAppClip;
packageProductDependencies = (
E2CD1B0A2510F8A4000ACEFB /* Rswift */,
);
productName = RswiftUIAppClip;
productReference = E243EFAD2510E08D00DC653F /* RswiftUIAppClip.app */;
productType = "com.apple.product-type.application.on-demand-install-capable";
Expand Down Expand Up @@ -257,6 +257,7 @@
buildActionMask = 2147483647;
files = (
E243EFB72510E08E00DC653F /* Preview Assets.xcassets in Resources */,
E2CD1B0C2510F900000ACEFB /* Assets.xcassets in Resources */,
E243EFB42510E08E00DC653F /* ClipAssets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -278,11 +279,31 @@
outputFileListPaths = (
);
outputPaths = (
$SRCROOT/R.generated.swift,
$SRCROOT/RswiftUI/R.generated.swift,
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"$SRCROOT/../../build/Debug/rswift\" generate \"$SRCROOT/R.generated.swift\"\n";
shellScript = "\"$SRCROOT/../../build/Debug/rswift\" generate \"$SRCROOT/RswiftUI/R.generated.swift\"\n";
};
E2CD1B052510EF53000ACEFB /* R.swift */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"$TEMP_DIR/rswift-lastrun",
);
name = R.swift;
outputFileListPaths = (
);
outputPaths = (
$SRCROOT/RswiftUIAppClip/R.generated.swift,
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"$SRCROOT/../../build/Debug/rswift\" generate \"$SRCROOT/RswiftUIAppClip/R.generated.swift\"\n";
};
/* End PBXShellScriptBuildPhase section */

Expand All @@ -293,7 +314,7 @@
files = (
E243EF972510DF9100DC653F /* ContentView.swift in Sources */,
E243EF952510DF9100DC653F /* RswiftUIApp.swift in Sources */,
E2CD1B032510E5F4000ACEFB /* R.generated.swift in Sources */,
E2CD1B072510EFE0000ACEFB /* R.generated.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -303,6 +324,7 @@
files = (
E243EFB22510E08D00DC653F /* ContentView.swift in Sources */,
E243EFB02510E08D00DC653F /* RswiftUIAppClipApp.swift in Sources */,
E2CD1B092510EFF8000ACEFB /* R.generated.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -570,6 +592,11 @@
package = E223B7AD2510E43300060B16 /* XCRemoteSwiftPackageReference "R.swift.Library" */;
productName = Rswift;
};
E2CD1B0A2510F8A4000ACEFB /* Rswift */ = {
isa = XCSwiftPackageProductDependency;
package = E223B7AD2510E43300060B16 /* XCRemoteSwiftPackageReference "R.swift.Library" */;
productName = Rswift;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = E243EF892510DF9100DC653F /* Project object */;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 2 additions & 1 deletion Examples/RswiftUI/RswiftUIAppClip/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ struct ContentView: View {
Text("Hello, App Clip!")
.padding()

Image("hand.ignoreme")
Image(uiImage: R.image.handIgnoreme()!)
.resizable()
.aspectRatio(1, contentMode: .fit)
.frame(width: 140)
.border(Color.red)
}
}

Expand Down

0 comments on commit 493c338

Please sign in to comment.