Skip to content

Commit

Permalink
chore: {N} 7
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Oct 2, 2020
1 parent 8a4bcfd commit a32ab61
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 8,905 deletions.
Binary file added .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
node_modules/
.vscode/
build/
src/*.js
src/*.map
src/*.d.ts
package-lock.json
*.tgz
8,826 changes: 0 additions & 8,826 deletions package-lock.json

This file was deleted.

8 changes: 0 additions & 8 deletions platforms/android/AndroidManifest.xml

This file was deleted.

11 changes: 0 additions & 11 deletions platforms/android/include.gradle

This file was deleted.

Binary file not shown.
8 changes: 0 additions & 8 deletions platforms/ios/Info.plist

This file was deleted.

5 changes: 4 additions & 1 deletion .npmignore → src/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
build/*.map
*.map
*.ts
!*.d.ts
tsconfig.json
scripts/*
platforms/android/*
Expand All @@ -8,3 +10,4 @@ platforms/android/*
src/
.vscode/
.DS_Store
*.tgz
File renamed without changes.
File renamed without changes.
21 changes: 12 additions & 9 deletions package.json → src/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"name": "nativescript-plugin-universal-links",
"version": "1.0.1",
"version": "2.0.0",
"description": "Universal links (IOS) and App Links (Android) support for NativeScript.",
"main": "build/plugin-universal-links",
"typings": "build/plugin-universal-links.common.d.ts",
"main": "plugin-universal-links",
"typings": "plugin-universal-links.common.d.ts",
"nativescript": {
"platforms": {
"android": "6.0.0",
"ios": "6.0.1"
}
},
"scripts": {
"build": "npx rimraf build/ && npx tsc -p tsconfig.json && npx tns plugin build",
"clean": "npx rimraf node_modules package-lock.json && npm i && ts-patch install",
"tsc": "tsc -p tsconfig.json",
"build": "npm run tsc",
"prepack": "npm run build"
},
"keywords": [
Expand All @@ -27,13 +29,14 @@
"license": "MIT",
"repository": "https://github.com/sebestindragos/nativescript-plugin-universal-links",
"devDependencies": {
"nativescript": "6.4.1",
"rimraf": "3.0.2",
"tns-core-modules": "6.4.2",
"tns-platform-declarations": "6.4.2",
"typescript": "3.8.3"
"@nativescript/core": "~7.0.0",
"@nativescript/types": "~7.0.0",
"@nativescript/webpack": "~3.0.0",
"ts-patch": "^1.3.0",
"typescript": "~3.9.0"
},
"dependencies": {
"ts-node": "^9.0.0",
"url-parse": "1.4.7"
}
}
8 changes: 3 additions & 5 deletions src/plugin-universal-links.android.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/// <reference path="../node_modules/tns-platform-declarations/android.d.ts" />

import * as application from "tns-core-modules/application";
import { Application, AndroidApplication } from "@nativescript/core";
import {
setUniversalLink,
getUniversalLink,
Expand All @@ -11,8 +9,8 @@ export {
registerUniversalLinkCallback
} from "./plugin-universal-links.common";

application.android.on(
application.AndroidApplication.activityNewIntentEvent,
Application.android.on(
AndroidApplication.activityNewIntentEvent,
args => {
const intent: android.content.Intent = args.activity.getIntent();
try {
Expand Down
13 changes: 5 additions & 8 deletions src/plugin-universal-links.ios.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference path="../node_modules/tns-platform-declarations/ios.d.ts" />
import * as application from "tns-core-modules/application";

import { Application } from "@nativescript/core";
import {
setUniversalLink,
getRegisteredCallback,
Expand All @@ -11,19 +11,16 @@ export {
registerUniversalLinkCallback
} from "./plugin-universal-links.common";

@NativeClass()
class CustomUIApplicationDelegate extends UIResponder
implements UIApplicationDelegate {
public static ObjCProtocols = [UIApplicationDelegate];

static new(): CustomUIApplicationDelegate {
return <CustomUIApplicationDelegate>super.new();
}
}

// setup app delegate
let delegate = application.ios.delegate;
let delegate = Application.ios.delegate;
if (!delegate) {
delegate = application.ios.delegate = CustomUIApplicationDelegate;
delegate = Application.ios.delegate = CustomUIApplicationDelegate;
}

/**
Expand Down
38 changes: 38 additions & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"compilerOptions": {
"target": "es2017",
"module": "esnext",
"moduleResolution": "node",
"declaration": true,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"lib": [
"es2017",
"dom"
],
"sourceMap": true,
"pretty": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noEmitHelpers": true,
"noEmitOnError": false,
"noImplicitAny": false,
"noImplicitReturns": true,
"noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true,
"baseUrl": ".",
"plugins": [
{
"transform": "@nativescript/webpack/transformers/ns-transform-native-classes",
"type": "raw"
}
]
},
"exclude": [
"node_modules"
],
"compileOnSave": false
}
29 changes: 0 additions & 29 deletions tsconfig.json

This file was deleted.

0 comments on commit a32ab61

Please sign in to comment.