Skip to content

Commit d3d2755

Browse files
Add independent watch sample app for Messaging (#4893)
1 parent 0058b25 commit d3d2755

File tree

26 files changed

+1546
-0
lines changed

26 files changed

+1546
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
use_frameworks!
2+
3+
target 'SampleWatchAppWatchKitExtension' do
4+
platform :watchos, '6.0'
5+
6+
pod 'FirebaseAnalyticsInterop', :path => '../../../../../'
7+
pod 'FirebaseCore', :path => '../../../../../'
8+
pod 'GoogleUtilities', :path => '../../../../../'
9+
pod 'FirebaseMessaging', :path => '../../../../../'
10+
pod 'FirebaseInstanceID', :path => '../../../../../'
11+
pod 'FirebaseCoreDiagnostics', :path => '../../../../../'
12+
pod 'FirebaseCoreDiagnosticsInterop', :path => '../../../../../'
13+
pod 'GoogleDataTransport', :path => '../../../../../'
14+
pod 'GoogleDataTransportCCTSupport', :path => '../../../../../'
15+
pod 'FirebaseInstallations', :path => '../../../../../'
16+
17+
end
18+
19+
target 'ServiceExtension' do
20+
platform :watchos, '6.0'
21+
pod 'FirebaseMessaging', :path => '../../../../../'
22+
pod 'FirebaseInstanceID', :path => '../../../../../'
23+
end

Example/Messaging/App/watchOS/SampleWatchApp/SampleWatchApp.xcodeproj/project.pbxproj

Lines changed: 733 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"images" : [
3+
{
4+
"size" : "24x24",
5+
"idiom" : "watch",
6+
"scale" : "2x",
7+
"role" : "notificationCenter",
8+
"subtype" : "38mm"
9+
},
10+
{
11+
"size" : "27.5x27.5",
12+
"idiom" : "watch",
13+
"scale" : "2x",
14+
"role" : "notificationCenter",
15+
"subtype" : "42mm"
16+
},
17+
{
18+
"size" : "29x29",
19+
"idiom" : "watch",
20+
"role" : "companionSettings",
21+
"scale" : "2x"
22+
},
23+
{
24+
"size" : "29x29",
25+
"idiom" : "watch",
26+
"role" : "companionSettings",
27+
"scale" : "3x"
28+
},
29+
{
30+
"size" : "40x40",
31+
"idiom" : "watch",
32+
"scale" : "2x",
33+
"role" : "appLauncher",
34+
"subtype" : "38mm"
35+
},
36+
{
37+
"size" : "44x44",
38+
"idiom" : "watch",
39+
"scale" : "2x",
40+
"role" : "appLauncher",
41+
"subtype" : "40mm"
42+
},
43+
{
44+
"size" : "50x50",
45+
"idiom" : "watch",
46+
"scale" : "2x",
47+
"role" : "appLauncher",
48+
"subtype" : "44mm"
49+
},
50+
{
51+
"size" : "86x86",
52+
"idiom" : "watch",
53+
"scale" : "2x",
54+
"role" : "quickLook",
55+
"subtype" : "38mm"
56+
},
57+
{
58+
"size" : "98x98",
59+
"idiom" : "watch",
60+
"scale" : "2x",
61+
"role" : "quickLook",
62+
"subtype" : "42mm"
63+
},
64+
{
65+
"size" : "108x108",
66+
"idiom" : "watch",
67+
"scale" : "2x",
68+
"role" : "quickLook",
69+
"subtype" : "44mm"
70+
},
71+
{
72+
"idiom" : "watch-marketing",
73+
"size" : "1024x1024",
74+
"scale" : "1x"
75+
}
76+
],
77+
"info" : {
78+
"version" : 1,
79+
"author" : "xcode"
80+
}
81+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder.WatchKit.Storyboard" version="3.0" toolsVersion="14256" targetRuntime="watchKit" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="AgC-eL-Hgc">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14243"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.IBWatchKitPlugin" version="14219"/>
6+
</dependencies>
7+
<scenes>
8+
<!--Interface Controller-->
9+
<scene sceneID="aou-V4-d1y">
10+
<objects>
11+
<controller id="AgC-eL-Hgc" customClass="InterfaceController" customModuleProvider="target"/>
12+
</objects>
13+
<point key="canvasLocation" x="220" y="345"/>
14+
</scene>
15+
<!--Static Notification Interface Controller-->
16+
<scene sceneID="AEw-b0-oYE">
17+
<objects>
18+
<notificationController id="YCC-NB-fut">
19+
<items>
20+
<label alignment="left" text="Alert Label" numberOfLines="0" id="IdU-wH-bcW"/>
21+
</items>
22+
<notificationCategory key="notificationCategory" identifier="myCategory" id="JfB-70-Muf"/>
23+
<connections>
24+
<outlet property="notificationAlertLabel" destination="IdU-wH-bcW" id="JKC-fr-R95"/>
25+
<segue destination="4sK-HA-Art" kind="relationship" relationship="dynamicNotificationInterface" id="kXh-Jw-8B1"/>
26+
<segue destination="eXb-UN-Cd0" kind="relationship" relationship="dynamicInteractiveNotificationInterface" id="mpB-YA-K8N"/>
27+
</connections>
28+
</notificationController>
29+
</objects>
30+
<point key="canvasLocation" x="220" y="643"/>
31+
</scene>
32+
<!--Notification Controller-->
33+
<scene sceneID="ZPc-GJ-vnh">
34+
<objects>
35+
<controller id="4sK-HA-Art" customClass="NotificationController" customModuleProvider="target"/>
36+
</objects>
37+
<point key="canvasLocation" x="468" y="643"/>
38+
</scene>
39+
<!--Notification Controller-->
40+
<scene sceneID="Niz-AI-uX2">
41+
<objects>
42+
<controller id="eXb-UN-Cd0" customClass="NotificationController" customModuleProvider="target"/>
43+
</objects>
44+
<point key="canvasLocation" x="468" y="345"/>
45+
</scene>
46+
</scenes>
47+
</document>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>SampleWatchAppWatchKitApp</string>
9+
<key>CFBundleExecutable</key>
10+
<string>$(EXECUTABLE_NAME)</string>
11+
<key>CFBundleIdentifier</key>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>$(PRODUCT_NAME)</string>
17+
<key>CFBundlePackageType</key>
18+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.0</string>
21+
<key>CFBundleVersion</key>
22+
<string>1</string>
23+
<key>UISupportedInterfaceOrientations</key>
24+
<array>
25+
<string>UIInterfaceOrientationPortrait</string>
26+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
27+
</array>
28+
<key>WKWatchKitApp</key>
29+
<true/>
30+
</dict>
31+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "watch",
5+
"scale" : "2x",
6+
"screen-width" : "<=145"
7+
},
8+
{
9+
"idiom" : "watch",
10+
"scale" : "2x",
11+
"screen-width" : ">161"
12+
},
13+
{
14+
"idiom" : "watch",
15+
"scale" : "2x",
16+
"screen-width" : ">145"
17+
},
18+
{
19+
"idiom" : "watch",
20+
"scale" : "2x",
21+
"screen-width" : ">183"
22+
}
23+
],
24+
"info" : {
25+
"version" : 1,
26+
"author" : "xcode"
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"assets" : [
3+
{
4+
"idiom" : "watch",
5+
"filename" : "Circular.imageset",
6+
"role" : "circular"
7+
},
8+
{
9+
"idiom" : "watch",
10+
"filename" : "Extra Large.imageset",
11+
"role" : "extra-large"
12+
},
13+
{
14+
"idiom" : "watch",
15+
"filename" : "Graphic Bezel.imageset",
16+
"role" : "graphic-bezel"
17+
},
18+
{
19+
"idiom" : "watch",
20+
"filename" : "Graphic Circular.imageset",
21+
"role" : "graphic-circular"
22+
},
23+
{
24+
"idiom" : "watch",
25+
"filename" : "Graphic Corner.imageset",
26+
"role" : "graphic-corner"
27+
},
28+
{
29+
"idiom" : "watch",
30+
"filename" : "Graphic Large Rectangular.imageset",
31+
"role" : "graphic-large-rectangular"
32+
},
33+
{
34+
"idiom" : "watch",
35+
"filename" : "Modular.imageset",
36+
"role" : "modular"
37+
},
38+
{
39+
"idiom" : "watch",
40+
"filename" : "Utilitarian.imageset",
41+
"role" : "utilitarian"
42+
}
43+
],
44+
"info" : {
45+
"version" : 1,
46+
"author" : "xcode"
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "watch",
5+
"scale" : "2x",
6+
"screen-width" : "<=145"
7+
},
8+
{
9+
"idiom" : "watch",
10+
"scale" : "2x",
11+
"screen-width" : ">161"
12+
},
13+
{
14+
"idiom" : "watch",
15+
"scale" : "2x",
16+
"screen-width" : ">145"
17+
},
18+
{
19+
"idiom" : "watch",
20+
"scale" : "2x",
21+
"screen-width" : ">183"
22+
}
23+
],
24+
"info" : {
25+
"version" : 1,
26+
"author" : "xcode"
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "watch",
5+
"scale" : "2x",
6+
"screen-width" : "<=145"
7+
},
8+
{
9+
"idiom" : "watch",
10+
"scale" : "2x",
11+
"screen-width" : ">161"
12+
},
13+
{
14+
"idiom" : "watch",
15+
"scale" : "2x",
16+
"screen-width" : ">145"
17+
},
18+
{
19+
"idiom" : "watch",
20+
"scale" : "2x",
21+
"screen-width" : ">183"
22+
}
23+
],
24+
"info" : {
25+
"version" : 1,
26+
"author" : "xcode"
27+
}
28+
}

0 commit comments

Comments
 (0)