Skip to content

Commit 27e9598

Browse files
author
Sefa Ilkimen
committed
remove deprecated AngularJS integration service
1 parent 96f45d7 commit 27e9598

File tree

6 files changed

+7
-120
lines changed

6 files changed

+7
-120
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
- Feature #103: implement HTTP SSL cert modes
66

7-
- :warning: **Breaking Change**: Removed "enableSSLPinning" and "acceptAllCerts", use "setSSLCertMode" instead.
7+
- :warning: **Breaking Change**: Removed AngularJS (v1) integration service
8+
- :warning: **Breaking Change**: Removed "enableSSLPinning" and "acceptAllCerts", use "setSSLCertMode" instead
89

910
## 1.11.1
1011

README.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,6 @@ This plugin registers a global object located at `cordova.plugin.http`.
4141

4242
Check the [Ionic docs](https://ionicframework.com/docs/native/http/) for how to use this plugin with Ionic-native.
4343

44-
### With AngularJS (Deprecated)
45-
46-
:warning: *This feature is deprecated and will be removed anytime soon.* :warning:
47-
48-
This plugin creates a cordovaHTTP service inside of a cordovaHTTP module. You must load the module when you create your app's module.
49-
50-
```js
51-
var app = angular.module('myApp', ['ngRoute', 'ngAnimate', 'cordovaHTTP']);
52-
```
53-
54-
You can then inject the cordovaHTTP service into your controllers. The functions can then be used identically to the examples shown below except that instead of accepting success and failure callback functions, each function returns a promise. For more information on promises in AngularJS read the [AngularJS docs](http://docs.angularjs.org/api/ng/service/$q). For more info on promises in general check out this article on [html5rocks](http://www.html5rocks.com/en/tutorials/es6/promises/). Make sure that you load cordova.js or phonegap.js after AngularJS is loaded.
55-
56-
5744
## Synchronous Functions
5845

5946
### getBasicAuthHeader
@@ -175,10 +162,10 @@ cordova.plugin.http.setSSLCertMode('nocheck', function() {
175162
});
176163
```
177164

178-
### enableSSLPinning
165+
### enableSSLPinning (obsolete)
179166
This function was removed in 2.0.0. Use ["setSSLCertMode"](#setSSLCertMode) to enable SSL pinning (mode "pinned").
180167

181-
### acceptAllCerts
168+
### acceptAllCerts (obsolete)
182169
This function was removed in 2.0.0. Use ["setSSLCertMode"](#setSSLCertMode) to disable checking certs (mode "nocheck").
183170

184171
### disableRedirect
@@ -192,8 +179,8 @@ cordova.plugin.http.disableRedirect(true, function() {
192179
});
193180
```
194181

195-
### validateDomainName
196-
This function was removed in v1.6.2. Domain name validation is disabled automatically when you enable "acceptAllCerts".
182+
### validateDomainName (obsolete)
183+
This function was removed in v1.6.2. Domain name validation is disabled automatically when you set SSL cert mode to "nocheck".
197184

198185
### removeCookies
199186
Remove all cookies associated with a given URL.

plugin.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<js-module src="www/messages.js" name="messages"/>
1414
<js-module src="www/local-storage-store.js" name="local-storage-store"/>
1515
<js-module src="www/cookie-handler.js" name="cookie-handler"/>
16-
<js-module src="www/angular-integration.js" name="angular-integration"/>
1716
<js-module src="www/helpers.js" name="helpers"/>
1817
<js-module src="www/advanced-http.js" name="http">
1918
<clobbers target="cordova.plugin.http"/>
@@ -80,4 +79,4 @@
8079
<runs/>
8180
</js-module>
8281
</platform>
83-
</plugin>
82+
</plugin>

test/js-mocha-specs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ describe('Advanced HTTP www interface', function() {
2828
mock(`${PLUGIN_ID}.cookie-handler`, {});
2929
mock(`${HELPERS_ID}.cookie-handler`, {});
3030
mock(`${HELPERS_ID}.messages`, require('../www/messages'));
31-
mock(`${PLUGIN_ID}.angular-integration`, { registerService: noop });
3231

3332
loadHttp();
3433
});

www/advanced-http.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
var pluginId = module.id.slice(0, module.id.lastIndexOf('.'));
66

77
var exec = require('cordova/exec');
8-
var angularIntegration = require(pluginId +'.angular-integration');
98
var cookieHandler = require(pluginId + '.cookie-handler');
109
var helpers = require(pluginId + '.helpers');
1110

@@ -123,6 +122,4 @@ var publicInterface = {
123122
}
124123
};
125124

126-
// angular service is deprecated and will be removed anytime soon
127-
angularIntegration.registerService(publicInterface);
128125
module.exports = publicInterface;

www/angular-integration.js

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)