Skip to content

Commit 1927a57

Browse files
committed
Fix build
1 parent 6dcfbdc commit 1927a57

File tree

9 files changed

+2042
-4841
lines changed

9 files changed

+2042
-4841
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as i0 from "@angular/core";
22
import * as i1 from "@angular/common/http";
33
export declare class NativeScriptHttpClientModule {
4-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<NativeScriptHttpClientModule, never, [typeof i1.HttpClientModule], [typeof i1.HttpClientModule]>;
5-
static ɵinj: i0.ɵɵInjectorDef<NativeScriptHttpClientModule>;
4+
static ɵfac: i0.ɵɵFactoryDeclaration<NativeScriptHttpClientModule, never>;
5+
static ɵmod: i0.ɵɵNgModuleDeclaration<NativeScriptHttpClientModule, never, [typeof i1.HttpClientModule], [typeof i1.HttpClientModule]>;
6+
static ɵinj: i0.ɵɵInjectorDeclaration<NativeScriptHttpClientModule>;
67
}

src/angular/ns-http-backend.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export declare class NsHttpBackEnd extends HttpXhrBackend {
88
constructor(xhrFactory: NSHTTPXhr, nsFileSystem: NSFileSystem);
99
handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
1010
private handleLocalFileRequest;
11-
static ɵfac: i0.ɵɵFactoryDef<NsHttpBackEnd, never>;
12-
static ɵprov: i0.ɵɵInjectableDef<NsHttpBackEnd>;
11+
static ɵfac: i0.ɵɵFactoryDeclaration<NsHttpBackEnd, never>;
12+
static ɵprov: i0.ɵɵInjectableDeclaration<NsHttpBackEnd>;
1313
}

src/angular/xhr.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ export declare class NSHTTPXMLHttpRequest {
5050
export declare class NSHTTPXhr implements XhrFactory {
5151
constructor();
5252
build(): any;
53-
static ɵfac: i0.ɵɵFactoryDef<NSHTTPXhr, never>;
54-
static ɵprov: i0.ɵɵInjectableDef<NSHTTPXhr>;
53+
static ɵfac: i0.ɵɵFactoryDeclaration<NSHTTPXhr, never>;
54+
static ɵprov: i0.ɵɵInjectableDeclaration<NSHTTPXhr>;
5555
}

src/http.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export function buildJavaOptions(options: HttpRequestOptions) {
257257
} else if (value instanceof ArrayBuffer) {
258258
const typedArray = new Uint8Array(value as ArrayBuffer);
259259
const nativeBuffer = java.nio.ByteBuffer.wrap(Array.from(typedArray));
260-
builder.addFormDataPart(key, null, okhttp3.RequestBody.create(nativeBuffer.array(), null));
260+
builder.addFormDataPart(key, null, okhttp3.RequestBody.create(null, nativeBuffer.array()));
261261
} else if (value instanceof Blob) {
262262
let formDataPartMediaType = null;
263263
if (value.type) {

0 commit comments

Comments
 (0)