import * as semver from "semver"; import * as projectServiceBaseLib from "./platform-project-service-base"; import { IProjectData, IProjectDataService, IValidatePlatformOutput } from "../definitions/project"; import { IPlatformData, IPlatformEnvironmentRequirements } from "../definitions/platform"; import { IAndroidToolsInfo, IAndroidResourcesMigrationService, IOptions, IDependencyData } from "../declarations"; import { IAndroidBuildData } from "../definitions/build"; import { IPluginData } from "../definitions/plugins"; import { IErrors, IFileSystem, IAnalyticsService, IRelease, ISpawnResult } from "../common/declarations"; import { IAndroidPluginBuildService } from "../definitions/android-plugin-migrator"; import { IFilesHashService } from "../definitions/files-hash-service"; import { IGradleCommandService, IGradleBuildService } from "../definitions/gradle"; import { IInjector } from "../common/definitions/yok"; import { INotConfiguredEnvOptions } from "../common/definitions/commands"; import { IProjectChangesInfo } from "../definitions/project-changes"; import { AndroidPrepareData } from "../data/prepare-data"; export declare class AndroidProjectService extends projectServiceBaseLib.PlatformProjectServiceBase implements IPlatformProjectService { private $androidToolsInfo; private $errors; private $logger; private $options; private $injector; private $devicePlatformsConstants; private $androidPluginBuildService; private $platformEnvironmentRequirements; private $androidResourcesMigrationService; private $liveSyncProcessDataService; private $devicesService; private $filesHashService; private $gradleCommandService; private $gradleBuildService; private $analyticsService; private static VALUES_DIRNAME; private static VALUES_VERSION_DIRNAME_PREFIX; private static ANDROID_PLATFORM_NAME; private static MIN_RUNTIME_VERSION_WITH_GRADLE; constructor($androidToolsInfo: IAndroidToolsInfo, $errors: IErrors, $fs: IFileSystem, $logger: ILogger, $projectDataService: IProjectDataService, $options: IOptions, $injector: IInjector, $devicePlatformsConstants: Mobile.IDevicePlatformsConstants, $androidPluginBuildService: IAndroidPluginBuildService, $platformEnvironmentRequirements: IPlatformEnvironmentRequirements, $androidResourcesMigrationService: IAndroidResourcesMigrationService, $liveSyncProcessDataService: ILiveSyncProcessDataService, $devicesService: Mobile.IDevicesService, $filesHashService: IFilesHashService, $gradleCommandService: IGradleCommandService, $gradleBuildService: IGradleBuildService, $analyticsService: IAnalyticsService); private _platformData; getPlatformData(projectData: IProjectData): IPlatformData; getCurrentPlatformVersion(platformData: IPlatformData, projectData: IProjectData): string; validateOptions(): Promise; getAppResourcesDestinationDirectoryPath(projectData: IProjectData): string; validate(projectData: IProjectData, options: IOptions, notConfiguredEnvOptions?: INotConfiguredEnvOptions): Promise; createProject(frameworkDir: string, frameworkVersion: string, projectData: IProjectData): Promise; private getResDestinationDir; private cleanResValues; interpolateData(projectData: IProjectData): Promise; interpolateConfigurationFile(projectData: IProjectData): void; private getProjectNameFromId; afterCreateProject(projectRoot: string): void; updatePlatform(currentVersion: string, newVersion: string, canUpdate: boolean, projectData: IProjectData, addPlatform?: Function, removePlatforms?: (platforms: string[]) => Promise): Promise; buildProject(projectRoot: string, projectData: IProjectData, buildData: IAndroidBuildData): Promise; buildForDeploy(projectRoot: string, projectData: IProjectData, buildData?: IAndroidBuildData): Promise; isPlatformPrepared(projectRoot: string, projectData: IProjectData): boolean; getFrameworkFilesExtensions(): string[]; prepareProject(): Promise; ensureConfigurationFileInAppResources(projectData: IProjectData): void; prepareAppResources(projectData: IProjectData): void; preparePluginNativeCode(pluginData: IPluginData, projectData: IProjectData): Promise; private getPluginsAbiFilters; processConfigurationFilesFromAppResources(): Promise; removePluginNativeCode(pluginData: IPluginData, projectData: IProjectData): Promise; beforePrepareAllPlugins(projectData: IProjectData, dependencies?: IDependencyData[]): Promise; handleNativeDependenciesChange(projectData: IProjectData, opts: IRelease): Promise; private filterUniqueDependencies; private provideDependenciesJson; private static isNativeAndroidDependency; stopServices(projectRoot: string): Promise; cleanProject(projectRoot: string): Promise; cleanDeviceTempFolder(deviceIdentifier: string, projectData: IProjectData): Promise; checkForChanges(changesInfo: IProjectChangesInfo, prepareData: AndroidPrepareData, projectData: IProjectData): Promise; getDeploymentTarget(projectData: IProjectData): semver.SemVer; private copy; private validatePackageName; private validateProjectName; private getLegacyAppResourcesDestinationDirPath; private getUpdatedAppResourcesDestinationDirPath; private cleanUpPreparedResources; private trackKotlinUsage; private tryGetAndroidBuildStatistics; }