Skip to content

Commit

Permalink
Merge pull request #15 from volodymyrtaliar/file-transfer
Browse files Browse the repository at this point in the history
FileTransfer plugin v1.1.0
  • Loading branch information
gghangura authored Jun 30, 2021
2 parents e9c5cb7 + 50472ab commit 379f27f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 20 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ This plugin enables you to securely upload and download files within the BlackBe
## Preconditions
`cordova-plugin-bbd-file-transfer` is dependent on `cordova-plugin-bbd-base` and `cordova-plugin-bbd-file` plugins.

Installation
============
To add this plugin to your application, run the following command in the project directory:
```
$ cd <path/to/package>/BlackBerry_Dynamics_SDK_for_Cordova_<version>/plugins/cordovaApp
$ cordova plugin add git+https://github.com/blackberry/BlackBerry-Dynamics-Cordova-Plugins#file-transfer
```
## Installation

`cordova plugin add git+https://github.com/blackberry/blackberry-dynamics-cordova-plugins#file-transfer`

## Uninstallation

`cordova plugin rm cordova-plugin-bbd-file-transfer`

## Supported Platforms

Expand All @@ -23,3 +23,11 @@ $ cordova plugin add git+https://github.com/blackberry/BlackBerry-Dynamics-Cordo
## Usage

Please take a look at original examples of usage [here](https://github.com/apache/cordova-plugin-file-transfer#FileTransfer).

## License

Apache 2.0 License

## Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-bbd-file-transfer",
"version": "1.0.0",
"version": "1.1.0",
"description": "BlackBerry Dynamics Cordova File Transfer Plugin",
"types": "./types/index.d.ts",
"license": "SEE LICENSE IN LICENSE",
Expand All @@ -13,10 +13,13 @@
]
},
"repository": {
"name": "https://github.com/blackberry/BlackBerry-Dynamics-Cordova-Plugins/tree/file-transfer",
"version": "1.0.0",
"private": true
"name": "cordova-plugin-bbd-file-transfer",
"version": "1.1.0",
"private": true,
"type": "git",
"url": "https://github.com/blackberry/BlackBerry-Dynamics-Cordova-Plugins/tree/file-transfer"
},
"bugs": "https://github.com/blackberry/BlackBerry-Dynamics-Cordova-Plugins/tree/file-transfer/issues",
"keywords": [
"cordova",
"file",
Expand Down
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
under the License.
-->

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-bbd-file-transfer" version="1.0.0">
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-bbd-file-transfer" version="1.1.0">
<name>cordova-plugin-bbd-file-transfer</name>
<description>BlackBerry Dynamics Cordova File Transfer Plugin</description>
<license>SEE LICENSE IN LICENSE</license>
Expand All @@ -36,7 +36,7 @@
</info>

<dependency id="cordova-plugin-bbd-file"
url="git+https://github.com/blackberry/BlackBerry-Dynamics-Cordova-Plugins#file" version="^1.0.0" />
url="git+https://github.com/blackberry/blackberry-dynamics-cordova-plugins#file" version="^1.1.0" />

<js-module src="www/FileTransferError.js" name="FileTransferError">
<clobbers target="window.FileTransferError" />
Expand Down
4 changes: 2 additions & 2 deletions src/ios/CDVFileTransferBD.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2020 BlackBerry Limited. All Rights Reserved.
Copyright (c) 2021 BlackBerry Limited. All Rights Reserved.
Some modifications to the original Cordova FileTransfer plugin
from https://github.com/apache/cordova-plugin-file-transfer/
Expand All @@ -24,7 +24,7 @@
#import <Foundation/Foundation.h>
#import <Cordova/CDVPlugin.h>
#import "CDVFileBD.h"
#import <GD/GDFileHandle.h>
#import <BlackBerryDynamics/GD/GDFileHandle.h>

enum CDVFileTransferErrorBD {
FILE_NOT_FOUND_ERR = 1,
Expand Down
10 changes: 5 additions & 5 deletions src/ios/CDVFileTransferBD.m
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
Copyright (c) 2020 BlackBerry Limited. All Rights Reserved.
Copyright (c) 2021 BlackBerry Limited. All Rights Reserved.
Some modifications to the original Cordova FileTransfer plugin
from https://github.com/apache/cordova-plugin-file-transfer/
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
Expand All @@ -30,7 +30,7 @@ Licensed to the Apache Software Foundation (ASF) under one
#import <AssetsLibrary/ALAssetsLibrary.h>
#import <CFNetwork/CFNetwork.h>

#import <GD/GDFileManager.h>
#import <BlackBerryDynamics/GD/GDFileManager.h>
#import <BbdBasePlugin/GDCordovaLogger.h>

#ifndef DLog
Expand Down

0 comments on commit 379f27f

Please sign in to comment.