Skip to content

Commit

Permalink
Merge pull request mac-cain13#633 from mac-cain13/examples
Browse files Browse the repository at this point in the history
Split out example projects into separate directories.
  • Loading branch information
tomlokhorst authored Nov 8, 2020
2 parents 4d15244 + 2c38961 commit 8e2f838
Show file tree
Hide file tree
Showing 241 changed files with 2,909 additions and 922 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ jobs:
uses: actions/cache@v1
id: podcache
with:
path: Pods
path: Examples/Pods
key: ${{ runner.os }}pods${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}pods
- name: Install pods
if: steps.podcache.outputs.cache-hit != 'true'
run: pod install
run: pod install --project-directory=Examples
- name: Test
run: fastlane scan --workspace "ResourceApp.xcworkspace" --scheme "ResourceApp"
run: fastlane scan --workspace "Examples/RswiftExamples.xcworkspace" --scheme "ResourceApp"

test-tvOS:
runs-on: macos-latest
Expand All @@ -73,15 +73,15 @@ jobs:
uses: actions/cache@v1
id: podcache
with:
path: Pods
path: Examples/Pods
key: ${{ runner.os }}pods${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}pods
- name: Install pods
if: steps.podcache.outputs.cache-hit != 'true'
run: pod install
run: pod install --project-directory=Examples
- name: Test
run: fastlane scan --workspace "ResourceApp.xcworkspace" --scheme "ResourceApp-tvOS"
run: fastlane scan --workspace "Examples/RswiftExamples.xcworkspace" --scheme "ResourceApp-tvOS"

build:
runs-on: macos-latest
Expand Down
20 changes: 11 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
.DS_Store
xcuserdata
DerivedData
Pods
*.xccheckout
ResourceApp/rswift
*.generated.swift
ResourceApp/rswift.log
ResourceApp/rswift-tv.log
ResourceApp/rswift-watchos.log
Pods

fastlane/test_output
fastlane/README.md
fastlane/report.xml
fastlane/settoken.sh
rswift.xcarchive
rswift.xcodeproj
.build

build
DerivedData
.build
.swiftpm
rswift.xcarchive
rswift.xcodeproj

rswift.log
rswift-tv.log
rswift-watchos.log
32 changes: 32 additions & 0 deletions Examples/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
use_frameworks!
workspace 'RswiftExamples'

def rswiftlib
pod 'R.swift.Library', :git => 'https://github.com/mac-cain13/R.swift.Library.git' # for CI builds
# pod 'R.swift.Library', :path => '../../R.swift.Library' # for development
end

target 'ResourceApp' do
platform :ios, '9.0'
project 'ResourceApp/ResourceApp'

pod 'SWRevealViewController'

rswiftlib
end

target 'ResourceAppTests' do
platform :ios, '9.0'
project 'ResourceApp/ResourceApp'

pod 'SWRevealViewController'

rswiftlib
end

target 'ResourceApp-watchOS-Extension' do
platform :watchos, '2.2'
project 'RwatchApp/RwatchApp'

rswiftlib
end
4 changes: 2 additions & 2 deletions Podfile.lock → Examples/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ SPEC CHECKSUMS:
R.swift.Library: 5ba4f1631300caf9a4d890186930da85d540769d
SWRevealViewController: 6d3fd97f70112fd7cef9de14df4260eacce4c63a

PODFILE CHECKSUM: feb2d125d56abaa9101403aedbf488a7d5445eab
PODFILE CHECKSUM: f469d71063f69d445c904540c317082849a4d112

COCOAPODS: 1.9.1
COCOAPODS: 1.9.3
File renamed without changes.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D55C6CB71B5D757300301B0D"
BuildableName = "ResourceApp.app"
BlueprintName = "ResourceApp"
ReferencedContainer = "container:ResourceApp.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO"
Expand All @@ -40,17 +49,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D55C6CB71B5D757300301B0D"
BuildableName = "ResourceApp.app"
BlueprintName = "ResourceApp"
ReferencedContainer = "container:ResourceApp.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -72,8 +70,6 @@
ReferencedContainer = "container:ResourceApp.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class StringsTests: XCTestCase {

func testNoNilStrings() {
XCTAssertNotNil(R.string.generic.loremipsum())
XCTAssertNotNil(R.string.localizable.japaneseOnly())
// XCTAssertNotNil(R.string.localizable.japaneseOnly())
XCTAssertNotNil(R.string.localizable.one())
XCTAssertNotNil(R.string.localizable.quote(4))
XCTAssertNotNil(R.string.localizable.two())
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"object": {
"pins": [
{
"package": "R.swift.Library",
"repositoryURL": "https://github.com/mac-cain13/R.swift.Library.git",
"state": {
"branch": null,
"revision": "5a54805e3d08077e46edb2274ff27b20b700f568",
"version": "5.2.0"
}
}
]
},
"version": 1
}
Loading

0 comments on commit 8e2f838

Please sign in to comment.