Skip to content

Commit

Permalink
{N} v4
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Apr 18, 2018
1 parent c6325d6 commit 42a70b8
Show file tree
Hide file tree
Showing 14 changed files with 171 additions and 75 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@

## Installation

```bash
tns plugin add nativescript-aws-sdk
```
#### NativeScript 4x

* `tns plugin add nativescript-aws-sdk`

#### NativeScript 3x

* `tns plugin add nativescript-aws-sdk@0.0.4`

## Usage

Expand Down
11 changes: 6 additions & 5 deletions demo/app/vendor.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// Snapshot the ~/app.css and the theme
const application = require("application");
require("ui/styling/style-scope");
const appCssContext = require.context("~/", false, /^\.\/app\.(css|scss|less|sass)$/);
const application = require('application');
require('ui/styling/style-scope');
const appCssContext = require.context('~/', false, /^\.\/app\.(css|scss|less|sass)$/);
global.registerWebpackModules(appCssContext);
application.loadAppCss();

require("./vendor-platform");
require('./vendor-platform');

require("bundle-entry-points");
require('bundle-entry-points');
require('nativescript-aws-sdk');
32 changes: 17 additions & 15 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"nativescript": {
"id": "org.nativescript.demo",
"tns-android": {
"version": "3.4.0"
"version": "4.0.0"
},
"tns-ios": {
"version": "3.4.0"
"version": "4.0.1"
}
},
"dependencies": {
"nativescript-aws-sdk": "../src",
"nativescript-theme-core": "^1.0.4",
"nativescript-unit-test-runner": "^0.3.4",
"tns-core-modules": "^3.4.0"
"tns-core-modules": "^4.0.0"
},
"devDependencies": {
"awesome-typescript-loader": "~3.1.3",
Expand All @@ -34,7 +34,7 @@
"nativescript-worker-loader": "~0.8.1",
"raw-loader": "~0.5.1",
"resolve-url-loader": "~2.1.0",
"tns-platform-declarations": "^3.1.0",
"tns-platform-declarations": "^4.0.0",
"tslint": "~5.4.3",
"typescript": "~2.4.0",
"webpack": "~3.8.1",
Expand Down
111 changes: 111 additions & 0 deletions publish/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "nativescript-aws-sdk",
"version": "0.0.4",
"version": "0.0.5",
"description": "A NativeScript plugin using the Native sdks",
"typings": "index.d.ts",
"nativescript": {
"platforms": {
"android": "3.0.0",
"ios": "3.0.0"
"android": "4.0.0",
"ios": "4.0.1"
}
},
"scripts": {
Expand Down Expand Up @@ -44,10 +44,10 @@
"devDependencies": {
"prompt": "^1.0.0",
"rimraf": "^2.5.0",
"tns-core-modules": "^3.1.0",
"tns-platform-declarations": "^3.1.0",
"tns-core-modules": "^4.0.0",
"tns-platform-declarations": "^4.0.0",
"tslint": "^5.0.0",
"typescript": "^2.4.2"
"typescript": "^2.6.0"
},
"dependencies": {},
"bootstrapper": "nativescript-plugin-seed"
Expand Down
9 changes: 0 additions & 9 deletions src/platforms/android/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions src/platforms/android/include.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
android {
productFlavors {
"nativescript-aws-sdk" {
dimension "nativescript-aws-sdk"
}
}
}

dependencies {
compile 'com.amazonaws:aws-android-sdk-core:2.6.16'
compile 'com.amazonaws:aws-android-sdk-s3:2.6.16'
Expand Down
Binary file added src/platforms/android/nativescript_aws_sdk.aar
Binary file not shown.
9 changes: 0 additions & 9 deletions src/platforms/ios/README.md

This file was deleted.

Empty file removed src/platforms/ios/build.xcconfig
Empty file.
5 changes: 4 additions & 1 deletion src/s3/s3.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ const main_queue = dispatch_get_current_queue();

// const logger = utils.ios.getter(AWSDDLog,AWSDDLog.sharedInstance);
// logger.logLevel = AWSDDLogLevelVerbose;
declare const AWSEndpoint, AWSStaticCredentialsProvider,
AWSBasicSessionCredentialsProvider, AWSServiceManager, AWSRegionType, AWSServiceConfiguration, AWSS3TransferUtility,
AWSS3TransferUtilityUploadExpression;

export class S3 extends S3Base {
private static Options: S3AuthOptions;
private static Operations: Map<number, AWSS3TransferUtilityDownloadTask> = new Map();
private static Operations: Map<number, any> = new Map();
private static OperationsData: Map<number, any> = new Map();

public static init(options: S3AuthOptions) {
Expand Down
3 changes: 2 additions & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"noFallthroughCasesInSwitch": true
},
"exclude": [
"node_modules"
"node_modules",
"typings"
],
"compileOnSave": false
}

0 comments on commit 42a70b8

Please sign in to comment.