Skip to content

Commit

Permalink
fix: SDK updates and build config fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Apr 24, 2022
1 parent aa18eb9 commit 2693d9d
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 100 deletions.
18 changes: 8 additions & 10 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
},
"scripts": {
"tsc": "npm i && tsc",
"build": "npm run tsc && npm run build.native",
"build.native": "node scripts/build-native.js",
"build": "npm i && npx ts-patch install && tsc",
"postclone": "npm i && node scripts/postclone.js",
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**'",
"prepack": "npm run build.native",
"prepack": "npm run build",
"demo.ios": "npm run tsc && cd ../demo-angular && tns run ios --no-hmr",
"demo.android": "npm run tsc && cd ../demo-angular && tns run android --no-hmr",
"demo.reset": "cd ../demo-angular && npx rimraf -- hooks node_modules platforms package-lock.json",
Expand All @@ -46,13 +45,12 @@
"homepage": "https://github.com/dotnetdreamer/nativescript-http-formdata",
"readmeFilename": "README.md",
"devDependencies": {
"@nativescript/core": "8.0.0",
"@nativescript/types": "8.0.0",
"prompt": "^1.1.0",
"rimraf": "^3.0.2",
"semver": "^7.3.5",
"tslint": "^5.12.1",
"typescript": "~4.0.0"
"@nativescript/core": "~8.2.0",
"@nativescript/types": "~8.2.0",
"@nativescript/webpack": "~5.0.0",
"rimraf": "^3.0.2",
"ts-patch": "~1.4.5",
"typescript": "~4.3.5"
},
"bootstrapper": "nativescript-plugin-seed"
}
8 changes: 0 additions & 8 deletions src/platforms/android/AndroidManifest.xml

This file was deleted.

9 changes: 0 additions & 9 deletions src/platforms/android/README.md

This file was deleted.

9 changes: 1 addition & 8 deletions src/platforms/android/include.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/* Include.gradle configuration: http://docs.nativescript.org/plugins/plugins#includegradle-specification */

// android {
// mavenCentral()
// }


repositories {
mavenCentral()
maven {
Expand All @@ -16,5 +9,5 @@ dependencies {
// Describe plugin native Android dependencies like
// implementation "groupName:pluginName:ver"
// EXAMPLE: implementation "com.facebook.fresco:fresco:0.9.0+"
compile "com.squareup.okhttp3:okhttp:4.3.1"
implementation "com.squareup.okhttp3:okhttp:4.9.3"
}
Binary file removed src/platforms/android/nativescript_http_formdata.aar
Binary file not shown.
7 changes: 0 additions & 7 deletions src/platforms/ios/Info.plist

This file was deleted.

2 changes: 1 addition & 1 deletion src/platforms/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pod 'OMGHTTPURLRQ', '~> 3.2.4'
pod 'OMGHTTPURLRQ', '~> 3.3.0'
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.
2 changes: 1 addition & 1 deletion src/references.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/// <reference path="./node_modules/@nativescript/types-ios/index.d.ts" />
/// <reference path="./node_modules/@nativescript/types-android/index.d.ts" />
/// <reference path="./node_modules/@nativescript/types-android/lib/android-29.d.ts" />
/// <reference path="./typings/objc!OMGHTTPURLRQ.d.ts" />
40 changes: 0 additions & 40 deletions src/scripts/build-native.js

This file was deleted.

20 changes: 13 additions & 7 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"target": "ES2017",
"module": "esnext",
"moduleResolution": "node",
"declaration": true,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"lib": ["es6", "dom"],
"lib": ["es2017", "dom"],
"sourceMap": true,
"pretty": true,
"allowUnreachableCode": false,
Expand All @@ -18,12 +19,17 @@
"noImplicitAny": false,
"noImplicitReturns": true,
"noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"baseUrl": ".",
"plugins": [
{
"transform": "@nativescript/webpack/dist/transformers/NativeClass",
"type": "raw"
}
]
},
"exclude": [
"node_modules"
],
"include": ["*.ios.ts", "*.android.ts"],
"files": ["./references.d.ts"],
"compileOnSave": false
}
}

0 comments on commit 2693d9d

Please sign in to comment.