Skip to content

Commit 313e0ae

Browse files
Merge remote-tracking branch 'upstream/master'
2 parents 05e37a1 + 3f0528c commit 313e0ae

28 files changed

+159
-2681
lines changed

.appveyor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ environment:
1616
matrix:
1717
- PLATFORM: windows-10-store
1818
JUST_BUILD: --justBuild
19-
- PLATFORM: local\browser
2019
install:
2120
- npm cache clean -f
2221
- node --version

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,3 @@ Thumbs.db
1414

1515
node_modules
1616
.idea
17-
18-
19-
20-
21-
22-
23-
24-

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ matrix:
4343
- tools
4444
- platform-tools
4545
- tools
46+
- build-tools-26.0.2
4647
- env: PLATFORM=android-5.1
4748
os: linux
4849
language: android
@@ -52,6 +53,7 @@ matrix:
5253
- tools
5354
- platform-tools
5455
- tools
56+
- build-tools-26.0.2
5557
- env: PLATFORM=android-6.0
5658
os: linux
5759
language: android
@@ -61,6 +63,7 @@ matrix:
6163
- tools
6264
- platform-tools
6365
- tools
66+
- build-tools-26.0.2
6467
- env: PLATFORM=android-7.0
6568
os: linux
6669
language: android
@@ -70,14 +73,15 @@ matrix:
7073
- tools
7174
- platform-tools
7275
- tools
76+
- build-tools-26.0.2
7377
before_install:
7478
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm
7579
&& git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm
7680
install $TRAVIS_NODE_VERSION
7781
- node --version
7882
- if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi
7983
- if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi
80-
- if [[ "$PLATFORM" =~ android ]]; then echo y | android update sdk -u --filter android-22,android-23,android-24,android-25;
84+
- if [[ "$PLATFORM" =~ android ]]; then echo y | android update sdk -u --filter android-22,android-23,android-24,android-25,android-26;
8185
fi
8286
- git clone https://github.com/apache/cordova-paramedic /tmp/paramedic && pushd /tmp/paramedic
8387
&& npm install && popd

README.md

Lines changed: 13 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,13 @@ instance, or the system browser.
112112
- __hidden__: set to `yes` to create the browser and load the page, but not show it. The loadstop event fires when loading is complete. Omit or set to `no` (default) to have the browser open and load normally.
113113
- __clearcache__: set to `yes` to have the browser's cookie cache cleared before the new window is opened
114114
- __clearsessioncache__: set to `yes` to have the session cookie cache cleared before the new window is opened
115-
- __closebuttoncaption__: set to a string to use as the close buttons caption instead of a X. Note that you need to localize this value yourself.
115+
- __closebuttoncaption__: set to a string to use as the close button's caption instead of a X. Note that you need to localize this value yourself.
116116
- __closebuttoncolor__: set to a valid hex color string, for example: `#00ff00`, and it will change the
117117
close button color from default, regardless of being a text or default X. Only has effect if user has location set to `yes`.
118+
- __footer__: set to `yes` to show a close button in the footer similar to the iOS __Done__ button.
119+
The close button will appear the same as for the header hence use __closebuttoncaption__ and __closebuttoncolor__ to set its properties.
120+
- __footercolor__: set to a valid hex color string, for example `#00ff00` or `#CC00ff00` (`#aarrggbb`) , and it will change the footer color from default.
121+
Only has effect if user has __footer__ set to `yes`.
118122
- __hardwareback__: set to `yes` to use the hardware back button to navigate backwards through the `InAppBrowser`'s history. If there is no previous page, the `InAppBrowser` will close. The default value is `yes`, so you must set it to `no` if you want the back button to simply close the InAppBrowser.
119123
- __hidenavigationbuttons__: set to `yes` to hide the navigation buttons on the location toolbar, only has effect if user has location set to `yes`. The default value is `no`.
120124
- __hideurlbar__: set to `yes` to hide the url bar on the location toolbar, only has effect if user has location set to `yes`. The default value is `no`.
@@ -155,66 +159,23 @@ instance, or the system browser.
155159

156160
### Supported Platforms
157161

158-
- Amazon Fire OS
159162
- Android
160-
- BlackBerry 10
161163
- Browser
162-
- Firefox OS
163164
- iOS
164165
- OSX
165-
- Windows 8 and 8.1
166-
- Windows Phone 7 and 8
166+
- Windows
167167

168168
### Example
169169

170170
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes');
171171
var ref2 = cordova.InAppBrowser.open(encodeURI('http://ja.m.wikipedia.org/wiki/ハングル'), '_blank', 'location=yes');
172172

173-
### Firefox OS Quirks
174-
175-
As plugin doesn't enforce any design there is a need to add some CSS rules if
176-
opened with `target='_blank'`. The rules might look like these
177-
178-
``` css
179-
.inAppBrowserWrap {
180-
background-color: rgba(0,0,0,0.75);
181-
color: rgba(235,235,235,1.0);
182-
}
183-
.inAppBrowserWrap menu {
184-
overflow: auto;
185-
list-style-type: none;
186-
padding-left: 0;
187-
}
188-
.inAppBrowserWrap menu li {
189-
font-size: 25px;
190-
height: 25px;
191-
float: left;
192-
margin: 0 10px;
193-
padding: 3px 10px;
194-
text-decoration: none;
195-
color: #ccc;
196-
display: block;
197-
background: rgba(30,30,30,0.50);
198-
}
199-
.inAppBrowserWrap menu li.disabled {
200-
color: #777;
201-
}
202-
```
203-
204173
### OSX Quirks
205174

206175
At the moment the only supported target in OSX is `_system`.
207176

208177
`_blank` and `_self` targets are not yet implemented and are ignored silently. Pull requests and patches to get these to work are greatly appreciated.
209178

210-
### Windows Quirks
211-
212-
Windows 8.0, 8.1 and Windows Phone 8.1 don't support remote urls to be opened in the Cordova WebView so remote urls are always showed in the system's web browser if opened with `target='_self'`.
213-
214-
On Windows 10 if the URL is NOT in the white list and is opened with `target='_self'` it will be showed in the system's web browser instead of InAppBrowser popup.
215-
216-
Similar to Firefox OS IAB window visual behaviour can be overridden via `inAppBrowserWrap`/`inAppBrowserWrapFullscreen` CSS classes
217-
218179
### Browser Quirks
219180

220181
- Plugin is implemented via iframe,
@@ -335,12 +296,11 @@ function executeScriptCallBack(params) {
335296

336297
### Supported Platforms
337298

338-
- Amazon Fire OS
339299
- Android
340300
- Browser
341301
- iOS
342-
- Windows 8 and 8.1
343-
- Windows Phone 7 and 8
302+
- Windows
303+
- OSX
344304

345305
### Browser Quirks
346306

@@ -371,12 +331,10 @@ The function is passed an `InAppBrowserEvent` object.
371331

372332
### Supported Platforms
373333

374-
- Amazon Fire OS
375334
- Android
376335
- Browser
377336
- iOS
378-
- Windows 8 and 8.1
379-
- Windows Phone 7 and 8
337+
- Windows
380338

381339
### Quick Example
382340

@@ -395,13 +353,10 @@ The function is passed an `InAppBrowserEvent` object.
395353

396354
### Supported Platforms
397355

398-
- Amazon Fire OS
399356
- Android
400357
- Browser
401-
- Firefox OS
402358
- iOS
403-
- Windows 8 and 8.1
404-
- Windows Phone 7 and 8
359+
- Windows
405360

406361
### Quick Example
407362

@@ -418,11 +373,10 @@ The function is passed an `InAppBrowserEvent` object.
418373

419374
### Supported Platforms
420375

421-
- Amazon Fire OS
422376
- Android
423377
- Browser
424378
- iOS
425-
- Windows 8 and 8.1
379+
- Windows
426380

427381
### Quick Example
428382

@@ -440,10 +394,9 @@ The function is passed an `InAppBrowserEvent` object.
440394

441395
### Supported Platforms
442396

443-
- Amazon Fire OS
444397
- Android
445398
- iOS
446-
- Windows 8 and 8.1
399+
- Windows
447400

448401
### Quick Example
449402

@@ -472,11 +425,10 @@ The function is passed an `InAppBrowserEvent` object.
472425

473426
### Supported Platforms
474427

475-
- Amazon Fire OS
476428
- Android
477429
- Browser
478430
- iOS
479-
- Windows 8 and 8.1
431+
- Windows
480432

481433
### Quick Example
482434

@@ -509,7 +461,6 @@ Due to [MSDN docs](https://msdn.microsoft.com/en-us/library/windows.ui.xaml.cont
509461

510462
### Supported Platforms
511463

512-
- Amazon Fire OS
513464
- Android
514465
- iOS
515466
- Windows

RELEASENOTES.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,33 @@
2020
-->
2121
# Release Notes
2222

23+
### 2.0.2 (Jan 24, 2018)
24+
* [CB-13791](https://issues.apache.org/jira/browse/CB-13791) Add **Android** support for a footer close button
25+
* [CB-13409](https://issues.apache.org/jira/browse/CB-13409) restore gitignore to default
26+
* [CB-13409](https://issues.apache.org/jira/browse/CB-13409) restore gitignore to default
27+
* [CB-13409](https://issues.apache.org/jira/browse/CB-13409) restore gitignore to default
28+
* [CB-13409](https://issues.apache.org/jira/browse/CB-13409) restore gitignore to default
29+
* [CB-13409](https://issues.apache.org/jira/browse/CB-13409) ignore idea folder
30+
* [CB-13409](https://issues.apache.org/jira/browse/CB-13409) change hidetoolbarnavigationbuttons to hidenavigationbuttons in iso
31+
* [CB-13409](https://issues.apache.org/jira/browse/CB-13409) **Android** works well now, all changes are now documented
32+
* [CB-13409](https://issues.apache.org/jira/browse/CB-13409) Lets user adjust color of toolbar, hide navigation buttons and set custom text on close button
33+
* [CB-13746](https://issues.apache.org/jira/browse/CB-13746) Add build-tools-26.0.2 to travis
34+
35+
### 2.0.1 (Dec 27, 2017)
36+
* [CB-13699](https://issues.apache.org/jira/browse/CB-13699) Fix to allow 2.0.0 version install
37+
38+
### 2.0.0 (Dec 15, 2017)
39+
* [CB-13662](https://issues.apache.org/jira/browse/CB-13662) remove deprecated platforms
40+
41+
### 1.7.2 (Nov 06, 2017)
42+
* [CB-13473](https://issues.apache.org/jira/browse/CB-13473) (CI) Removed **Browser** builds from AppVeyor
43+
* [CB-13472](https://issues.apache.org/jira/browse/CB-13472) (CI) Fixed Travis **Android** builds again
44+
* [CB-13347](https://issues.apache.org/jira/browse/CB-13347) Enable thirdparty cookies on `>=Android 5.0` device
45+
* [CB-12895](https://issues.apache.org/jira/browse/CB-12895) added `eslint` and removed `jshint`
46+
* [CB-12975](https://issues.apache.org/jira/browse/CB-12975) (docs) Resort and reword `cordova.InAppBrowser.open` `options` lists
47+
* [CB-12586](https://issues.apache.org/jira/browse/CB-12586) (iOS) fix method `hide` doesn't work
48+
* [CB-12847](https://issues.apache.org/jira/browse/CB-12847) added `bugs` entry to `package.json`.
49+
2350
### 1.7.1 (Apr 27, 2017)
2451
* [CB-12622](https://issues.apache.org/jira/browse/CB-12622) Added **Android 6.0** build badges to `README`
2552
* [CB-12266](https://issues.apache.org/jira/browse/CB-12266) (browser platform) loadstop event.url is now a string instead of an object, aligning it with the other platforms.

package.json

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
{
22
"name": "cordova-plugin-inappbrowser",
3-
"version": "1.7.2-dev",
3+
"version": "2.0.3-dev",
44
"description": "Cordova InAppBrowser Plugin",
55
"types": "./types/index.d.ts",
66
"cordova": {
77
"id": "cordova-plugin-inappbrowser",
88
"platforms": [
99
"android",
10-
"amazon-fireos",
11-
"ubuntu",
10+
"browser",
1211
"ios",
1312
"osx",
14-
"wp7",
15-
"wp8",
16-
"windows8",
17-
"windows",
18-
"firefoxos"
13+
"windows"
1914
]
2015
},
2116
"repository": {
@@ -33,15 +28,10 @@
3328
"inappbrowser",
3429
"ecosystem:cordova",
3530
"cordova-android",
36-
"cordova-amazon-fireos",
37-
"cordova-ubuntu",
31+
"cordova-browser",
3832
"cordova-ios",
3933
"cordova-osx",
40-
"cordova-wp7",
41-
"cordova-wp8",
42-
"cordova-windows8",
43-
"cordova-windows",
44-
"cordova-firefoxos"
34+
"cordova-windows"
4535
],
4636
"scripts": {
4737
"test": "npm run eslint",
@@ -52,7 +42,7 @@
5242
"0.2.3": {
5343
"cordova": ">=3.1.0"
5444
},
55-
"2.0.0": {
45+
"3.0.0": {
5646
"cordova": ">100"
5747
}
5848
}

0 commit comments

Comments
 (0)