Files
Alexander Vakrilov cc97a16800 feat: Scoped Packages (#7911)
* chore: move tns-core-modules to nativescript-core

* chore: preparing compat generate script

* chore: add missing definitions

* chore: no need for http-request to be private

* chore: packages chore

* test: generate tests for tns-core-modules

* chore: add anroid module for consistency

* chore: add .npmignore

* chore: added privateModulesWhitelist

* chore(webpack): added bundle-entry-points

* chore: scripts

* chore: tests changed to use @ns/core

* test: add scoped-packages test project

* test: fix types

* test: update test project

* chore: build scripts

* chore: update build script

* chore: npm scripts cleanup

* chore: make the compat pgk work with old wp config

* test: generate diff friendly tests

* chore: create barrel exports

* chore: move files after rebase

* chore: typedoc config

* chore: compat mode

* chore: review of barrels

* chore: remove tns-core-modules import after rebase

* chore: dev workflow setup

* chore: update developer-workflow

* docs: experiment with API extractor

* chore: api-extractor and barrel exports

* chore: api-extractor configs

* chore: generate d.ts rollup with api-extractor

* refactor: move methods inside Frame

* chore: fic tests to use Frame static methods

* refactor: create Builder class

* refactor: use Builder class in tests

* refactor: include Style in ui barrel

* chore: separate compat build script

* chore: fix tslint errors

* chore: update NATIVESCRIPT_CORE_ARGS

* chore: fix compat pack

* chore: fix ui-test-app build with linked modules

* chore: Application, ApplicationSettings, Connectivity and Http

* chore: export Trace, Profiling and Utils

* refactor: Static create methods for ImageSource

* chore: fix deprecated usages of ImageSource

* chore: move Span and FormattedString to ui

* chore: add events-args and ImageSource to index files

* chore: check for CLI >= 6.2 when building for IOS

* chore: update travis build

* chore: copy Pod file to compat package

* chore: update error msg ui-tests-app

* refactor: Apply suggestions from code review

Co-Authored-By: Martin Yankov <m.i.yankov@gmail.com>

* chore: typings and refs

* chore: add missing d.ts files for public API

* chore: adress code review FB

* chore: update api-report

* chore: dev-workflow for other apps

* chore: api update

* chore: update api-report
2019-10-17 00:45:33 +03:00

116 lines
4.4 KiB
TypeScript

/// <reference path="./tns-core-modules.d.ts" />
// Export all interfaces from "application" module
export {
ApplicationEventData, LaunchEventData, OrientationChangedEventData,
UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData,
iOSApplication, AndroidApplication,
AndroidActivityEventData, AndroidActivityBundleEventData,
AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData,
AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData,
} from "./application";
// Export all methods and fields from "application" as Application
import {
launchEvent, displayedEvent, uncaughtErrorEvent, discardedErrorEvent,
suspendEvent, resumeEvent, exitEvent, lowMemoryEvent, orientationChangedEvent,
getMainEntry, getRootView, setResources, setCssFileName, getCssFileName, loadAppCss, addCss,
on, off, run, orientation, getNativeApplication, hasLaunched,
android, ios,
} from "./application";
export const Application = {
launchEvent, displayedEvent, uncaughtErrorEvent, discardedErrorEvent,
suspendEvent, resumeEvent, exitEvent, lowMemoryEvent, orientationChangedEvent,
getMainEntry, getRootView, setResources, setCssFileName, getCssFileName, loadAppCss, addCss,
on, off, run, orientation, getNativeApplication, hasLaunched,
android, ios,
};
// Export all methods from "application-settings" as ApplicationSettings
import { setString, getString, clear, flush, getAllKeys, getBoolean, getNumber, hasKey, remove, setBoolean, setNumber } from "./application-settings";
export const ApplicationSettings = { clear, flush, hasKey, remove, setString, getString, getAllKeys, getBoolean, setBoolean, getNumber, setNumber };
export { Color } from "./color";
import { connectionType, getConnectionType, startMonitoring, stopMonitoring } from "./connectivity";
export const Connectivity = { connectionType, getConnectionType, startMonitoring, stopMonitoring };
export { ObservableArray, ChangeType, ChangedData } from "./data/observable-array";
export { Observable, PropertyChangeData, EventData } from "./data/observable";
export { File, FileSystemEntity, Folder, knownFolders, path } from "./file-system";
// Export all interfaces from "http" module
export { HttpRequestOptions, HttpResponse, Headers, HttpResponseEncoding, HttpContent } from "./http";
// Export all methods from "http" as ApplicationSettings
import { getFile, getImage, getJSON, getString as httpGetString, request } from "./http";
export const Http = { getFile, getImage, getJSON, getString: httpGetString, request };
export { ImageAsset, ImageAssetOptions } from "./image-asset";
export { ImageSource } from "./image-source";
export { isAndroid, isIOS, screen as Screen, device as Device } from "./platform";
// Export interfaces from "profiling" module
export { InstrumentationMode, TimerInfo } from "./profiling";
// Export methods from "profiling" module
import {
enable as profilingEnable, disable as profilingDisable,
time, uptime,
start, stop, isRunning,
dumpProfiles, resetProfiles,
profile, startCPUProfile, stopCPUProfile,
} from "./profiling";
export const Profiling = {
enable: profilingEnable,
disable: profilingDisable,
time, uptime,
start, stop, isRunning,
dumpProfiles, resetProfiles,
profile, startCPUProfile, stopCPUProfile,
};
export { encoding } from "./text";
export { DefaultErrorHandler, ErrorHandler, TraceWriter } from "./trace";
import {
messageType, categories, setCategories, addCategories,
addWriter, removeWriter, clearWriters,
setErrorHandler,
write, error, enable, disable, isEnabled
} from "./trace";
export const Trace = {
messageType, categories, setCategories, addCategories,
addWriter, removeWriter, clearWriters,
setErrorHandler,
write, error, enable, disable, isEnabled
};
export * from "./ui"; // Barrel export
import {
GC, isFontIconURI, isDataURI, isFileOrResourcePath,
executeOnMainThread, mainThreadify, isMainThread, dispatchToMainThread, releaseNativeObject,
getModuleName,
openFile, openUrl,
layout, ad as androidUtils, ios as iosUtils
} from "./utils/utils";
export const Utils = {
GC, isFontIconURI, isDataURI, isFileOrResourcePath,
executeOnMainThread, mainThreadify, isMainThread, dispatchToMainThread, releaseNativeObject,
getModuleName,
openFile, openUrl,
layout, android: androidUtils, ios: iosUtils
};
export { XmlParser, ParserEventType, ParserEvent } from "./xml";