Skip to content

Commit 29689f4

Browse files
Merge pull request #7 from htmlprogrammist/develop
Adding Continuous Integration
2 parents b4dc8d1 + 6a57c06 commit 29689f4

11 files changed

Lines changed: 49 additions & 15 deletions

File tree

.github/workflows/swift.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Swift
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
branches:
10+
- main
11+
- develop
12+
13+
jobs:
14+
build:
15+
16+
runs-on: macos-latest
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Build on iOS 16.0
21+
run: xcodebuild -workspace Example\ App/EmojiPicker.xcworkspace -scheme EmojiPicker -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=16.0,name=iPhone 14'
22+
- name: Test on iOS 16.0
23+
run: xcodebuild -workspace Example\ App/EmojiPicker.xcworkspace -scheme EmojiPicker-Example -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=16.0,name=iPhone 14' test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
# Development
12
.swiftpm/
3+
.build/
4+
5+
# macOS files
26
.DS_Store
Binary file not shown.

Example App/EmojiPicker/AppDelegate.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1616
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
1717

1818
let window = UIWindow(frame: UIScreen.main.bounds)
19-
20-
if #available(iOS 13.0, *) {
21-
window.overrideUserInterfaceStyle = .light
22-
}
2319
window.rootViewController = ViewController()
2420
window.makeKeyAndVisible()
2521
self.window = window

Example App/EmojiPicker/ViewController.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ class ViewController: UIViewController {
3434
}
3535

3636
private func setupView() {
37-
view.backgroundColor = .white
37+
if #available(iOS 13.0, *) {
38+
view.backgroundColor = .systemBackground
39+
} else {
40+
view.backgroundColor = .white
41+
}
42+
3843
view.addSubview(emojiButton)
3944

4045
NSLayoutConstraint.activate([

Example App/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
2-
- EmojiPicker (3.0.3)
3-
- EmojiPicker/Tests (3.0.3)
2+
- EmojiPicker (3.0.4)
3+
- EmojiPicker/Tests (3.0.4)
44

55
DEPENDENCIES:
66
- EmojiPicker (from `../`)
@@ -11,7 +11,7 @@ EXTERNAL SOURCES:
1111
:path: "../"
1212

1313
SPEC CHECKSUMS:
14-
EmojiPicker: e0c7c5879b01cc9c796fe77165e6a1c82945b8cc
14+
EmojiPicker: 4b34979fe8adbe0c59a210c3d1bff3223ca4cdfb
1515

1616
PODFILE CHECKSUM: e686a8fbd8a5367eac0bf7fb77e0bbddf18a2353
1717

Example App/Pods/Local Podspecs/EmojiPicker.podspec.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example App/Pods/Manifest.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example App/Pods/Target Support Files/EmojiPicker/EmojiPicker-Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example App/Pods/Target Support Files/EmojiPicker/ResourceBundle-EmojiPicker-EmojiPicker-Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)