├── .gitattributes
├── .gitignore
├── LICENSE
├── README.md
├── WebViewJavascript.sln
└── WebViewJavascript
├── WebViewJavascript.Android
├── Assets
│ └── AboutAssets.txt
├── MainActivity.cs
├── Properties
│ ├── AndroidManifest.xml
│ └── AssemblyInfo.cs
├── Render
│ └── WebViewRender.cs
├── Resources
│ ├── AboutResources.txt
│ ├── Resource.Designer.cs
│ ├── drawable-hdpi
│ │ └── icon.png
│ ├── drawable-xhdpi
│ │ └── icon.png
│ ├── drawable-xxhdpi
│ │ └── icon.png
│ ├── drawable
│ │ └── icon.png
│ ├── layout
│ │ ├── Tabbar.axml
│ │ └── Toolbar.axml
│ └── values
│ │ └── styles.xml
├── WebViewJavascript.Android.csproj
└── packages.config
├── WebViewJavascript.UWP
├── App.xaml
├── App.xaml.cs
├── Assets
│ ├── LockScreenLogo.scale-100.png
│ ├── LockScreenLogo.scale-125.png
│ ├── LockScreenLogo.scale-150.png
│ ├── LockScreenLogo.scale-200.png
│ ├── LockScreenLogo.scale-400.png
│ ├── SplashScreen.scale-100.png
│ ├── SplashScreen.scale-125.png
│ ├── SplashScreen.scale-150.png
│ ├── SplashScreen.scale-200.png
│ ├── SplashScreen.scale-400.png
│ ├── Square150x150Logo.scale-100.png
│ ├── Square150x150Logo.scale-125.png
│ ├── Square150x150Logo.scale-150.png
│ ├── Square150x150Logo.scale-200.png
│ ├── Square150x150Logo.scale-400.png
│ ├── Square44x44Logo.scale-100.png
│ ├── Square44x44Logo.scale-125.png
│ ├── Square44x44Logo.scale-150.png
│ ├── Square44x44Logo.scale-200.png
│ ├── Square44x44Logo.scale-400.png
│ ├── Square44x44Logo.targetsize-16_altform-unplated.png
│ ├── Square44x44Logo.targetsize-24_altform-unplated.png
│ ├── Square44x44Logo.targetsize-256_altform-unplated.png
│ ├── Square44x44Logo.targetsize-32_altform-unplated.png
│ ├── Square44x44Logo.targetsize-48_altform-unplated.png
│ ├── StoreLogo.png
│ ├── Wide310x150Logo.scale-100.png
│ ├── Wide310x150Logo.scale-125.png
│ ├── Wide310x150Logo.scale-150.png
│ ├── Wide310x150Logo.scale-200.png
│ └── Wide310x150Logo.scale-400.png
├── MainPage.xaml
├── MainPage.xaml.cs
├── Package.appxmanifest
├── Properties
│ ├── AssemblyInfo.cs
│ └── Default.rd.xml
├── Render
│ └── WebViewRender.cs
├── WebViewJavascript.UWP.csproj
└── project.json
├── WebViewJavascript.iOS
├── AppDelegate.cs
├── Entitlements.plist
├── Info.plist
├── Main.cs
├── Properties
│ └── AssemblyInfo.cs
├── Render
│ └── WebViewRender.cs
├── Resources
│ ├── Default-568h@2x.png
│ ├── Default-Portrait.png
│ ├── Default-Portrait@2x.png
│ ├── Default.png
│ ├── Default@2x.png
│ ├── Icon-60@2x.png
│ ├── Icon-60@3x.png
│ ├── Icon-76.png
│ ├── Icon-76@2x.png
│ ├── Icon-Small-40.png
│ ├── Icon-Small-40@2x.png
│ ├── Icon-Small-40@3x.png
│ ├── Icon-Small.png
│ ├── Icon-Small@2x.png
│ ├── Icon-Small@3x.png
│ └── LaunchScreen.storyboard
├── WebViewJavascript.iOS.csproj
├── iTunesArtwork
├── iTunesArtwork@2x
└── packages.config
└── WebViewJavascript
├── App.xaml
├── App.xaml.cs
├── MainPage.xaml
├── MainPage.xaml.cs
├── MainPageViewModel.cs
├── Properties
└── AssemblyInfo.cs
├── WebViewJavascript.csproj
├── WebViewer.cs
└── packages.config
/.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 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.suo
8 | *.user
9 | *.userosscache
10 | *.sln.docstates
11 |
12 | # User-specific files (MonoDevelop/Xamarin Studio)
13 | *.userprefs
14 |
15 | # Build results
16 | [Dd]ebug/
17 | [Dd]ebugPublic/
18 | [Rr]elease/
19 | [Rr]eleases/
20 | x64/
21 | x86/
22 | bld/
23 | [Bb]in/
24 | [Oo]bj/
25 | [Ll]og/
26 |
27 | # Visual Studio 2015 cache/options directory
28 | .vs/
29 | # Uncomment if you have tasks that create the project's static files in wwwroot
30 | #wwwroot/
31 |
32 | # MSTest test Results
33 | [Tt]est[Rr]esult*/
34 | [Bb]uild[Ll]og.*
35 |
36 | # NUNIT
37 | *.VisualState.xml
38 | TestResult.xml
39 |
40 | # Build Results of an ATL Project
41 | [Dd]ebugPS/
42 | [Rr]eleasePS/
43 | dlldata.c
44 |
45 | # .NET Core
46 | project.lock.json
47 | project.fragment.lock.json
48 | artifacts/
49 | **/Properties/launchSettings.json
50 |
51 | *_i.c
52 | *_p.c
53 | *_i.h
54 | *.ilk
55 | *.meta
56 | *.obj
57 | *.pch
58 | *.pdb
59 | *.pgc
60 | *.pgd
61 | *.rsp
62 | *.sbr
63 | *.tlb
64 | *.tli
65 | *.tlh
66 | *.tmp
67 | *.tmp_proj
68 | *.log
69 | *.vspscc
70 | *.vssscc
71 | .builds
72 | *.pidb
73 | *.svclog
74 | *.scc
75 |
76 | # Chutzpah Test files
77 | _Chutzpah*
78 |
79 | # Visual C++ cache files
80 | ipch/
81 | *.aps
82 | *.ncb
83 | *.opendb
84 | *.opensdf
85 | *.sdf
86 | *.cachefile
87 | *.VC.db
88 | *.VC.VC.opendb
89 |
90 | # Visual Studio profiler
91 | *.psess
92 | *.vsp
93 | *.vspx
94 | *.sap
95 |
96 | # TFS 2012 Local Workspace
97 | $tf/
98 |
99 | # Guidance Automation Toolkit
100 | *.gpState
101 |
102 | # ReSharper is a .NET coding add-in
103 | _ReSharper*/
104 | *.[Rr]e[Ss]harper
105 | *.DotSettings.user
106 |
107 | # JustCode is a .NET coding add-in
108 | .JustCode
109 |
110 | # TeamCity is a build add-in
111 | _TeamCity*
112 |
113 | # DotCover is a Code Coverage Tool
114 | *.dotCover
115 |
116 | # Visual Studio code coverage results
117 | *.coverage
118 | *.coveragexml
119 |
120 | # NCrunch
121 | _NCrunch_*
122 | .*crunch*.local.xml
123 | nCrunchTemp_*
124 |
125 | # MightyMoose
126 | *.mm.*
127 | AutoTest.Net/
128 |
129 | # Web workbench (sass)
130 | .sass-cache/
131 |
132 | # Installshield output folder
133 | [Ee]xpress/
134 |
135 | # DocProject is a documentation generator add-in
136 | DocProject/buildhelp/
137 | DocProject/Help/*.HxT
138 | DocProject/Help/*.HxC
139 | DocProject/Help/*.hhc
140 | DocProject/Help/*.hhk
141 | DocProject/Help/*.hhp
142 | DocProject/Help/Html2
143 | DocProject/Help/html
144 |
145 | # Click-Once directory
146 | publish/
147 |
148 | # Publish Web Output
149 | *.[Pp]ublish.xml
150 | *.azurePubxml
151 | # TODO: Comment the next line if you want to checkin your web deploy settings
152 | # but database connection strings (with potential passwords) will be unencrypted
153 | *.pubxml
154 | *.publishproj
155 |
156 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
157 | # checkin your Azure Web App publish settings, but sensitive information contained
158 | # in these scripts will be unencrypted
159 | PublishScripts/
160 |
161 | # NuGet Packages
162 | *.nupkg
163 | # The packages folder can be ignored because of Package Restore
164 | **/packages/*
165 | # except build/, which is used as an MSBuild target.
166 | !**/packages/build/
167 | # Uncomment if necessary however generally it will be regenerated when needed
168 | #!**/packages/repositories.config
169 | # NuGet v3's project.json files produces more ignorable files
170 | *.nuget.props
171 | *.nuget.targets
172 |
173 | # Microsoft Azure Build Output
174 | csx/
175 | *.build.csdef
176 |
177 | # Microsoft Azure Emulator
178 | ecf/
179 | rcf/
180 |
181 | # Windows Store app package directories and files
182 | AppPackages/
183 | BundleArtifacts/
184 | Package.StoreAssociation.xml
185 | _pkginfo.txt
186 |
187 | # Visual Studio cache files
188 | # files ending in .cache can be ignored
189 | *.[Cc]ache
190 | # but keep track of directories ending in .cache
191 | !*.[Cc]ache/
192 |
193 | # Others
194 | ClientBin/
195 | ~$*
196 | *~
197 | *.dbmdl
198 | *.dbproj.schemaview
199 | *.jfm
200 | *.pfx
201 | *.publishsettings
202 | orleans.codegen.cs
203 |
204 | # Since there are multiple workflows, uncomment next line to ignore bower_components
205 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
206 | #bower_components/
207 |
208 | # RIA/Silverlight projects
209 | Generated_Code/
210 |
211 | # Backup & report files from converting an old project file
212 | # to a newer Visual Studio version. Backup files are not needed,
213 | # because we have git ;-)
214 | _UpgradeReport_Files/
215 | Backup*/
216 | UpgradeLog*.XML
217 | UpgradeLog*.htm
218 |
219 | # SQL Server files
220 | *.mdf
221 | *.ldf
222 | *.ndf
223 |
224 | # Business Intelligence projects
225 | *.rdl.data
226 | *.bim.layout
227 | *.bim_*.settings
228 |
229 | # Microsoft Fakes
230 | FakesAssemblies/
231 |
232 | # GhostDoc plugin setting file
233 | *.GhostDoc.xml
234 |
235 | # Node.js Tools for Visual Studio
236 | .ntvs_analysis.dat
237 | node_modules/
238 |
239 | # Typescript v1 declaration files
240 | typings/
241 |
242 | # Visual Studio 6 build log
243 | *.plg
244 |
245 | # Visual Studio 6 workspace options file
246 | *.opt
247 |
248 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
249 | *.vbw
250 |
251 | # Visual Studio LightSwitch build output
252 | **/*.HTMLClient/GeneratedArtifacts
253 | **/*.DesktopClient/GeneratedArtifacts
254 | **/*.DesktopClient/ModelManifest.xml
255 | **/*.Server/GeneratedArtifacts
256 | **/*.Server/ModelManifest.xml
257 | _Pvt_Extensions
258 |
259 | # Paket dependency manager
260 | .paket/paket.exe
261 | paket-files/
262 |
263 | # FAKE - F# Make
264 | .fake/
265 |
266 | # JetBrains Rider
267 | .idea/
268 | *.sln.iml
269 |
270 | # CodeRush
271 | .cr/
272 |
273 | # Python Tools for Visual Studio (PTVS)
274 | __pycache__/
275 | *.pyc
276 |
277 | # Cake - Uncomment if you are using it
278 | # tools/**
279 | # !tools/packages.config
280 |
281 | # Telerik's JustMock configuration file
282 | *.jmconfig
283 |
284 | # BizTalk build output
285 | *.btp.cs
286 | *.btm.cs
287 | *.odx.cs
288 | *.xsd.cs
289 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Adam
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # WebViewJavascript
--------------------------------------------------------------------------------
/WebViewJavascript.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.26430.16
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebViewJavascript", "WebViewJavascript\WebViewJavascript\WebViewJavascript.csproj", "{68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebViewJavascript.Android", "WebViewJavascript\WebViewJavascript.Android\WebViewJavascript.Android.csproj", "{48B4424F-3131-4AEB-9AA9-041602C8485D}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebViewJavascript.iOS", "WebViewJavascript\WebViewJavascript.iOS\WebViewJavascript.iOS.csproj", "{E9B54D78-14D6-4617-95FD-5129D1B6E728}"
11 | EndProject
12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebViewJavascript.UWP", "WebViewJavascript\WebViewJavascript.UWP\WebViewJavascript.UWP.csproj", "{BD530429-5A78-4D16-8C5E-550805429E08}"
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
17 | Ad-Hoc|ARM = Ad-Hoc|ARM
18 | Ad-Hoc|iPhone = Ad-Hoc|iPhone
19 | Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
20 | Ad-Hoc|x64 = Ad-Hoc|x64
21 | Ad-Hoc|x86 = Ad-Hoc|x86
22 | AppStore|Any CPU = AppStore|Any CPU
23 | AppStore|ARM = AppStore|ARM
24 | AppStore|iPhone = AppStore|iPhone
25 | AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
26 | AppStore|x64 = AppStore|x64
27 | AppStore|x86 = AppStore|x86
28 | Debug|Any CPU = Debug|Any CPU
29 | Debug|ARM = Debug|ARM
30 | Debug|iPhone = Debug|iPhone
31 | Debug|iPhoneSimulator = Debug|iPhoneSimulator
32 | Debug|x64 = Debug|x64
33 | Debug|x86 = Debug|x86
34 | Release|Any CPU = Release|Any CPU
35 | Release|ARM = Release|ARM
36 | Release|iPhone = Release|iPhone
37 | Release|iPhoneSimulator = Release|iPhoneSimulator
38 | Release|x64 = Release|x64
39 | Release|x86 = Release|x86
40 | EndGlobalSection
41 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
42 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
43 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
44 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
45 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
46 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
47 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
48 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
49 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
50 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
51 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|x64.Build.0 = Release|Any CPU
52 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
53 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Ad-Hoc|x86.Build.0 = Release|Any CPU
54 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
55 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|Any CPU.Build.0 = Release|Any CPU
56 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|ARM.ActiveCfg = Release|Any CPU
57 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|ARM.Build.0 = Release|Any CPU
58 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|iPhone.ActiveCfg = Release|Any CPU
59 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|iPhone.Build.0 = Release|Any CPU
60 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
61 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
62 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|x64.ActiveCfg = Release|Any CPU
63 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|x64.Build.0 = Release|Any CPU
64 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|x86.ActiveCfg = Release|Any CPU
65 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.AppStore|x86.Build.0 = Release|Any CPU
66 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
67 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|Any CPU.Build.0 = Debug|Any CPU
68 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|ARM.ActiveCfg = Debug|Any CPU
69 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|ARM.Build.0 = Debug|Any CPU
70 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|iPhone.ActiveCfg = Debug|Any CPU
71 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|iPhone.Build.0 = Debug|Any CPU
72 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
73 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
74 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|x64.ActiveCfg = Debug|Any CPU
75 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|x64.Build.0 = Debug|Any CPU
76 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|x86.ActiveCfg = Debug|Any CPU
77 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Debug|x86.Build.0 = Debug|Any CPU
78 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|Any CPU.ActiveCfg = Release|Any CPU
79 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|Any CPU.Build.0 = Release|Any CPU
80 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|ARM.ActiveCfg = Release|Any CPU
81 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|ARM.Build.0 = Release|Any CPU
82 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|iPhone.ActiveCfg = Release|Any CPU
83 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|iPhone.Build.0 = Release|Any CPU
84 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
85 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
86 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|x64.ActiveCfg = Release|Any CPU
87 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|x64.Build.0 = Release|Any CPU
88 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|x86.ActiveCfg = Release|Any CPU
89 | {68B8A7BB-A8F6-402D-8250-16A9CDD65AB6}.Release|x86.Build.0 = Release|Any CPU
90 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
91 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
92 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
93 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
94 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
95 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|ARM.Deploy.0 = Release|Any CPU
96 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
97 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
98 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU
99 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
100 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
101 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
102 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
103 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|x64.Build.0 = Release|Any CPU
104 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|x64.Deploy.0 = Release|Any CPU
105 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
106 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|x86.Build.0 = Release|Any CPU
107 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Ad-Hoc|x86.Deploy.0 = Release|Any CPU
108 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
109 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|Any CPU.Build.0 = Release|Any CPU
110 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
111 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|ARM.ActiveCfg = Release|Any CPU
112 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|ARM.Build.0 = Release|Any CPU
113 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|ARM.Deploy.0 = Release|Any CPU
114 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|iPhone.ActiveCfg = Release|Any CPU
115 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|iPhone.Build.0 = Release|Any CPU
116 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|iPhone.Deploy.0 = Release|Any CPU
117 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
118 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
119 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
120 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|x64.ActiveCfg = Release|Any CPU
121 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|x64.Build.0 = Release|Any CPU
122 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|x64.Deploy.0 = Release|Any CPU
123 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|x86.ActiveCfg = Release|Any CPU
124 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|x86.Build.0 = Release|Any CPU
125 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.AppStore|x86.Deploy.0 = Release|Any CPU
126 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
127 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|Any CPU.Build.0 = Debug|Any CPU
128 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
129 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|ARM.ActiveCfg = Debug|Any CPU
130 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|ARM.Build.0 = Debug|Any CPU
131 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|ARM.Deploy.0 = Debug|Any CPU
132 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|iPhone.ActiveCfg = Debug|Any CPU
133 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|iPhone.Build.0 = Debug|Any CPU
134 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|iPhone.Deploy.0 = Debug|Any CPU
135 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
136 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
137 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
138 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|x64.ActiveCfg = Debug|Any CPU
139 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|x64.Build.0 = Debug|Any CPU
140 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|x64.Deploy.0 = Debug|Any CPU
141 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|x86.ActiveCfg = Debug|Any CPU
142 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|x86.Build.0 = Debug|Any CPU
143 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Debug|x86.Deploy.0 = Debug|Any CPU
144 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|Any CPU.ActiveCfg = Release|Any CPU
145 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|Any CPU.Build.0 = Release|Any CPU
146 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|Any CPU.Deploy.0 = Release|Any CPU
147 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|ARM.ActiveCfg = Release|Any CPU
148 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|ARM.Build.0 = Release|Any CPU
149 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|ARM.Deploy.0 = Release|Any CPU
150 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|iPhone.ActiveCfg = Release|Any CPU
151 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|iPhone.Build.0 = Release|Any CPU
152 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|iPhone.Deploy.0 = Release|Any CPU
153 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
154 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
155 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
156 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|x64.ActiveCfg = Release|Any CPU
157 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|x64.Build.0 = Release|Any CPU
158 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|x64.Deploy.0 = Release|Any CPU
159 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|x86.ActiveCfg = Release|Any CPU
160 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|x86.Build.0 = Release|Any CPU
161 | {48B4424F-3131-4AEB-9AA9-041602C8485D}.Release|x86.Deploy.0 = Release|Any CPU
162 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
163 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Ad-Hoc|ARM.ActiveCfg = Ad-Hoc|iPhone
164 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
165 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
166 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
167 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
168 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Ad-Hoc|x64.ActiveCfg = Ad-Hoc|iPhone
169 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Ad-Hoc|x86.ActiveCfg = Ad-Hoc|iPhone
170 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
171 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.AppStore|ARM.ActiveCfg = AppStore|iPhone
172 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
173 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.AppStore|iPhone.Build.0 = AppStore|iPhone
174 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
175 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
176 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.AppStore|x64.ActiveCfg = AppStore|iPhone
177 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.AppStore|x86.ActiveCfg = AppStore|iPhone
178 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Debug|Any CPU.ActiveCfg = Debug|iPhone
179 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Debug|ARM.ActiveCfg = Debug|iPhone
180 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Debug|iPhone.ActiveCfg = Debug|iPhone
181 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Debug|iPhone.Build.0 = Debug|iPhone
182 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
183 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
184 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Debug|x64.ActiveCfg = Debug|iPhone
185 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Debug|x86.ActiveCfg = Debug|iPhone
186 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Release|Any CPU.ActiveCfg = Release|iPhone
187 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Release|ARM.ActiveCfg = Release|iPhone
188 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Release|iPhone.ActiveCfg = Release|iPhone
189 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Release|iPhone.Build.0 = Release|iPhone
190 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
191 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
192 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Release|x64.ActiveCfg = Release|iPhone
193 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}.Release|x86.ActiveCfg = Release|iPhone
194 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|Any CPU.ActiveCfg = Release|x86
195 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|Any CPU.Build.0 = Release|x86
196 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|Any CPU.Deploy.0 = Release|x86
197 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|ARM.ActiveCfg = Release|ARM
198 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|ARM.Build.0 = Release|ARM
199 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|ARM.Deploy.0 = Release|ARM
200 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|iPhone.ActiveCfg = Release|x86
201 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|iPhone.Build.0 = Release|x86
202 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|iPhone.Deploy.0 = Release|x86
203 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|x86
204 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|x86
205 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|x86
206 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|x64.ActiveCfg = Release|x64
207 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|x64.Build.0 = Release|x64
208 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|x64.Deploy.0 = Release|x64
209 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|x86.ActiveCfg = Release|x86
210 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|x86.Build.0 = Release|x86
211 | {BD530429-5A78-4D16-8C5E-550805429E08}.Ad-Hoc|x86.Deploy.0 = Release|x86
212 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|Any CPU.ActiveCfg = Release|x86
213 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|Any CPU.Build.0 = Release|x86
214 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|Any CPU.Deploy.0 = Release|x86
215 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|ARM.ActiveCfg = Release|ARM
216 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|ARM.Build.0 = Release|ARM
217 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|ARM.Deploy.0 = Release|ARM
218 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|iPhone.ActiveCfg = Release|x86
219 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|iPhone.Build.0 = Release|x86
220 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|iPhone.Deploy.0 = Release|x86
221 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|iPhoneSimulator.ActiveCfg = Release|x86
222 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|iPhoneSimulator.Build.0 = Release|x86
223 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|iPhoneSimulator.Deploy.0 = Release|x86
224 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|x64.ActiveCfg = Release|x64
225 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|x64.Build.0 = Release|x64
226 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|x64.Deploy.0 = Release|x64
227 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|x86.ActiveCfg = Release|x86
228 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|x86.Build.0 = Release|x86
229 | {BD530429-5A78-4D16-8C5E-550805429E08}.AppStore|x86.Deploy.0 = Release|x86
230 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|Any CPU.ActiveCfg = Debug|x86
231 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|Any CPU.Build.0 = Debug|x86
232 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|Any CPU.Deploy.0 = Debug|x86
233 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|ARM.ActiveCfg = Debug|ARM
234 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|ARM.Build.0 = Debug|ARM
235 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|ARM.Deploy.0 = Debug|ARM
236 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|iPhone.ActiveCfg = Debug|x86
237 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|iPhoneSimulator.ActiveCfg = Debug|x86
238 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|x64.ActiveCfg = Debug|x64
239 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|x64.Build.0 = Debug|x64
240 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|x64.Deploy.0 = Debug|x64
241 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|x86.ActiveCfg = Debug|x86
242 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|x86.Build.0 = Debug|x86
243 | {BD530429-5A78-4D16-8C5E-550805429E08}.Debug|x86.Deploy.0 = Debug|x86
244 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|Any CPU.ActiveCfg = Release|x86
245 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|ARM.ActiveCfg = Release|ARM
246 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|ARM.Build.0 = Release|ARM
247 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|ARM.Deploy.0 = Release|ARM
248 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|iPhone.ActiveCfg = Release|x86
249 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|iPhoneSimulator.ActiveCfg = Release|x86
250 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|x64.ActiveCfg = Release|x64
251 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|x64.Build.0 = Release|x64
252 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|x64.Deploy.0 = Release|x64
253 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|x86.ActiveCfg = Release|x86
254 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|x86.Build.0 = Release|x86
255 | {BD530429-5A78-4D16-8C5E-550805429E08}.Release|x86.Deploy.0 = Release|x86
256 | EndGlobalSection
257 | GlobalSection(SolutionProperties) = preSolution
258 | HideSolutionNode = FALSE
259 | EndGlobalSection
260 | EndGlobal
261 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.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 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/MainActivity.cs:
--------------------------------------------------------------------------------
1 |
2 | using Android.App;
3 | using Android.Content;
4 | using Android.Content.PM;
5 | using Android.OS;
6 | using Android.Webkit;
7 |
8 | namespace WebViewJavascript.Droid
9 | {
10 | [Activity(Label = "WebViewJavascript", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
11 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
12 | {
13 | public static IValueCallback UploadMessage; // Used for File Chooser in WebViewRender
14 |
15 | protected override void OnCreate(Bundle bundle)
16 | {
17 | TabLayoutResource = Resource.Layout.Tabbar;
18 | ToolbarResource = Resource.Layout.Toolbar;
19 |
20 | base.OnCreate(bundle);
21 |
22 | global::Xamarin.Forms.Forms.Init(this, bundle);
23 | LoadApplication(new App());
24 | }
25 |
26 | internal static int FILECHOOSER_RESULTCODE = 1;
27 |
28 | protected override void OnActivityResult(int requestCode, Result resultCode, Intent intent)
29 | {
30 | // Handles the response from the FileChooser
31 | if (requestCode == FILECHOOSER_RESULTCODE)
32 | {
33 | if (null == UploadMessage)
34 | return;
35 | Java.Lang.Object result = intent == null || resultCode != Result.Ok
36 | ? null
37 | : intent.Data;
38 | UploadMessage.OnReceiveValue(result);
39 | UploadMessage = null;
40 | }
41 | }
42 | }
43 | }
44 |
45 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.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("WebViewJavascript.Android")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("WebViewJavascript.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 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/Render/WebViewRender.cs:
--------------------------------------------------------------------------------
1 | using Xamarin.Forms;
2 | using WebViewJavascript;
3 | using WebViewJavascript.Droid.Render;
4 |
5 | [assembly: ExportRenderer(typeof(WebViewer), typeof(WebViewRender))]
6 | namespace WebViewJavascript.Droid.Render
7 | {
8 |
9 | using Android.OS;
10 | using System;
11 | using Xamarin.Forms.Platform.Android;
12 | using Android.Content;
13 | using Android.Webkit;
14 | using System.Threading;
15 | using System.Threading.Tasks;
16 |
17 | public class WebViewRender : WebViewRenderer
18 | {
19 |
20 | protected override void OnElementChanged(ElementChangedEventArgs e)
21 | {
22 | base.OnElementChanged(e);
23 |
24 | var oldWebView = e.OldElement as WebViewer;
25 | if (oldWebView != null)
26 | oldWebView.EvaluateJavascript = null;
27 |
28 | var newWebView = e.NewElement as WebViewer;
29 | if (newWebView != null)
30 | newWebView.EvaluateJavascript = async (js) =>
31 | {
32 |
33 | ManualResetEvent reset = new ManualResetEvent(false);
34 | var response = "";
35 | Device.BeginInvokeOnMainThread(() =>
36 | {
37 | System.Diagnostics.Debug.WriteLine("Javascript Send: " + js);
38 | Control?.EvaluateJavascript(js, new JavascriptCallback((r) => { response = r; reset.Set(); }));
39 | });
40 | await Task.Run(() => { reset.WaitOne(); });
41 | if (response == "null")
42 | response = string.Empty;
43 |
44 | return response;
45 | };
46 |
47 | if (Control != null && e.NewElement != null)
48 | {
49 | InitializeCommands((WebViewer)e.NewElement);
50 | SetupControl();
51 | }
52 | }
53 |
54 | ///
55 | /// Sets up various settings for the Android WebView
56 | ///
57 | private void SetupControl()
58 | {
59 | // Ensure common functionality is enabled
60 | Control.Settings.DomStorageEnabled = true;
61 | Control.Settings.JavaScriptEnabled = true;
62 |
63 | // Must remove minimum font size otherwise SAP PDF's go massive
64 | Control.Settings.MinimumFontSize = 0;
65 |
66 | // Because Android 4.4 and below doesn't respect ViewPort in HTML
67 | if (Build.VERSION.SdkInt < BuildVersionCodes.Lollipop)
68 | Control.Settings.UseWideViewPort = true;
69 |
70 | }
71 |
72 | ///
73 | /// Will wire up the commands in the WebViewer control to the native method calls
74 | ///
75 | ///
76 | private void InitializeCommands(WebViewer element)
77 | {
78 |
79 | element.RefreshCommand = new Command(() =>
80 | {
81 | Control?.Reload();
82 | });
83 |
84 | element.GoBackCommand = new Command(() =>
85 | {
86 | var ctrl = Control;
87 | if (ctrl == null)
88 | return;
89 |
90 | if (ctrl.CanGoBack())
91 | ctrl.GoBack();
92 | });
93 |
94 | element.CanGoBackFunction = () =>
95 | {
96 | var ctrl = Control;
97 | if (ctrl == null)
98 | return false;
99 |
100 | return ctrl.CanGoBack();
101 | };
102 |
103 | // This allows you to show a file chooser dialog from the WebView
104 | Control.SetWebChromeClient(new WebViewChromeClient((uploadMsg, acceptType, capture) =>
105 | {
106 | MainActivity.UploadMessage = uploadMsg;
107 | if (Build.VERSION.SdkInt < BuildVersionCodes.Kitkat)
108 | {
109 | var i = new Intent(Intent.ActionGetContent);
110 |
111 | //To set all type of files
112 | i.SetType("image/*");
113 |
114 | //Here File Chooser dialog is started as Activity, and it gives result while coming back from that Activity.
115 | ((MainActivity)this.Context).StartActivityForResult(Intent.CreateChooser(i, "File Chooser"), MainActivity.FILECHOOSER_RESULTCODE);
116 | }
117 | else
118 | {
119 | var i = new Intent(Intent.ActionOpenDocument);
120 | i.AddCategory(Intent.CategoryOpenable);
121 |
122 | //To set all image file types. You can change to whatever you need
123 | i.SetType("image/*");
124 |
125 | //Here File Chooser dialog is started as Activity, and it gives result while coming back from that Activity.
126 | ((MainActivity)this.Context).StartActivityForResult(Intent.CreateChooser(i, "File Chooser"), MainActivity.FILECHOOSER_RESULTCODE);
127 | }
128 | }));
129 |
130 | }
131 |
132 | }
133 |
134 | internal class JavascriptCallback : Java.Lang.Object, IValueCallback
135 | {
136 | public JavascriptCallback(Action callback)
137 | {
138 | _callback = callback;
139 | }
140 |
141 | private Action _callback;
142 | public void OnReceiveValue(Java.Lang.Object value)
143 | {
144 | System.Diagnostics.Debug.WriteLine("Javascript Return: " + Convert.ToString(value));
145 | _callback?.Invoke(Convert.ToString(value));
146 | }
147 | }
148 |
149 | public class WebViewChromeClient : WebChromeClient
150 | {
151 |
152 | Action callback;
153 |
154 | public WebViewChromeClient(Action callback)
155 | {
156 | this.callback = callback;
157 | }
158 |
159 | //For Android 4.1+
160 | [Java.Interop.Export]
161 | public void openFileChooser(IValueCallback uploadMsg, Java.Lang.String acceptType, Java.Lang.String capture)
162 | {
163 | callback(uploadMsg, acceptType, capture);
164 | }
165 |
166 | // For Android 5.0+
167 | public override bool OnShowFileChooser(WebView webView, IValueCallback filePathCallback, FileChooserParams fileChooserParams)
168 | {
169 | return base.OnShowFileChooser(webView, filePathCallback, fileChooserParams);
170 | }
171 | }
172 |
173 | }
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.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 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/Resources/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.Android/Resources/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/Resources/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.Android/Resources/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/Resources/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.Android/Resources/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/Resources/drawable/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.Android/Resources/drawable/icon.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/Resources/layout/Tabbar.axml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/Resources/layout/Toolbar.axml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/Resources/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
26 |
27 |
30 |
31 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/WebViewJavascript.Android.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | 8.0.30703
8 | 2.0
9 | {48B4424F-3131-4AEB-9AA9-041602C8485D}
10 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
11 | Library
12 | Properties
13 | WebViewJavascript.Droid
14 | WebViewJavascript.Android
15 | 512
16 | true
17 | Resources\Resource.Designer.cs
18 | Off
19 | Properties\AndroidManifest.xml
20 | true
21 | v7.1
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | true
31 | full
32 | false
33 | bin\Debug\
34 | DEBUG;TRACE
35 | prompt
36 | 4
37 | True
38 | None
39 | armeabi,armeabi-v7a,x86
40 |
41 |
42 | pdbonly
43 | true
44 | bin\Release\
45 | TRACE
46 | prompt
47 | 4
48 | False
49 | SdkOnly
50 |
51 |
52 |
53 | ..\..\packages\Xamarin.Forms.2.3.5.256-pre6\lib\MonoAndroid10\FormsViewGroup.dll
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 | ..\..\packages\Xamarin.Android.Support.Animated.Vector.Drawable.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.Animated.Vector.Drawable.dll
65 |
66 |
67 | ..\..\packages\Xamarin.Android.Support.Annotations.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.Annotations.dll
68 |
69 |
70 | ..\..\packages\Xamarin.Android.Support.Compat.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.Compat.dll
71 |
72 |
73 | ..\..\packages\Xamarin.Android.Support.Core.UI.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.Core.UI.dll
74 |
75 |
76 | ..\..\packages\Xamarin.Android.Support.Core.Utils.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.Core.Utils.dll
77 |
78 |
79 | ..\..\packages\Xamarin.Android.Support.Design.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.Design.dll
80 |
81 |
82 | ..\..\packages\Xamarin.Android.Support.Fragment.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.Fragment.dll
83 |
84 |
85 | ..\..\packages\Xamarin.Android.Support.Media.Compat.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.Media.Compat.dll
86 |
87 |
88 | ..\..\packages\Xamarin.Android.Support.Transition.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.Transition.dll
89 |
90 |
91 | ..\..\packages\Xamarin.Android.Support.v4.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.v4.dll
92 |
93 |
94 | ..\..\packages\Xamarin.Android.Support.v7.AppCompat.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.v7.AppCompat.dll
95 |
96 |
97 | ..\..\packages\Xamarin.Android.Support.v7.CardView.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.v7.CardView.dll
98 |
99 |
100 | ..\..\packages\Xamarin.Android.Support.v7.MediaRouter.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.v7.MediaRouter.dll
101 |
102 |
103 | ..\..\packages\Xamarin.Android.Support.v7.Palette.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.v7.Palette.dll
104 |
105 |
106 | ..\..\packages\Xamarin.Android.Support.v7.RecyclerView.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.v7.RecyclerView.dll
107 |
108 |
109 | ..\..\packages\Xamarin.Android.Support.Vector.Drawable.25.4.0-rc1\lib\MonoAndroid70\Xamarin.Android.Support.Vector.Drawable.dll
110 |
111 |
112 | ..\..\packages\Xamarin.Forms.2.3.5.256-pre6\lib\MonoAndroid10\Xamarin.Forms.Core.dll
113 |
114 |
115 | ..\..\packages\Xamarin.Forms.2.3.5.256-pre6\lib\MonoAndroid10\Xamarin.Forms.Platform.dll
116 |
117 |
118 | ..\..\packages\Xamarin.Forms.2.3.5.256-pre6\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll
119 |
120 |
121 | ..\..\packages\Xamarin.Forms.2.3.5.256-pre6\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 | Designer
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 | {fe577013-e131-4322-81a2-5387ae7752bc}
154 | WebViewJavascript
155 |
156 |
157 |
158 |
159 |
160 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.Android/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/App.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using Windows.ApplicationModel;
7 | using Windows.ApplicationModel.Activation;
8 | using Windows.Foundation;
9 | using Windows.Foundation.Collections;
10 | using Windows.UI.Xaml;
11 | using Windows.UI.Xaml.Controls;
12 | using Windows.UI.Xaml.Controls.Primitives;
13 | using Windows.UI.Xaml.Data;
14 | using Windows.UI.Xaml.Input;
15 | using Windows.UI.Xaml.Media;
16 | using Windows.UI.Xaml.Navigation;
17 |
18 | namespace WebViewJavascript.UWP
19 | {
20 | ///
21 | /// Provides application-specific behavior to supplement the default Application class.
22 | ///
23 | sealed partial class App : Application
24 | {
25 | ///
26 | /// Initializes the singleton application object. This is the first line of authored code
27 | /// executed, and as such is the logical equivalent of main() or WinMain().
28 | ///
29 | public App()
30 | {
31 | this.InitializeComponent();
32 | this.Suspending += OnSuspending;
33 | }
34 |
35 | ///
36 | /// Invoked when the application is launched normally by the end user. Other entry points
37 | /// will be used such as when the application is launched to open a specific file.
38 | ///
39 | /// Details about the launch request and process.
40 | protected override void OnLaunched(LaunchActivatedEventArgs e)
41 | {
42 |
43 | #if DEBUG
44 | if (System.Diagnostics.Debugger.IsAttached)
45 | {
46 | this.DebugSettings.EnableFrameRateCounter = true;
47 | }
48 | #endif
49 |
50 | Frame rootFrame = Window.Current.Content as Frame;
51 |
52 | // Do not repeat app initialization when the Window already has content,
53 | // just ensure that the window is active
54 | if (rootFrame == null)
55 | {
56 | // Create a Frame to act as the navigation context and navigate to the first page
57 | rootFrame = new Frame();
58 |
59 | rootFrame.NavigationFailed += OnNavigationFailed;
60 |
61 | Xamarin.Forms.Forms.Init(e);
62 |
63 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
64 | {
65 | //TODO: Load state from previously suspended application
66 | }
67 |
68 | // Place the frame in the current Window
69 | Window.Current.Content = rootFrame;
70 | }
71 |
72 | if (rootFrame.Content == null)
73 | {
74 | // When the navigation stack isn't restored navigate to the first page,
75 | // configuring the new page by passing required information as a navigation
76 | // parameter
77 | rootFrame.Navigate(typeof(MainPage), e.Arguments);
78 | }
79 | // Ensure the current window is active
80 | Window.Current.Activate();
81 | }
82 |
83 | ///
84 | /// Invoked when Navigation to a certain page fails
85 | ///
86 | /// The Frame which failed navigation
87 | /// Details about the navigation failure
88 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
89 | {
90 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
91 | }
92 |
93 | ///
94 | /// Invoked when application execution is being suspended. Application state is saved
95 | /// without knowing whether the application will be terminated or resumed with the contents
96 | /// of memory still intact.
97 | ///
98 | /// The source of the suspend request.
99 | /// Details about the suspend request.
100 | private void OnSuspending(object sender, SuspendingEventArgs e)
101 | {
102 | var deferral = e.SuspendingOperation.GetDeferral();
103 | //TODO: Save application state and stop any background activity
104 | deferral.Complete();
105 | }
106 | }
107 | }
108 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/LockScreenLogo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/LockScreenLogo.scale-100.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/LockScreenLogo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/LockScreenLogo.scale-125.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/LockScreenLogo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/LockScreenLogo.scale-150.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/LockScreenLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/LockScreenLogo.scale-200.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/LockScreenLogo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/LockScreenLogo.scale-400.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/SplashScreen.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/SplashScreen.scale-100.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/SplashScreen.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/SplashScreen.scale-125.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/SplashScreen.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/SplashScreen.scale-150.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/SplashScreen.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/SplashScreen.scale-200.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/SplashScreen.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/SplashScreen.scale-400.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square150x150Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square150x150Logo.scale-100.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square150x150Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square150x150Logo.scale-125.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square150x150Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square150x150Logo.scale-150.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square150x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square150x150Logo.scale-200.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square150x150Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square150x150Logo.scale-400.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.scale-100.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.scale-125.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.scale-150.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.scale-200.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.scale-400.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.targetsize-16_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.targetsize-16_altform-unplated.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.targetsize-256_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.targetsize-256_altform-unplated.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.targetsize-32_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.targetsize-32_altform-unplated.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.targetsize-48_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Square44x44Logo.targetsize-48_altform-unplated.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/StoreLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/StoreLogo.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Wide310x150Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Wide310x150Logo.scale-100.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Wide310x150Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Wide310x150Logo.scale-125.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Wide310x150Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Wide310x150Logo.scale-150.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Wide310x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Wide310x150Logo.scale-200.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Assets/Wide310x150Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.UWP/Assets/Wide310x150Logo.scale-400.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using Windows.Foundation;
7 | using Windows.Foundation.Collections;
8 | using Windows.UI.Xaml;
9 | using Windows.UI.Xaml.Controls;
10 | using Windows.UI.Xaml.Controls.Primitives;
11 | using Windows.UI.Xaml.Data;
12 | using Windows.UI.Xaml.Input;
13 | using Windows.UI.Xaml.Media;
14 | using Windows.UI.Xaml.Navigation;
15 |
16 | namespace WebViewJavascript.UWP
17 | {
18 | public sealed partial class MainPage
19 | {
20 | public MainPage()
21 | {
22 | this.InitializeComponent();
23 |
24 | LoadApplication(new WebViewJavascript.App());
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
13 |
14 |
15 |
16 |
17 | WebViewJavascript.UWP
18 | Adam
19 | Assets\StoreLogo.png
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
34 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/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("WebViewJavascript.UWP")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("WebViewJavascript.UWP")]
13 | [assembly: AssemblyCopyright("Copyright © 2015")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Version information for an assembly consists of the following four values:
18 | //
19 | // Major Version
20 | // Minor Version
21 | // Build Number
22 | // Revision
23 | //
24 | // You can specify all the values or you can default the Build and Revision Numbers
25 | // by using the '*' as shown below:
26 | // [assembly: AssemblyVersion("1.0.*")]
27 | [assembly: AssemblyVersion("1.0.0.0")]
28 | [assembly: AssemblyFileVersion("1.0.0.0")]
29 | [assembly: ComVisible(false)]
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Properties/Default.rd.xml:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
20 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/Render/WebViewRender.cs:
--------------------------------------------------------------------------------
1 | using WebViewJavascript;
2 | using WebViewJavascript.UWP.Render;
3 | using Xamarin.Forms.Platform.UWP;
4 |
5 | [assembly: ExportRenderer(typeof(WebViewer), typeof(WebViewRender))]
6 | namespace WebViewJavascript.UWP.Render
7 | {
8 | using Xamarin.Forms;
9 | using System;
10 |
11 | public class WebViewRender : WebViewRenderer
12 | {
13 |
14 | protected override void OnElementChanged(ElementChangedEventArgs e)
15 | {
16 | base.OnElementChanged(e);
17 |
18 | if (Control != null && e.NewElement != null)
19 | InitializeCommands((WebViewer)e.NewElement);
20 |
21 | var oldWebView = e.OldElement as WebViewer;
22 | if (oldWebView != null)
23 | oldWebView.EvaluateJavascript = null;
24 |
25 | var newWebView = e.NewElement as WebViewer;
26 | if (newWebView != null)
27 | newWebView.EvaluateJavascript = async (js) =>
28 | {
29 | try
30 | {
31 | return await Control.InvokeScriptAsync("eval", new[] { js });
32 | }
33 | catch
34 | {
35 | return string.Empty;
36 | }
37 | };
38 | }
39 |
40 |
41 | ///
42 | /// Will wire up the commands in the WebViewer control to the native method calls
43 | ///
44 | ///
45 | private void InitializeCommands(WebViewer element)
46 | {
47 | element.Refresh = () =>
48 | {
49 | Control.Refresh();
50 | };
51 |
52 | element.GoBack = () =>
53 | {
54 | if (Control.CanGoBack)
55 | Control.GoBack();
56 | };
57 |
58 | element.CanGoBackFunction = () =>
59 | {
60 | return Control.CanGoBack;
61 | };
62 |
63 |
64 | }
65 | }
66 |
67 | }
68 |
69 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/WebViewJavascript.UWP.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | x86
7 | {BD530429-5A78-4D16-8C5E-550805429E08}
8 | AppContainerExe
9 | Properties
10 | WebViewJavascript.UWP
11 | WebViewJavascript.UWP
12 | en-US
13 | UAP
14 | 10.0.15063.0
15 | 10.0.10586.0
16 | 14
17 | true
18 | 512
19 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
20 | WebViewJavascript.UWP_TemporaryKey.pfx
21 |
22 |
23 | true
24 | bin\ARM\Debug\
25 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
26 | ;2008
27 | full
28 | ARM
29 | false
30 | prompt
31 | true
32 |
33 |
34 | bin\ARM\Release\
35 | TRACE;NETFX_CORE;WINDOWS_UWP
36 | true
37 | ;2008
38 | pdbonly
39 | ARM
40 | false
41 | prompt
42 | true
43 | true
44 |
45 |
46 | true
47 | bin\x64\Debug\
48 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
49 | ;2008
50 | full
51 | x64
52 | false
53 | prompt
54 | true
55 |
56 |
57 | bin\x64\Release\
58 | TRACE;NETFX_CORE;WINDOWS_UWP
59 | true
60 | ;2008
61 | pdbonly
62 | x64
63 | false
64 | prompt
65 | true
66 | true
67 |
68 |
69 | true
70 | bin\x86\Debug\
71 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
72 | ;2008
73 | full
74 | x86
75 | false
76 | prompt
77 | true
78 |
79 |
80 | bin\x86\Release\
81 | TRACE;NETFX_CORE;WINDOWS_UWP
82 | true
83 | ;2008
84 | pdbonly
85 | x86
86 | false
87 | prompt
88 | true
89 | true
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 | App.xaml
98 |
99 |
100 | MainPage.xaml
101 |
102 |
103 |
104 |
105 |
106 |
107 | Designer
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 | MSBuild:Compile
148 | Designer
149 |
150 |
151 | MSBuild:Compile
152 | Designer
153 |
154 |
155 |
156 |
157 | {fe577013-e131-4322-81a2-5387ae7752bc}
158 | WebViewJavascript
159 |
160 |
161 |
162 | 14.0
163 |
164 |
165 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.UWP/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.3.3",
4 | "Xamarin.Forms": "2.3.5.256-pre6"
5 | },
6 | "frameworks": {
7 | "uap10.0": {}
8 | },
9 | "runtimes": {
10 | "win10-arm": {},
11 | "win10-arm-aot": {},
12 | "win10-x86": {},
13 | "win10-x86-aot": {},
14 | "win10-x64": {},
15 | "win10-x64-aot": {}
16 | }
17 | }
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.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 WebViewJavascript.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 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.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 | WebViewJavascript
27 | CFBundleIdentifier
28 | com.yourcompany.WebViewJavascript
29 | CFBundleVersion
30 | 1.0
31 | CFBundleIconFiles
32 |
33 | Icon-60@2x
34 | Icon-60@3x
35 | Icon-76
36 | Icon-76@2x
37 | Default
38 | Default@2x
39 | Default-568h@2x
40 | Default-Portrait
41 | Default-Portrait@2x
42 | Icon-Small-40
43 | Icon-Small-40@2x
44 | Icon-Small-40@3x
45 | Icon-Small
46 | Icon-Small@2x
47 | Icon-Small@3x
48 |
49 | UILaunchStoryboardName
50 | LaunchScreen
51 |
52 |
53 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.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 WebViewJavascript.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 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.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("WebViewJavascript.iOS")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("WebViewJavascript.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 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Render/WebViewRender.cs:
--------------------------------------------------------------------------------
1 | using WebViewJavascript.iOS.Render;
2 | using Xamarin.Forms;
3 |
4 | [assembly: ExportRenderer(typeof(WebViewer), typeof(WebViewRender))]
5 | namespace WebViewJavascript.iOS.Render
6 | {
7 | using UIKit;
8 | using Xamarin.Forms.Platform.iOS;
9 |
10 | public class WebViewRender : WebViewRenderer
11 | {
12 |
13 | protected override void OnElementChanged(VisualElementChangedEventArgs e)
14 | {
15 | base.OnElementChanged(e);
16 |
17 | if (NativeView != null && e.NewElement != null)
18 | InitializeCommands((WebViewer)e.NewElement);
19 |
20 | var webView = e.NewElement as WebViewer;
21 | if (webView != null)
22 | webView.EvaluateJavascript = (js) =>
23 | {
24 | return Task.FromResult(this.EvaluateJavascript(js));
25 | };
26 | }
27 |
28 | private void InitializeCommands(WebViewer element)
29 | {
30 | element.RefreshCommand = new Command(() =>
31 | {
32 | ((UIWebView)NativeView).Reload();
33 | });
34 |
35 | element.GoBackCommand = new Command(() =>
36 | {
37 | var control = ((UIWebView)NativeView);
38 | if (control.CanGoBack)
39 | {
40 | element.IsBackNavigating = true;
41 | control.GoBack();
42 | }
43 | });
44 |
45 | element.CanGoBackFunction = () =>
46 | {
47 | return ((UIWebView)NativeView).CanGoBack;
48 | };
49 |
50 | var ctl = ((UIWebView)NativeView);
51 |
52 | ctl.ScalesPageToFit = true;
53 |
54 | }
55 |
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Default-568h@2x.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Default-Portrait.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Default.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Default@2x.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-60@2x.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-60@3x.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-76.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-76@2x.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small-40.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small-40@2x.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small-40@3x.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small@2x.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/Resources/Icon-Small@3x.png
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.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 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/WebViewJavascript.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | iPhoneSimulator
6 | 8.0.30703
7 | 2.0
8 | {E9B54D78-14D6-4617-95FD-5129D1B6E728}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | Exe
11 | WebViewJavascript.iOS
12 | Resources
13 | WebViewJavascript.iOS
14 |
15 |
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\iPhoneSimulator\Debug
22 | DEBUG
23 | prompt
24 | 4
25 | false
26 | i386, x86_64
27 | None
28 | true
29 |
30 |
31 | none
32 | true
33 | bin\iPhoneSimulator\Release
34 | prompt
35 | 4
36 | None
37 | i386, x86_64
38 | false
39 |
40 |
41 | true
42 | full
43 | false
44 | bin\iPhone\Debug
45 | DEBUG
46 | prompt
47 | 4
48 | false
49 | ARMv7, ARM64
50 | iPhone Developer
51 | true
52 | Entitlements.plist
53 |
54 |
55 | none
56 | true
57 | bin\iPhone\Release
58 | prompt
59 | 4
60 | ARMv7, ARM64
61 | false
62 | iPhone Developer
63 | Entitlements.plist
64 |
65 |
66 | none
67 | True
68 | bin\iPhone\Ad-Hoc
69 | prompt
70 | 4
71 | False
72 | ARMv7, ARM64
73 | True
74 | Automatic:AdHoc
75 | iPhone Distribution
76 | Entitlements.plist
77 |
78 |
79 | none
80 | True
81 | bin\iPhone\AppStore
82 | prompt
83 | 4
84 | False
85 | ARMv7, ARM64
86 | Automatic:AppStore
87 | iPhone Distribution
88 | Entitlements.plist
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 | ..\..\packages\Xamarin.Forms.2.3.5.256-pre6\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll
125 |
126 |
127 | ..\..\packages\Xamarin.Forms.2.3.5.256-pre6\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll
128 |
129 |
130 | ..\..\packages\Xamarin.Forms.2.3.5.256-pre6\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll
131 |
132 |
133 | ..\..\packages\Xamarin.Forms.2.3.5.256-pre6\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll
134 |
135 |
136 |
137 |
138 |
139 | {fe577013-e131-4322-81a2-5387ae7752bc}
140 | WebViewJavascript
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
149 |
150 |
151 |
152 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/iTunesArtwork:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/iTunesArtwork
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/iTunesArtwork@2x:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adamped/WebViewJavascript/bbe99e663cca6936f43e09e0208301f181545830/WebViewJavascript/WebViewJavascript.iOS/iTunesArtwork@2x
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript.iOS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | using Xamarin.Forms;
7 |
8 | namespace WebViewJavascript
9 | {
10 | public partial class App : Application
11 | {
12 | public App()
13 | {
14 | InitializeComponent();
15 |
16 | MainPage = new WebViewJavascript.MainPage();
17 | }
18 |
19 | protected override void OnStart()
20 | {
21 | // Handle when your app starts
22 | }
23 |
24 | protected override void OnSleep()
25 | {
26 | // Handle when your app sleeps
27 | }
28 |
29 | protected override void OnResume()
30 | {
31 | // Handle when your app resumes
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
22 |
23 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using Xamarin.Forms;
2 |
3 | namespace WebViewJavascript
4 | {
5 | public partial class MainPage: ContentPage
6 | {
7 | public MainPage()
8 | {
9 | InitializeComponent();
10 | BindingContext = new MainPageViewModel();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript/MainPageViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading.Tasks;
3 | using System.Windows.Input;
4 | using Xamarin.Forms;
5 |
6 | namespace WebViewJavascript
7 | {
8 | public class MainPageViewModel : BindableObject
9 | {
10 |
11 | public Func> EvaluateJavascript { get; set; }
12 | public Action GoBack { get; set; }
13 | public Action Refresh { get; set; }
14 |
15 | public ICommand GoBackCommand
16 | {
17 | get
18 | {
19 | return new Command(() => { GoBack(); });
20 | }
21 | }
22 |
23 | public ICommand RefreshCommand
24 | {
25 | get
26 | {
27 | return new Command(() => { Refresh(); });
28 | }
29 | }
30 |
31 | public ICommand EvalJS
32 | {
33 | get
34 | {
35 | return new Command(async () =>
36 | {
37 | var result = await EvaluateJavascript("document.getElementById('html');");
38 | });
39 | }
40 | }
41 |
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Resources;
2 | using System.Reflection;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 |
6 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript/WebViewJavascript.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard1.3
5 | Exrin.Framework
6 | Exrin.Framework
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript/WebViewer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading.Tasks;
3 | using System.Windows.Input;
4 | using Xamarin.Forms;
5 |
6 | namespace WebViewJavascript
7 | {
8 | public class WebViewer : WebView
9 | {
10 |
11 | public static BindableProperty EvaluateJavascriptProperty =
12 | BindableProperty.Create(nameof(EvaluateJavascript), typeof(Func>), typeof(WebViewer), null, BindingMode.OneWayToSource);
13 | public Func> EvaluateJavascript
14 | {
15 | get
16 | {
17 | return (Func>)GetValue(EvaluateJavascriptProperty);
18 | }
19 | set
20 | {
21 | SetValue(EvaluateJavascriptProperty, value);
22 | }
23 | }
24 |
25 |
26 | public Action Refresh
27 | {
28 | get { return (Action)GetValue(RefreshProperty); }
29 | set { SetValue(RefreshProperty, value); }
30 | }
31 |
32 | public static BindableProperty RefreshProperty =
33 | BindableProperty.Create(nameof(Refresh), typeof(Action), typeof(WebViewer), null, BindingMode.OneWayToSource);
34 |
35 | public static BindableProperty GoBackProperty =
36 | BindableProperty.Create(nameof(GoBack), typeof(Action), typeof(WebViewer), null, BindingMode.OneWayToSource);
37 |
38 | public Action GoBack
39 | {
40 | get { return (Action)GetValue(GoBackProperty); }
41 | set { SetValue(GoBackProperty, value); }
42 | }
43 |
44 | public static BindableProperty CanGoBackFunctionProperty =
45 | BindableProperty.Create(nameof(CanGoBackFunction), typeof(Func), typeof(WebViewer), null, BindingMode.OneWayToSource);
46 |
47 | public Func CanGoBackFunction
48 | {
49 | get { return (Func)GetValue(CanGoBackFunctionProperty); }
50 | set { SetValue(CanGoBackFunctionProperty, value); }
51 | }
52 |
53 | public static BindableProperty GoBackNavigationProperty =
54 | BindableProperty.Create(nameof(GoBackNavigation), typeof(Action), typeof(WebViewer), null, BindingMode.OneWay);
55 |
56 | public Action GoBackNavigation
57 | {
58 | get { return (Action)GetValue(GoBackNavigationProperty); }
59 | set { SetValue(GoBackNavigationProperty, value); }
60 | }
61 |
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/WebViewJavascript/WebViewJavascript/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------