├── .gitattributes
├── .gitignore
├── BuildChat.sln
└── BuildChat
├── BuildChat.Android
├── Assets
│ └── AboutAssets.txt
├── BuildChat.Android.csproj
├── MainActivity.cs
├── Properties
│ ├── AndroidManifest.xml
│ └── AssemblyInfo.cs
└── Resources
│ ├── AboutResources.txt
│ ├── Resource.designer.cs
│ ├── layout
│ ├── Tabbar.axml
│ └── Toolbar.axml
│ ├── mipmap-anydpi-v26
│ ├── icon.xml
│ └── icon_round.xml
│ ├── mipmap-hdpi
│ ├── icon.png
│ └── launcher_foreground.png
│ ├── mipmap-mdpi
│ ├── icon.png
│ └── launcher_foreground.png
│ ├── mipmap-xhdpi
│ ├── icon.png
│ └── launcher_foreground.png
│ ├── mipmap-xxhdpi
│ ├── icon.png
│ └── launcher_foreground.png
│ ├── mipmap-xxxhdpi
│ ├── icon.png
│ └── launcher_foreground.png
│ └── values
│ ├── colors.xml
│ └── styles.xml
├── BuildChat.iOS
├── AppDelegate.cs
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon1024.png
│ │ ├── Icon120.png
│ │ ├── Icon152.png
│ │ ├── Icon167.png
│ │ ├── Icon180.png
│ │ ├── Icon20.png
│ │ ├── Icon29.png
│ │ ├── Icon40.png
│ │ ├── Icon58.png
│ │ ├── Icon60.png
│ │ ├── Icon76.png
│ │ ├── Icon80.png
│ │ └── Icon87.png
├── BuildChat.iOS.csproj
├── Entitlements.plist
├── Info.plist
├── Main.cs
├── Properties
│ └── AssemblyInfo.cs
└── Resources
│ ├── Default-568h@2x.png
│ ├── Default-Portrait.png
│ ├── Default-Portrait@2x.png
│ ├── Default.png
│ ├── Default@2x.png
│ └── LaunchScreen.storyboard
└── BuildChat
├── App.xaml
├── App.xaml.cs
├── BuildChat.csproj
├── Converters
└── InverseBoolConverter.cs
├── MainPage.xaml
├── MainPage.xaml.cs
├── Models
└── MessageModel.cs
└── ViewModels
└── MainViewModel.cs
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | x64/
19 | x86/
20 | bld/
21 | [Bb]in/
22 | [Oo]bj/
23 | [Ll]og/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 | # MSTest test Results
31 | [Tt]est[Rr]esult*/
32 | [Bb]uild[Ll]og.*
33 |
34 | # NUNIT
35 | *.VisualState.xml
36 | TestResult.xml
37 |
38 | # Build Results of an ATL Project
39 | [Dd]ebugPS/
40 | [Rr]eleasePS/
41 | dlldata.c
42 |
43 | # DNX
44 | project.lock.json
45 | project.fragment.lock.json
46 | artifacts/
47 |
48 | *_i.c
49 | *_p.c
50 | *_i.h
51 | *.ilk
52 | *.meta
53 | *.obj
54 | *.pch
55 | *.pdb
56 | *.pgc
57 | *.pgd
58 | *.rsp
59 | *.sbr
60 | *.tlb
61 | *.tli
62 | *.tlh
63 | *.tmp
64 | *.tmp_proj
65 | *.log
66 | *.vspscc
67 | *.vssscc
68 | .builds
69 | *.pidb
70 | *.svclog
71 | *.scc
72 |
73 | # Chutzpah Test files
74 | _Chutzpah*
75 |
76 | # Visual C++ cache files
77 | ipch/
78 | *.aps
79 | *.ncb
80 | *.opendb
81 | *.opensdf
82 | *.sdf
83 | *.cachefile
84 | *.VC.db
85 | *.VC.VC.opendb
86 |
87 | # Visual Studio profiler
88 | *.psess
89 | *.vsp
90 | *.vspx
91 | *.sap
92 |
93 | # TFS 2012 Local Workspace
94 | $tf/
95 |
96 | # Guidance Automation Toolkit
97 | *.gpState
98 |
99 | # ReSharper is a .NET coding add-in
100 | _ReSharper*/
101 | *.[Rr]e[Ss]harper
102 | *.DotSettings.user
103 |
104 | # JustCode is a .NET coding add-in
105 | .JustCode
106 |
107 | # TeamCity is a build add-in
108 | _TeamCity*
109 |
110 | # DotCover is a Code Coverage Tool
111 | *.dotCover
112 |
113 | # NCrunch
114 | _NCrunch_*
115 | .*crunch*.local.xml
116 | nCrunchTemp_*
117 |
118 | # MightyMoose
119 | *.mm.*
120 | AutoTest.Net/
121 |
122 | # Web workbench (sass)
123 | .sass-cache/
124 |
125 | # Installshield output folder
126 | [Ee]xpress/
127 |
128 | # DocProject is a documentation generator add-in
129 | DocProject/buildhelp/
130 | DocProject/Help/*.HxT
131 | DocProject/Help/*.HxC
132 | DocProject/Help/*.hhc
133 | DocProject/Help/*.hhk
134 | DocProject/Help/*.hhp
135 | DocProject/Help/Html2
136 | DocProject/Help/html
137 |
138 | # Click-Once directory
139 | publish/
140 |
141 | # Publish Web Output
142 | *.[Pp]ublish.xml
143 | *.azurePubxml
144 | # TODO: Comment the next line if you want to checkin your web deploy settings
145 | # but database connection strings (with potential passwords) will be unencrypted
146 | #*.pubxml
147 | *.publishproj
148 |
149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
150 | # checkin your Azure Web App publish settings, but sensitive information contained
151 | # in these scripts will be unencrypted
152 | PublishScripts/
153 |
154 | # NuGet Packages
155 | *.nupkg
156 | # The packages folder can be ignored because of Package Restore
157 | **/packages/*
158 | # except build/, which is used as an MSBuild target.
159 | !**/packages/build/
160 | # Uncomment if necessary however generally it will be regenerated when needed
161 | #!**/packages/repositories.config
162 | # NuGet v3's project.json files produces more ignoreable files
163 | *.nuget.props
164 | *.nuget.targets
165 |
166 | # Microsoft Azure Build Output
167 | csx/
168 | *.build.csdef
169 |
170 | # Microsoft Azure Emulator
171 | ecf/
172 | rcf/
173 |
174 | # Windows Store app package directories and files
175 | AppPackages/
176 | BundleArtifacts/
177 | Package.StoreAssociation.xml
178 | _pkginfo.txt
179 |
180 | # Visual Studio cache files
181 | # files ending in .cache can be ignored
182 | *.[Cc]ache
183 | # but keep track of directories ending in .cache
184 | !*.[Cc]ache/
185 |
186 | # Others
187 | ClientBin/
188 | ~$*
189 | *~
190 | *.dbmdl
191 | *.dbproj.schemaview
192 | *.jfm
193 | *.pfx
194 | *.publishsettings
195 | node_modules/
196 | orleans.codegen.cs
197 |
198 | # Since there are multiple workflows, uncomment next line to ignore bower_components
199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
200 | #bower_components/
201 |
202 | # RIA/Silverlight projects
203 | Generated_Code/
204 |
205 | # Backup & report files from converting an old project file
206 | # to a newer Visual Studio version. Backup files are not needed,
207 | # because we have git ;-)
208 | _UpgradeReport_Files/
209 | Backup*/
210 | UpgradeLog*.XML
211 | UpgradeLog*.htm
212 |
213 | # SQL Server files
214 | *.mdf
215 | *.ldf
216 |
217 | # Business Intelligence projects
218 | *.rdl.data
219 | *.bim.layout
220 | *.bim_*.settings
221 |
222 | # Microsoft Fakes
223 | FakesAssemblies/
224 |
225 | # GhostDoc plugin setting file
226 | *.GhostDoc.xml
227 |
228 | # Node.js Tools for Visual Studio
229 | .ntvs_analysis.dat
230 |
231 | # Visual Studio 6 build log
232 | *.plg
233 |
234 | # Visual Studio 6 workspace options file
235 | *.opt
236 |
237 | # Visual Studio LightSwitch build output
238 | **/*.HTMLClient/GeneratedArtifacts
239 | **/*.DesktopClient/GeneratedArtifacts
240 | **/*.DesktopClient/ModelManifest.xml
241 | **/*.Server/GeneratedArtifacts
242 | **/*.Server/ModelManifest.xml
243 | _Pvt_Extensions
244 |
245 | # Paket dependency manager
246 | .paket/paket.exe
247 | paket-files/
248 |
249 | # FAKE - F# Make
250 | .fake/
251 |
252 | # JetBrains Rider
253 | .idea/
254 | *.sln.iml
255 |
256 | # CodeRush
257 | .cr/
258 |
259 | # Python Tools for Visual Studio (PTVS)
260 | __pycache__/
261 | *.pyc
--------------------------------------------------------------------------------
/BuildChat.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.106
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BuildChat.Android", "BuildChat\BuildChat.Android\BuildChat.Android.csproj", "{337DF575-D242-41D3-ABB9-011457C950A5}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BuildChat.iOS", "BuildChat\BuildChat.iOS\BuildChat.iOS.csproj", "{302DEBF1-68D3-45A7-9407-CD7D7B887D7C}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BuildChat", "BuildChat\BuildChat\BuildChat.csproj", "{DE8BB608-918C-45C3-900C-6767B92FB45D}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
15 | Ad-Hoc|iPhone = Ad-Hoc|iPhone
16 | Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
17 | AppStore|Any CPU = AppStore|Any CPU
18 | AppStore|iPhone = AppStore|iPhone
19 | AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
20 | Debug|Any CPU = Debug|Any CPU
21 | Debug|iPhone = Debug|iPhone
22 | Debug|iPhoneSimulator = Debug|iPhoneSimulator
23 | Release|Any CPU = Release|Any CPU
24 | Release|iPhone = Release|iPhone
25 | Release|iPhoneSimulator = Release|iPhoneSimulator
26 | EndGlobalSection
27 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
28 | {337DF575-D242-41D3-ABB9-011457C950A5}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
29 | {337DF575-D242-41D3-ABB9-011457C950A5}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
30 | {337DF575-D242-41D3-ABB9-011457C950A5}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
31 | {337DF575-D242-41D3-ABB9-011457C950A5}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
32 | {337DF575-D242-41D3-ABB9-011457C950A5}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
33 | {337DF575-D242-41D3-ABB9-011457C950A5}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU
34 | {337DF575-D242-41D3-ABB9-011457C950A5}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
35 | {337DF575-D242-41D3-ABB9-011457C950A5}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
36 | {337DF575-D242-41D3-ABB9-011457C950A5}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
37 | {337DF575-D242-41D3-ABB9-011457C950A5}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
38 | {337DF575-D242-41D3-ABB9-011457C950A5}.AppStore|Any CPU.Build.0 = Release|Any CPU
39 | {337DF575-D242-41D3-ABB9-011457C950A5}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
40 | {337DF575-D242-41D3-ABB9-011457C950A5}.AppStore|iPhone.ActiveCfg = Release|Any CPU
41 | {337DF575-D242-41D3-ABB9-011457C950A5}.AppStore|iPhone.Build.0 = Release|Any CPU
42 | {337DF575-D242-41D3-ABB9-011457C950A5}.AppStore|iPhone.Deploy.0 = Release|Any CPU
43 | {337DF575-D242-41D3-ABB9-011457C950A5}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
44 | {337DF575-D242-41D3-ABB9-011457C950A5}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
45 | {337DF575-D242-41D3-ABB9-011457C950A5}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
46 | {337DF575-D242-41D3-ABB9-011457C950A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47 | {337DF575-D242-41D3-ABB9-011457C950A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
48 | {337DF575-D242-41D3-ABB9-011457C950A5}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
49 | {337DF575-D242-41D3-ABB9-011457C950A5}.Debug|iPhone.ActiveCfg = Debug|Any CPU
50 | {337DF575-D242-41D3-ABB9-011457C950A5}.Debug|iPhone.Build.0 = Debug|Any CPU
51 | {337DF575-D242-41D3-ABB9-011457C950A5}.Debug|iPhone.Deploy.0 = Debug|Any CPU
52 | {337DF575-D242-41D3-ABB9-011457C950A5}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
53 | {337DF575-D242-41D3-ABB9-011457C950A5}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
54 | {337DF575-D242-41D3-ABB9-011457C950A5}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
55 | {337DF575-D242-41D3-ABB9-011457C950A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
56 | {337DF575-D242-41D3-ABB9-011457C950A5}.Release|Any CPU.Build.0 = Release|Any CPU
57 | {337DF575-D242-41D3-ABB9-011457C950A5}.Release|Any CPU.Deploy.0 = Release|Any CPU
58 | {337DF575-D242-41D3-ABB9-011457C950A5}.Release|iPhone.ActiveCfg = Release|Any CPU
59 | {337DF575-D242-41D3-ABB9-011457C950A5}.Release|iPhone.Build.0 = Release|Any CPU
60 | {337DF575-D242-41D3-ABB9-011457C950A5}.Release|iPhone.Deploy.0 = Release|Any CPU
61 | {337DF575-D242-41D3-ABB9-011457C950A5}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
62 | {337DF575-D242-41D3-ABB9-011457C950A5}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
63 | {337DF575-D242-41D3-ABB9-011457C950A5}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
64 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
65 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Ad-Hoc|Any CPU.Build.0 = Ad-Hoc|iPhone
66 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Ad-Hoc|Any CPU.Deploy.0 = Ad-Hoc|iPhone
67 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
68 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
69 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Ad-Hoc|iPhone.Deploy.0 = Ad-Hoc|iPhone
70 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
71 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
72 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Ad-Hoc|iPhoneSimulator
73 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
74 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.AppStore|Any CPU.Build.0 = AppStore|iPhone
75 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.AppStore|Any CPU.Deploy.0 = AppStore|iPhone
76 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
77 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.AppStore|iPhone.Build.0 = AppStore|iPhone
78 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.AppStore|iPhone.Deploy.0 = AppStore|iPhone
79 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
80 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
81 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.AppStore|iPhoneSimulator.Deploy.0 = AppStore|iPhoneSimulator
82 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
83 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
84 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Debug|Any CPU.Deploy.0 = Debug|iPhoneSimulator
85 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Debug|iPhone.ActiveCfg = Debug|iPhone
86 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Debug|iPhone.Build.0 = Debug|iPhone
87 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Debug|iPhone.Deploy.0 = Debug|iPhone
88 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
89 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
90 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator
91 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Release|Any CPU.ActiveCfg = Release|iPhone
92 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Release|Any CPU.Build.0 = Release|iPhone
93 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Release|Any CPU.Deploy.0 = Release|iPhone
94 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Release|iPhone.ActiveCfg = Release|iPhone
95 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Release|iPhone.Build.0 = Release|iPhone
96 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Release|iPhone.Deploy.0 = Release|iPhone
97 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
98 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
99 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator
100 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
101 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
102 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Ad-Hoc|Any CPU.Deploy.0 = Debug|Any CPU
103 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
104 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
105 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Ad-Hoc|iPhone.Deploy.0 = Debug|Any CPU
106 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
107 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
108 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Debug|Any CPU
109 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
110 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.AppStore|Any CPU.Build.0 = Debug|Any CPU
111 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.AppStore|Any CPU.Deploy.0 = Debug|Any CPU
112 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
113 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.AppStore|iPhone.Build.0 = Debug|Any CPU
114 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.AppStore|iPhone.Deploy.0 = Debug|Any CPU
115 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
116 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
117 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.AppStore|iPhoneSimulator.Deploy.0 = Debug|Any CPU
118 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
119 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Debug|Any CPU.Build.0 = Debug|Any CPU
120 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
121 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Debug|iPhone.ActiveCfg = Debug|Any CPU
122 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Debug|iPhone.Build.0 = Debug|Any CPU
123 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Debug|iPhone.Deploy.0 = Debug|Any CPU
124 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
125 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
126 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
127 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Release|Any CPU.ActiveCfg = Release|Any CPU
128 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Release|Any CPU.Build.0 = Release|Any CPU
129 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Release|Any CPU.Deploy.0 = Release|Any CPU
130 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Release|iPhone.ActiveCfg = Release|Any CPU
131 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Release|iPhone.Build.0 = Release|Any CPU
132 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Release|iPhone.Deploy.0 = Release|Any CPU
133 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
134 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
135 | {DE8BB608-918C-45C3-900C-6767B92FB45D}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
136 | EndGlobalSection
137 | GlobalSection(SolutionProperties) = preSolution
138 | HideSolutionNode = FALSE
139 | EndGlobalSection
140 | GlobalSection(ExtensibilityGlobals) = postSolution
141 | SolutionGuid = {F0C03324-D00E-41E8-8E08-3E83FEC0ED45}
142 | EndGlobalSection
143 | EndGlobal
144 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Assets/AboutAssets.txt:
--------------------------------------------------------------------------------
1 | Any raw assets you want to be deployed with your application can be placed in
2 | this directory (and child directories) and given a Build Action of "AndroidAsset".
3 |
4 | These files will be deployed with you package and will be accessible using Android's
5 | AssetManager, like this:
6 |
7 | public class ReadAsset : Activity
8 | {
9 | protected override void OnCreate (Bundle bundle)
10 | {
11 | base.OnCreate (bundle);
12 |
13 | InputStream input = Assets.Open ("my_asset.txt");
14 | }
15 | }
16 |
17 | Additionally, some Android functions will automatically load asset files:
18 |
19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
20 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/BuildChat.Android.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | {337DF575-D242-41D3-ABB9-011457C950A5}
7 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
8 | {c9e5eea5-ca05-42a1-839b-61506e0a37df}
9 | Library
10 | BuildChat.Droid
11 | BuildChat.Android
12 | True
13 | Resources\Resource.designer.cs
14 | Resource
15 | Properties\AndroidManifest.xml
16 | Resources
17 | Assets
18 | false
19 | v8.1
20 | Xamarin.Android.Net.AndroidClientHandler
21 |
22 |
23 |
24 |
25 | true
26 | portable
27 | false
28 | bin\Debug
29 | DEBUG;
30 | prompt
31 | 4
32 | None
33 |
34 |
35 | true
36 | pdbonly
37 | true
38 | bin\Release
39 | prompt
40 | 4
41 | true
42 | false
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | 1.1.0
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 | {B9CDDD48-BE8E-43D5-86BF-0F3480002B28}
100 | BuildChat
101 |
102 |
103 |
104 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/MainActivity.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | using Android.App;
4 | using Android.Content.PM;
5 | using Android.Runtime;
6 | using Android.Views;
7 | using Android.Widget;
8 | using Android.OS;
9 |
10 | namespace BuildChat.Droid
11 | {
12 | [Activity(Label = "BuildChat", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
13 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
14 | {
15 | protected override void OnCreate(Bundle savedInstanceState)
16 | {
17 | TabLayoutResource = Resource.Layout.Tabbar;
18 | ToolbarResource = Resource.Layout.Toolbar;
19 |
20 | base.OnCreate(savedInstanceState);
21 | global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
22 | LoadApplication(new App());
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 | using Android.App;
5 |
6 | // General Information about an assembly is controlled through the following
7 | // set of attributes. Change these attribute values to modify the information
8 | // associated with an assembly.
9 | [assembly: AssemblyTitle("BuildChat.Android")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("BuildChat.Android")]
14 | [assembly: AssemblyCopyright("Copyright © 2014")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 | [assembly: ComVisible(false)]
18 |
19 | // Version information for an assembly consists of the following four values:
20 | //
21 | // Major Version
22 | // Minor Version
23 | // Build Number
24 | // Revision
25 | //
26 | // You can specify all the values or you can default the Build and Revision Numbers
27 | // by using the '*' as shown below:
28 | // [assembly: AssemblyVersion("1.0.*")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
32 | // Add some common permissions, these can be removed if not needed
33 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)]
34 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
35 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/AboutResources.txt:
--------------------------------------------------------------------------------
1 | Images, layout descriptions, binary blobs and string dictionaries can be included
2 | in your application as resource files. Various Android APIs are designed to
3 | operate on the resource IDs instead of dealing with images, strings or binary blobs
4 | directly.
5 |
6 | For example, a sample Android app that contains a user interface layout (main.xml),
7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
8 | would keep its resources in the "Resources" directory of the application:
9 |
10 | Resources/
11 | drawable-hdpi/
12 | icon.png
13 |
14 | drawable-ldpi/
15 | icon.png
16 |
17 | drawable-mdpi/
18 | icon.png
19 |
20 | layout/
21 | main.xml
22 |
23 | values/
24 | strings.xml
25 |
26 | In order to get the build system to recognize Android resources, set the build action to
27 | "AndroidResource". The native Android APIs do not operate directly with filenames, but
28 | instead operate on resource IDs. When you compile an Android application that uses resources,
29 | the build system will package the resources for distribution and generate a class called
30 | "Resource" that contains the tokens for each one of the resources included. For example,
31 | for the above Resources layout, this is what the Resource class would expose:
32 |
33 | public class Resource {
34 | public class drawable {
35 | public const int icon = 0x123;
36 | }
37 |
38 | public class layout {
39 | public const int main = 0x456;
40 | }
41 |
42 | public class strings {
43 | public const int first_string = 0xabc;
44 | public const int second_string = 0xbcd;
45 | }
46 | }
47 |
48 | You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
49 | to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
50 | string in the dictionary file values/strings.xml.
51 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/layout/Tabbar.axml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/layout/Toolbar.axml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-anydpi-v26/icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-anydpi-v26/icon_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.Android/Resources/mipmap-hdpi/icon.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-hdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.Android/Resources/mipmap-hdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.Android/Resources/mipmap-mdpi/icon.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-mdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.Android/Resources/mipmap-mdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.Android/Resources/mipmap-xhdpi/icon.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-xhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.Android/Resources/mipmap-xhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.Android/Resources/mipmap-xxhdpi/icon.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-xxhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.Android/Resources/mipmap-xxhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.Android/Resources/mipmap-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 | #3F51B5
5 | #303F9F
6 | #FF4081
7 |
8 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.Android/Resources/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
26 |
27 |
30 |
31 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/AppDelegate.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 |
5 | using Foundation;
6 | using UIKit;
7 |
8 | namespace BuildChat.iOS
9 | {
10 | // The UIApplicationDelegate for the application. This class is responsible for launching the
11 | // User Interface of the application, as well as listening (and optionally responding) to
12 | // application events from iOS.
13 | [Register("AppDelegate")]
14 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
15 | {
16 | //
17 | // This method is invoked when the application has loaded and is ready to run. In this
18 | // method you should instantiate the window, load the UI into it and then make the window
19 | // visible.
20 | //
21 | // You have 17 seconds to return from this method, or iOS will terminate your application.
22 | //
23 | public override bool FinishedLaunching(UIApplication app, NSDictionary options)
24 | {
25 | global::Xamarin.Forms.Forms.Init();
26 | LoadApplication(new App());
27 |
28 | return base.FinishedLaunching(app, options);
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {
4 | "scale": "2x",
5 | "size": "20x20",
6 | "idiom": "iphone",
7 | "filename": "Icon40.png"
8 | },
9 | {
10 | "scale": "3x",
11 | "size": "20x20",
12 | "idiom": "iphone",
13 | "filename": "Icon60.png"
14 | },
15 | {
16 | "scale": "2x",
17 | "size": "29x29",
18 | "idiom": "iphone",
19 | "filename": "Icon58.png"
20 | },
21 | {
22 | "scale": "3x",
23 | "size": "29x29",
24 | "idiom": "iphone",
25 | "filename": "Icon87.png"
26 | },
27 | {
28 | "scale": "2x",
29 | "size": "40x40",
30 | "idiom": "iphone",
31 | "filename": "Icon80.png"
32 | },
33 | {
34 | "scale": "3x",
35 | "size": "40x40",
36 | "idiom": "iphone",
37 | "filename": "Icon120.png"
38 | },
39 | {
40 | "scale": "2x",
41 | "size": "60x60",
42 | "idiom": "iphone",
43 | "filename": "Icon120.png"
44 | },
45 | {
46 | "scale": "3x",
47 | "size": "60x60",
48 | "idiom": "iphone",
49 | "filename": "Icon180.png"
50 | },
51 | {
52 | "scale": "1x",
53 | "size": "20x20",
54 | "idiom": "ipad",
55 | "filename": "Icon20.png"
56 | },
57 | {
58 | "scale": "2x",
59 | "size": "20x20",
60 | "idiom": "ipad",
61 | "filename": "Icon40.png"
62 | },
63 | {
64 | "scale": "1x",
65 | "size": "29x29",
66 | "idiom": "ipad",
67 | "filename": "Icon29.png"
68 | },
69 | {
70 | "scale": "2x",
71 | "size": "29x29",
72 | "idiom": "ipad",
73 | "filename": "Icon58.png"
74 | },
75 | {
76 | "scale": "1x",
77 | "size": "40x40",
78 | "idiom": "ipad",
79 | "filename": "Icon40.png"
80 | },
81 | {
82 | "scale": "2x",
83 | "size": "40x40",
84 | "idiom": "ipad",
85 | "filename": "Icon80.png"
86 | },
87 | {
88 | "scale": "1x",
89 | "size": "76x76",
90 | "idiom": "ipad",
91 | "filename": "Icon76.png"
92 | },
93 | {
94 | "scale": "2x",
95 | "size": "76x76",
96 | "idiom": "ipad",
97 | "filename": "Icon152.png"
98 | },
99 | {
100 | "scale": "2x",
101 | "size": "83.5x83.5",
102 | "idiom": "ipad",
103 | "filename": "Icon167.png"
104 | },
105 | {
106 | "scale": "1x",
107 | "size": "1024x1024",
108 | "idiom": "ios-marketing",
109 | "filename": "Icon1024.png"
110 | }
111 | ],
112 | "properties": {},
113 | "info": {
114 | "version": 1,
115 | "author": "xcode"
116 | }
117 | }
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/BuildChat.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | iPhoneSimulator
6 | 8.0.30703
7 | 2.0
8 | {302DEBF1-68D3-45A7-9407-CD7D7B887D7C}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | {6143fdea-f3c2-4a09-aafa-6e230626515e}
11 | Exe
12 | BuildChat.iOS
13 | Resources
14 | BuildChat.iOS
15 | NSUrlSessionHandler
16 |
17 |
18 |
19 |
20 | true
21 | full
22 | false
23 | bin\iPhoneSimulator\Debug
24 | DEBUG
25 | prompt
26 | 4
27 | false
28 | x86_64
29 | None
30 | true
31 |
32 |
33 | none
34 | true
35 | bin\iPhoneSimulator\Release
36 | prompt
37 | 4
38 | None
39 | x86_64
40 | false
41 |
42 |
43 | true
44 | full
45 | false
46 | bin\iPhone\Debug
47 | DEBUG
48 | prompt
49 | 4
50 | false
51 | ARM64
52 | iPhone Developer
53 | true
54 | Entitlements.plist
55 |
56 |
57 | none
58 | true
59 | bin\iPhone\Release
60 | prompt
61 | 4
62 | ARM64
63 | false
64 | iPhone Developer
65 | Entitlements.plist
66 |
67 |
68 | none
69 | True
70 | bin\iPhone\Ad-Hoc
71 | prompt
72 | 4
73 | False
74 | ARM64
75 | True
76 | Automatic:AdHoc
77 | iPhone Distribution
78 | Entitlements.plist
79 |
80 |
81 | none
82 | True
83 | bin\iPhone\AppStore
84 | prompt
85 | 4
86 | False
87 | ARM64
88 | Automatic:AppStore
89 | iPhone Distribution
90 | Entitlements.plist
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 | false
103 |
104 |
105 | false
106 |
107 |
108 | false
109 |
110 |
111 | false
112 |
113 |
114 | false
115 |
116 |
117 | false
118 |
119 |
120 | false
121 |
122 |
123 | false
124 |
125 |
126 | false
127 |
128 |
129 | false
130 |
131 |
132 | false
133 |
134 |
135 | false
136 |
137 |
138 | false
139 |
140 |
141 | false
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 | 1.1.0
153 |
154 |
155 |
156 |
157 |
158 |
159 | {B9CDDD48-BE8E-43D5-86BF-0F3480002B28}
160 | BuildChat
161 |
162 |
163 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | UIDeviceFamily
6 |
7 | 1
8 | 2
9 |
10 | UISupportedInterfaceOrientations
11 |
12 | UIInterfaceOrientationPortrait
13 | UIInterfaceOrientationLandscapeLeft
14 | UIInterfaceOrientationLandscapeRight
15 |
16 | UISupportedInterfaceOrientations~ipad
17 |
18 | UIInterfaceOrientationPortrait
19 | UIInterfaceOrientationPortraitUpsideDown
20 | UIInterfaceOrientationLandscapeLeft
21 | UIInterfaceOrientationLandscapeRight
22 |
23 | MinimumOSVersion
24 | 8.0
25 | CFBundleDisplayName
26 | BuildChat
27 | CFBundleIdentifier
28 | com.companyname.BuildChat
29 | CFBundleVersion
30 | 1.0
31 | UILaunchStoryboardName
32 | LaunchScreen
33 | CFBundleName
34 | BuildChat
35 | XSAppIconAssets
36 | Assets.xcassets/AppIcon.appiconset
37 |
38 |
39 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Main.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 |
5 | using Foundation;
6 | using UIKit;
7 |
8 | namespace BuildChat.iOS
9 | {
10 | public class Application
11 | {
12 | // This is the main entry point of the application.
13 | static void Main(string[] args)
14 | {
15 | // if you want to use a different Application Delegate class from "AppDelegate"
16 | // you can specify it here.
17 | UIApplication.Main(args, null, "AppDelegate");
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("BuildChat.iOS")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("BuildChat.iOS")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("72bdc44f-c588-44f3-b6df-9aace7daafdd")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Resources/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Resources/Default-568h@2x.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Resources/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Resources/Default-Portrait.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Resources/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Resources/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Resources/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Resources/Default.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Resources/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mindofai/Build2019Chat/568c65a88ae1f1e9e8570f1ba2161480eb66e706/BuildChat/BuildChat.iOS/Resources/Default@2x.png
--------------------------------------------------------------------------------
/BuildChat/BuildChat.iOS/Resources/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Xamarin.Forms;
3 | using Xamarin.Forms.Xaml;
4 |
5 | [assembly: XamlCompilation(XamlCompilationOptions.Compile)]
6 | namespace BuildChat
7 | {
8 | public partial class App : Application
9 | {
10 | public App()
11 | {
12 | InitializeComponent();
13 |
14 | MainPage = new MainPage();
15 | }
16 |
17 | protected override void OnStart()
18 | {
19 | // Handle when your app starts
20 | }
21 |
22 | protected override void OnSleep()
23 | {
24 | // Handle when your app sleeps
25 | }
26 |
27 | protected override void OnResume()
28 | {
29 | // Handle when your app resumes
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat/BuildChat.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 |
6 |
7 |
8 | pdbonly
9 | true
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat/Converters/InverseBoolConverter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Globalization;
4 | using System.Text;
5 | using Xamarin.Forms;
6 |
7 | namespace BuildChat.Converters
8 | {
9 | public class InverseBoolConverter : IValueConverter
10 | {
11 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
12 | {
13 | return !(bool)value;
14 | }
15 |
16 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
17 | {
18 | return !(bool)value;
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
30 |
41 |
48 |
49 |
50 |
51 |
52 |
53 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
78 |
85 |
89 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
112 |
118 |
122 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
140 |
141 |
142 |
143 |
144 |
150 |
157 |
158 |
162 |
167 |
172 |
178 |
185 |
186 |
187 |
188 |
189 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using BuildChat.ViewModels;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using Xamarin.Forms;
8 |
9 | namespace BuildChat
10 | {
11 | public partial class MainPage : ContentPage
12 | {
13 | public MainPage()
14 | {
15 | this.BindingContext = new MainViewModel();
16 | InitializeComponent();
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat/Models/MessageModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace BuildChat.Models
6 | {
7 | public class MessageModel
8 | {
9 | public string User { get; set; }
10 | public string Message { get; set; }
11 | public bool IsOwnMessage { get; set; }
12 | public bool IsSystemMessage { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/BuildChat/BuildChat/ViewModels/MainViewModel.cs:
--------------------------------------------------------------------------------
1 | using BuildChat.Models;
2 | using Microsoft.AspNetCore.SignalR.Client;
3 | using System;
4 | using System.Collections.ObjectModel;
5 | using System.ComponentModel;
6 | using System.Runtime.CompilerServices;
7 | using System.Threading.Tasks;
8 | using Xamarin.Forms;
9 |
10 | namespace BuildChat.ViewModels
11 | {
12 | public class MainViewModel : INotifyPropertyChanged
13 | {
14 | public event PropertyChangedEventHandler PropertyChanged;
15 |
16 | private string _name;
17 | private string _message;
18 | private ObservableCollection _messages;
19 | private bool _isConnected;
20 |
21 | public string Name
22 | {
23 | get
24 | {
25 | return _name;
26 | }
27 | set
28 | {
29 | _name = value;
30 | OnPropertyChanged();
31 | }
32 | }
33 |
34 |
35 | public string Message
36 | {
37 | get
38 | {
39 | return _message;
40 | }
41 | set
42 | {
43 | _message = value;
44 | OnPropertyChanged();
45 | }
46 | }
47 |
48 | public ObservableCollection Messages
49 | {
50 | get
51 | {
52 | return _messages;
53 | }
54 | set
55 | {
56 | _messages = value;
57 | OnPropertyChanged();
58 | }
59 | }
60 | public bool IsConnected
61 | {
62 | get
63 | {
64 | return _isConnected;
65 | }
66 | set
67 | {
68 | _isConnected = value;
69 | OnPropertyChanged();
70 | }
71 | }
72 |
73 | private HubConnection hubConnection;
74 |
75 | public Command SendMessageCommand { get; }
76 | public Command ConnectCommand { get; }
77 | public Command DisconnectCommand { get; }
78 |
79 | public MainViewModel()
80 | {
81 | Messages = new ObservableCollection();
82 | SendMessageCommand = new Command(async () => { await SendMessage(Name, Message); });
83 | ConnectCommand = new Command(async () => await Connect());
84 | DisconnectCommand = new Command(async () => await Disconnect());
85 |
86 | IsConnected = false;
87 |
88 | hubConnection = new HubConnectionBuilder()
89 | .WithUrl($"http://signalrdemomsph.azurewebsites.net/chatHub")
90 | .Build();
91 |
92 |
93 | hubConnection.On("JoinChat", (user) =>
94 | {
95 | Messages.Add(new MessageModel() { User = Name, Message = $"{user} has joined the chat", IsSystemMessage = true });
96 | });
97 |
98 | hubConnection.On("LeaveChat", (user) =>
99 | {
100 | Messages.Add(new MessageModel() { User = Name, Message = $"{user} has left the chat", IsSystemMessage = true });
101 | });
102 |
103 | hubConnection.On("ReceiveMessage", (user, message) =>
104 | {
105 | Messages.Add(new MessageModel() { User = user, Message = message, IsSystemMessage = false, IsOwnMessage = Name == user });
106 | });
107 |
108 |
109 | }
110 |
111 | async Task Connect()
112 | {
113 | await hubConnection.StartAsync();
114 | await hubConnection.InvokeAsync("JoinChat", Name);
115 |
116 | IsConnected = true;
117 | }
118 |
119 | async Task SendMessage(string user, string message)
120 | {
121 | await hubConnection.InvokeAsync("SendMessage", user, message);
122 | }
123 |
124 | async Task Disconnect()
125 | {
126 | await hubConnection.InvokeAsync("LeaveChat", Name);
127 | await hubConnection.StopAsync();
128 |
129 | IsConnected = false;
130 | }
131 |
132 | protected virtual void OnPropertyChanged([CallerMemberName]string propertyName = "")
133 | {
134 | PropertyChangedEventHandler handler = PropertyChanged;
135 | if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
136 | }
137 | }
138 | }
139 |
--------------------------------------------------------------------------------