This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9455cd
commit 238250f
Showing
12 changed files
with
137 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<widget id="io.ark.wallet.mobile" version="1.8.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | ||
<widget id="io.ark.wallet.mobile" version="1.9.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | ||
<name>Ark Mobile</name> | ||
<description>ARK</description> | ||
<author email="[email protected]" href="http://ark.io/">Ark Ecosystem</author> | ||
|
@@ -30,6 +30,8 @@ | |
<preference name="Orientation" value="portrait" /> | ||
<preference name="target-device" value="handset" /> | ||
<preference name="DisableDeploy" value="true" /> | ||
<preference name="WKWebViewOnly" value="true" /> | ||
<preference name="AndroidPersistentFileLocation" value="Compatibility" /> | ||
<platform name="android"> | ||
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<application android:networkSecurityConfig="@xml/network_security_config" /> | ||
|
@@ -114,6 +116,7 @@ | |
<splash height="2436" src="resources/ios/splash/Default-2436h.png" width="1125" /> | ||
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" /> | ||
</platform> | ||
<plugin name="cordova-plugin-advanced-http" spec="^3.2.0" /> | ||
<plugin name="cordova-plugin-whitelist" spec="1.3.3" /> | ||
<plugin name="cordova-plugin-statusbar" spec="2.4.2" /> | ||
<plugin name="cordova-plugin-device" spec="2.0.2" /> | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ark-mobile", | ||
"version": "1.8.6", | ||
"version": "1.9.2", | ||
"author": "Ark Ecosystem <[email protected]>", | ||
"homepage": "https://github.com/ArkEcosystem/mobile-wallet#readme", | ||
"scripts": { | ||
|
@@ -36,6 +36,7 @@ | |
"@ionic-native/background-mode": "^5.22.0", | ||
"@ionic-native/clipboard": "^5.22.0", | ||
"@ionic-native/core": "^5.22.0", | ||
"@ionic-native/http": "^5.36.0", | ||
"@ionic-native/in-app-browser": "^5.22.0", | ||
"@ionic-native/keyboard": "^5.22.0", | ||
"@ionic-native/local-notifications": "^5.22.0", | ||
|
@@ -63,6 +64,7 @@ | |
"cordova-custom-config": "^5.1.0", | ||
"cordova-ios": "5.1.1", | ||
"cordova-plugin-add-swift-support": "^2.0.2", | ||
"cordova-plugin-advanced-http": "^3.2.1", | ||
"cordova-plugin-device": "^2.0.3", | ||
"cordova-plugin-inappbrowser": "^3.2.0", | ||
"cordova-plugin-ionic": "^5.4.6", | ||
|
@@ -170,6 +172,9 @@ | |
"cordova-plugin-ionic-webview": { | ||
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+" | ||
}, | ||
"cordova-plugin-advanced-http": { | ||
"ANDROIDBLACKLISTSECURESOCKETPROTOCOLS": "SSLv3,TLSv1" | ||
}, | ||
"cordova-plugin-ionic-keyboard": {}, | ||
"cordova-plugin-ionic": { | ||
"APP_ID": "efb289f2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { Injectable } from "@angular/core"; | ||
import { HTTP } from "@ionic-native/http/ngx"; | ||
import { from, Observable } from "rxjs"; | ||
import { map } from "rxjs/operators"; | ||
|
||
@Injectable({ | ||
providedIn: "root", | ||
}) | ||
export class HttpClient { | ||
private defaultHeaders: any = { | ||
"Content-Type": "application/json", | ||
}; | ||
|
||
constructor(private http: HTTP) {} | ||
|
||
get<T>(url: string, options: any = {}): Observable<any> { | ||
this.http.setDataSerializer("json"); | ||
|
||
return from( | ||
this.http.get( | ||
url, | ||
{}, | ||
{ ...this.defaultHeaders, ...(options.headers || {}) }, | ||
), | ||
).pipe( | ||
map(function (result): any { | ||
return JSON.parse(result.data); | ||
}), | ||
); | ||
} | ||
|
||
post<T>(url: string, body: any = {}, options: any = {}): Observable<any> { | ||
this.http.setDataSerializer("json"); | ||
|
||
return from( | ||
this.http.post(url, body, { | ||
...this.defaultHeaders, | ||
...(options.headers || {}), | ||
}), | ||
).pipe( | ||
map(function (result): any { | ||
return JSON.parse(result.data); | ||
}), | ||
); | ||
} | ||
|
||
put<T>(url: string, body: any = {}, options: any = {}): Observable<any> { | ||
this.http.setDataSerializer("json"); | ||
|
||
return from( | ||
this.http.put(url, body, { | ||
...this.defaultHeaders, | ||
...(options.headers || {}), | ||
}), | ||
).pipe( | ||
map(function (result): any { | ||
return JSON.parse(result.data); | ||
}), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters