microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/extension/android/androidPlatform.ts
384lines · modeblame
52f3873ddigeff10 years ago | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. | |
| 3 | | |
df8c800dArtem Egorov8 years ago | 4 | import * as semver from "semver"; |
4cd25962JiglioNero4 years ago | 5 | import { MobilePlatformDeps, TargetType } from "../generalPlatform"; |
8df5011eYuri Skorokhodov5 years ago | 6 | import { IAndroidRunOptions, PlatformType } from "../launchArgs"; |
| 7 | import { Package } from "../../common/node/package"; | |
| 8 | import { PackageNameResolver } from "./packageNameResolver"; | |
| 9 | import { OutputVerifier, PatternToFailure } from "../../common/outputVerifier"; | |
| 10 | import { TelemetryHelper } from "../../common/telemetryHelper"; | |
| 11 | import { CommandExecutor } from "../../common/commandExecutor"; | |
| 12 | import { LogCatMonitor } from "./logCatMonitor"; | |
d7d405aeYuri Skorokhodov7 years ago | 13 | import * as nls from "vscode-nls"; |
| 14 | import { InternalErrorCode } from "../../common/error/internalErrorCode"; | |
| 15 | import { ErrorHelper } from "../../common/error/errorHelper"; | |
4bb0956eRedMickey5 years ago | 16 | import { notNullOrUndefined } from "../../common/utils"; |
ce5e88eeYuri Skorokhodov5 years ago | 17 | import { PromiseUtil } from "../../common/node/promise"; |
8df5011eYuri Skorokhodov5 years ago | 18 | import { LogCatMonitorManager } from "./logCatMonitorManager"; |
4cd25962JiglioNero4 years ago | 19 | import { AndroidTarget, AndroidTargetManager } from "./androidTargetManager"; |
| 20 | import { AdbHelper, AndroidAPILevel } from "./adb"; | |
| 21 | import { GeneralMobilePlatform } from "../generalMobilePlatform"; | |
34472878RedMickey5 years ago | 22 | nls.config({ |
| 23 | messageFormat: nls.MessageFormat.bundle, | |
| 24 | bundleFormat: nls.BundleFormat.standalone, | |
| 25 | })(); | |
d7d405aeYuri Skorokhodov7 years ago | 26 | const localize = nls.loadMessageBundle(); |
5c8365a6Artem Egorov8 years ago | 27 | |
52f3873ddigeff10 years ago | 28 | /** |
| 29 | * Android specific platform implementation for debugging RN applications. | |
| 30 | */ | |
299b0557Patricio Beltran10 years ago | 31 | export class AndroidPlatform extends GeneralMobilePlatform { |
0a68f8dbArtem Egorov8 years ago | 32 | // We should add the common Android build/run errors we find to this list |
34472878RedMickey5 years ago | 33 | private static RUN_ANDROID_FAILURE_PATTERNS: PatternToFailure[] = [ |
| 34 | { | |
| 35 | pattern: "Failed to install on any devices", | |
| 36 | errorCode: InternalErrorCode.AndroidCouldNotInstallTheAppOnAnyAvailibleDevice, | |
| 37 | }, | |
| 38 | { | |
| 39 | pattern: "com.android.ddmlib.ShellCommandUnresponsiveException", | |
| 40 | errorCode: InternalErrorCode.AndroidShellCommandTimedOut, | |
| 41 | }, | |
| 42 | { | |
| 43 | pattern: "Android project not found", | |
| 44 | errorCode: InternalErrorCode.AndroidProjectNotFound, | |
| 45 | }, | |
| 46 | { | |
| 47 | pattern: "error: more than one device/emulator", | |
| 48 | errorCode: InternalErrorCode.AndroidMoreThanOneDeviceOrEmulator, | |
| 49 | }, | |
| 50 | { | |
| 51 | pattern: /^Error: Activity class \{.*\} does not exist\.$/m, | |
| 52 | errorCode: InternalErrorCode.AndroidFailedToLaunchTheSpecifiedActivity, | |
| 53 | }, | |
| 54 | ]; | |
| 55 | | |
| 56 | private static RUN_ANDROID_SUCCESS_PATTERNS: string[] = [ | |
| 57 | "BUILD SUCCESSFUL", | |
| 58 | "Starting the app", | |
| 59 | "Starting: Intent", | |
| 60 | ]; | |
52f3873ddigeff10 years ago | 61 | |
| 62 | private packageName: string; | |
db6fd42aRuslan Bikkinin7 years ago | 63 | private adbHelper: AdbHelper; |
8df5011eYuri Skorokhodov5 years ago | 64 | private logCatMonitor: LogCatMonitor | null = null; |
52f3873ddigeff10 years ago | 65 | private needsToLaunchApps: boolean = false; |
db6fd42aRuslan Bikkinin7 years ago | 66 | |
4cd25962JiglioNero4 years ago | 67 | protected targetManager: AndroidTargetManager; |
| 68 | protected target?: AndroidTarget; | |
52f3873ddigeff10 years ago | 69 | |
299b0557Patricio Beltran10 years ago | 70 | // We set remoteExtension = null so that if there is an instance of androidPlatform that wants to have it's custom remoteExtension it can. This is specifically useful for tests. |
7daed3fcArtem Egorov8 years ago | 71 | constructor(protected runOptions: IAndroidRunOptions, platformDeps: MobilePlatformDeps = {}) { |
0a68f8dbArtem Egorov8 years ago | 72 | super(runOptions, platformDeps); |
4dfb1c4cetatanova5 years ago | 73 | this.adbHelper = new AdbHelper( |
| 74 | this.runOptions.projectRoot, | |
| 75 | runOptions.nodeModulesRoot, | |
| 76 | this.logger, | |
| 77 | ); | |
4cd25962JiglioNero4 years ago | 78 | this.targetManager = new AndroidTargetManager(this.adbHelper); |
db6fd42aRuslan Bikkinin7 years ago | 79 | } |
43e1a996Ruslan Bikkinin7 years ago | 80 | |
4cd25962JiglioNero4 years ago | 81 | public showDevMenu(deviceId?: string): Promise<void> { |
| 82 | return this.adbHelper.showDevMenu(deviceId); | |
52f3873ddigeff10 years ago | 83 | } |
| 84 | | |
4cd25962JiglioNero4 years ago | 85 | public reloadApp(deviceId?: string): Promise<void> { |
| 86 | return this.adbHelper.reloadApp(deviceId); | |
| 87 | } | |
| 88 | | |
| 89 | public async getTarget(): Promise<AndroidTarget> { | |
| 90 | if (!this.target) { | |
| 91 | const onlineTargets = await this.adbHelper.getOnlineTargets(); | |
| 92 | const target = await this.getTargetFromRunArgs(); | |
| 93 | if (target) { | |
| 94 | this.target = target; | |
| 95 | } else { | |
| 96 | const onlineTargetsBySpecifiedType = onlineTargets.filter(target => { | |
| 97 | switch (this.runOptions.target) { | |
| 98 | case TargetType.Simulator: | |
| 99 | return target.isVirtualTarget; | |
| 100 | case TargetType.Device: | |
| 101 | return !target.isVirtualTarget; | |
| 102 | case undefined: | |
| 103 | case "": | |
| 104 | return true; | |
| 105 | default: | |
| 106 | return target.id === this.runOptions.target; | |
| 107 | } | |
| 108 | }); | |
| 109 | if (onlineTargetsBySpecifiedType.length) { | |
| 110 | this.target = AndroidTarget.fromInterface(onlineTargetsBySpecifiedType[0]); | |
| 111 | } else if (onlineTargets.length) { | |
| 112 | this.logger.warning( | |
| 113 | localize( | |
| 114 | "ThereIsNoOnlineTargetWithSpecifiedTargetType", | |
| 115 | "There is no any online target with specified target type '{0}'. Continue with any online target.", | |
| 116 | this.runOptions.target, | |
| 117 | ), | |
| 118 | ); | |
| 119 | this.target = AndroidTarget.fromInterface(onlineTargets[0]); | |
| 120 | } else { | |
| 121 | throw ErrorHelper.getInternalError( | |
| 122 | InternalErrorCode.AndroidThereIsNoAnyOnlineDebuggableTarget, | |
| 123 | ); | |
| 124 | } | |
0d77292aJiglioNero4 years ago | 125 | } |
68a5b8d5JiglioNero5 years ago | 126 | } |
4cd25962JiglioNero4 years ago | 127 | return this.target; |
68a5b8d5JiglioNero5 years ago | 128 | } |
| 129 | | |
0d77292aJiglioNero4 years ago | 130 | public async runApp(shouldLaunchInAllDevices: boolean = false): Promise<void> { |
549baae2RedMickey6 years ago | 131 | let extProps: any = { |
031832ffArtem Egorov8 years ago | 132 | platform: { |
259c018fYuri Skorokhodov5 years ago | 133 | value: PlatformType.Android, |
031832ffArtem Egorov8 years ago | 134 | isPii: false, |
| 135 | }, | |
| 136 | }; | |
| 137 | | |
549baae2RedMickey6 years ago | 138 | if (this.runOptions.isDirect) { |
| 139 | extProps.isDirect = { | |
| 140 | value: true, | |
| 141 | isPii: false, | |
| 142 | }; | |
e7a2c40dRedMickey4 years ago | 143 | this.projectObserver?.updateRNAndroidHermesProjectState(true); |
549baae2RedMickey6 years ago | 144 | } |
| 145 | | |
34472878RedMickey5 years ago | 146 | extProps = TelemetryHelper.addPlatformPropertiesToTelemetryProperties( |
| 147 | this.runOptions, | |
| 148 | this.runOptions.reactNativeVersions, | |
| 149 | extProps, | |
| 150 | ); | |
ba953e9fRedMickey6 years ago | 151 | |
0d77292aJiglioNero4 years ago | 152 | await TelemetryHelper.generate("AndroidPlatform.runApp", extProps, async () => { |
34472878RedMickey5 years ago | 153 | const env = GeneralMobilePlatform.getEnvArgument( |
| 154 | process.env, | |
| 155 | this.runOptions.env, | |
| 156 | this.runOptions.envFile, | |
| 157 | ); | |
78c2b4deRedMickey6 years ago | 158 | |
e3706a1cRedMickey6 years ago | 159 | if ( |
34472878RedMickey5 years ago | 160 | !semver.valid( |
| 161 | this.runOptions.reactNativeVersions.reactNativeVersion, | |
| 162 | ) /*Custom RN implementations should support this flag*/ || | |
| 163 | semver.gte( | |
| 164 | this.runOptions.reactNativeVersions.reactNativeVersion, | |
| 165 | AndroidPlatform.NO_PACKAGER_VERSION, | |
| 166 | ) | |
e3706a1cRedMickey6 years ago | 167 | ) { |
| 168 | this.runArguments.push("--no-packager"); | |
| 169 | } | |
| 170 | | |
34472878RedMickey5 years ago | 171 | let mainActivity = GeneralMobilePlatform.getOptFromRunArgs( |
| 172 | this.runArguments, | |
| 173 | "--main-activity", | |
| 174 | ); | |
e3706a1cRedMickey6 years ago | 175 | |
| 176 | if (mainActivity) { | |
| 177 | this.adbHelper.setLaunchActivity(mainActivity); | |
4bb0956eRedMickey5 years ago | 178 | } else if (notNullOrUndefined(this.runOptions.debugLaunchActivity)) { |
e3706a1cRedMickey6 years ago | 179 | this.runArguments.push("--main-activity", this.runOptions.debugLaunchActivity); |
| 180 | this.adbHelper.setLaunchActivity(this.runOptions.debugLaunchActivity); | |
| 181 | } | |
| 182 | | |
34472878RedMickey5 years ago | 183 | const runAndroidSpawn = new CommandExecutor( |
4dfb1c4cetatanova5 years ago | 184 | this.runOptions.nodeModulesRoot, |
34472878RedMickey5 years ago | 185 | this.projectPath, |
| 186 | this.logger, | |
| 187 | ).spawnReactCommand("run-android", this.runArguments, { env }); | |
e3706a1cRedMickey6 years ago | 188 | const output = new OutputVerifier( |
34472878RedMickey5 years ago | 189 | () => Promise.resolve(AndroidPlatform.RUN_ANDROID_SUCCESS_PATTERNS), |
| 190 | () => Promise.resolve(AndroidPlatform.RUN_ANDROID_FAILURE_PATTERNS), | |
| 191 | PlatformType.Android, | |
| 192 | ).process(runAndroidSpawn); | |
e3706a1cRedMickey6 years ago | 193 | |
4cd25962JiglioNero4 years ago | 194 | let devicesIdsForLaunch: string[] = []; |
| 195 | const onlineTargetsIds = (await this.adbHelper.getOnlineTargets()).map( | |
| 196 | target => target.id, | |
| 197 | ); | |
| 198 | let targetId: string | undefined; | |
0d77292aJiglioNero4 years ago | 199 | try { |
| 200 | try { | |
| 201 | await output; | |
| 202 | } finally { | |
4cd25962JiglioNero4 years ago | 203 | targetId = await this.getTargetIdForRunApp(onlineTargetsIds); |
| 204 | this.packageName = await this.getPackageName(); | |
| 205 | devicesIdsForLaunch = [targetId]; | |
0d77292aJiglioNero4 years ago | 206 | } |
| 207 | } catch (error) { | |
4cd25962JiglioNero4 years ago | 208 | if (!targetId) { |
| 209 | targetId = await this.getTargetIdForRunApp(onlineTargetsIds); | |
| 210 | } | |
0d77292aJiglioNero4 years ago | 211 | if ( |
| 212 | error.message === | |
| 213 | ErrorHelper.getInternalError( | |
| 214 | InternalErrorCode.AndroidMoreThanOneDeviceOrEmulator, | |
| 215 | ).message && | |
4cd25962JiglioNero4 years ago | 216 | onlineTargetsIds.length >= 1 && |
| 217 | targetId | |
0d77292aJiglioNero4 years ago | 218 | ) { |
| 219 | /* If it failed due to multiple devices, we'll apply this workaround to make it work anyways */ | |
| 220 | this.needsToLaunchApps = true; | |
4cd25962JiglioNero4 years ago | 221 | devicesIdsForLaunch = shouldLaunchInAllDevices ? onlineTargetsIds : [targetId]; |
0d77292aJiglioNero4 years ago | 222 | } else { |
| 223 | throw error; | |
| 224 | } | |
| 225 | } | |
| 226 | | |
4cd25962JiglioNero4 years ago | 227 | await PromiseUtil.forEach(devicesIdsForLaunch, deviceId => |
| 228 | this.launchAppWithADBReverseAndLogCat(deviceId), | |
0d77292aJiglioNero4 years ago | 229 | ); |
52f3873ddigeff10 years ago | 230 | }); |
| 231 | } | |
| 232 | | |
4cd25962JiglioNero4 years ago | 233 | public async enableJSDebuggingMode(): Promise<void> { |
34472878RedMickey5 years ago | 234 | return this.adbHelper.switchDebugMode( |
| 235 | this.runOptions.projectRoot, | |
| 236 | this.packageName, | |
| 237 | true, | |
4cd25962JiglioNero4 years ago | 238 | (await this.getTarget()).id, |
69ad2ab3RedMickey5 years ago | 239 | this.getAppIdSuffixFromRunArgumentsIfExists(), |
34472878RedMickey5 years ago | 240 | ); |
b57ea017Artem Egorov8 years ago | 241 | } |
| 242 | | |
4cd25962JiglioNero4 years ago | 243 | public async disableJSDebuggingMode(): Promise<void> { |
34472878RedMickey5 years ago | 244 | return this.adbHelper.switchDebugMode( |
| 245 | this.runOptions.projectRoot, | |
| 246 | this.packageName, | |
| 247 | false, | |
4cd25962JiglioNero4 years ago | 248 | (await this.getTarget()).id, |
69ad2ab3RedMickey5 years ago | 249 | this.getAppIdSuffixFromRunArgumentsIfExists(), |
34472878RedMickey5 years ago | 250 | ); |
52f3873ddigeff10 years ago | 251 | } |
| 252 | | |
ce5e88eeYuri Skorokhodov5 years ago | 253 | public prewarmBundleCache(): Promise<void> { |
259c018fYuri Skorokhodov5 years ago | 254 | return this.packager.prewarmBundleCache(PlatformType.Android); |
299b0557Patricio Beltran10 years ago | 255 | } |
| 256 | | |
cbc7ac5bArtem Egorov7 years ago | 257 | public getRunArguments(): string[] { |
8022afdfVladimir Kotikov8 years ago | 258 | let runArguments: string[] = []; |
| 259 | | |
8df5011eYuri Skorokhodov5 years ago | 260 | if (this.runOptions.runArguments && this.runOptions.runArguments.length > 0) { |
8022afdfVladimir Kotikov8 years ago | 261 | runArguments = this.runOptions.runArguments; |
| 262 | } else { | |
| 263 | if (this.runOptions.variant) { | |
| 264 | runArguments.push("--variant", this.runOptions.variant); | |
| 265 | } | |
| 266 | if (this.runOptions.target) { | |
34472878RedMickey5 years ago | 267 | if ( |
4cd25962JiglioNero4 years ago | 268 | this.runOptions.target !== TargetType.Device && |
| 269 | this.runOptions.target !== TargetType.Simulator | |
34472878RedMickey5 years ago | 270 | ) { |
cbc7ac5bArtem Egorov7 years ago | 271 | runArguments.push("--deviceId", this.runOptions.target); |
| 272 | } | |
8022afdfVladimir Kotikov8 years ago | 273 | } |
| 274 | } | |
| 275 | | |
| 276 | return runArguments; | |
| 277 | } | |
| 278 | | |
34472878RedMickey5 years ago | 279 | public dispose(): void { |
8df5011eYuri Skorokhodov5 years ago | 280 | if (this.logCatMonitor) { |
| 281 | LogCatMonitorManager.delMonitor(this.logCatMonitor.deviceId); | |
| 282 | this.logCatMonitor = null; | |
| 283 | } | |
| 284 | } | |
| 285 | | |
4cd25962JiglioNero4 years ago | 286 | public async getTargetFromRunArgs(): Promise<AndroidTarget | undefined> { |
| 287 | if (this.runOptions.runArguments && this.runOptions.runArguments.length) { | |
| 288 | const deviceId = GeneralMobilePlatform.getOptFromRunArgs( | |
| 289 | this.runOptions.runArguments, | |
| 290 | "--deviceId", | |
| 291 | ); | |
| 292 | if (deviceId) { | |
| 293 | return new AndroidTarget(true, this.adbHelper.isVirtualTarget(deviceId), deviceId); | |
| 294 | } | |
| 295 | } | |
| 296 | return undefined; | |
| 297 | } | |
| 298 | | |
| 299 | private async getTargetIdForRunApp(onlineTargetsIds: string[]): Promise<string> { | |
| 300 | let deviceId: string | undefined; | |
| 301 | if (this.runOptions.runArguments && this.runOptions.runArguments.length) { | |
| 302 | deviceId = GeneralMobilePlatform.getOptFromRunArgs( | |
| 303 | this.runOptions.runArguments, | |
| 304 | "--deviceId", | |
| 305 | ); | |
| 306 | } | |
| 307 | return deviceId | |
| 308 | ? deviceId | |
| 309 | : this.runOptions.target && | |
| 310 | this.runOptions.target !== TargetType.Simulator && | |
| 311 | this.runOptions.target !== TargetType.Device && | |
| 312 | onlineTargetsIds.find(id => id === this.runOptions.target) | |
| 313 | ? this.runOptions.target | |
| 314 | : (await this.getTarget()).id; | |
| 315 | } | |
| 316 | | |
69ad2ab3RedMickey5 years ago | 317 | private getAppIdSuffixFromRunArgumentsIfExists(): string | undefined { |
| 318 | const appIdSuffixIndex = this.runArguments.indexOf("--appIdSuffix"); | |
| 319 | if (appIdSuffixIndex > -1) { | |
| 320 | return this.runArguments[appIdSuffixIndex + 1]; | |
| 321 | } | |
| 322 | return undefined; | |
| 323 | } | |
| 324 | | |
4cd25962JiglioNero4 years ago | 325 | private async launchAppWithADBReverseAndLogCat(deviceId: string): Promise<void> { |
| 326 | await this.configureADBReverseWhenApplicable(deviceId); | |
0d77292aJiglioNero4 years ago | 327 | if (this.needsToLaunchApps) { |
4cd25962JiglioNero4 years ago | 328 | await this.adbHelper.launchApp(this.runOptions.projectRoot, this.packageName, deviceId); |
0d77292aJiglioNero4 years ago | 329 | } |
4cd25962JiglioNero4 years ago | 330 | return this.startMonitoringLogCat(deviceId, this.runOptions.logCatArguments); |
52f3873ddigeff10 years ago | 331 | } |
| 332 | | |
4cd25962JiglioNero4 years ago | 333 | private async configureADBReverseWhenApplicable(deviceId: string): Promise<void> { |
0d77292aJiglioNero4 years ago | 334 | // For other emulators and devices we try to enable adb reverse |
4cd25962JiglioNero4 years ago | 335 | const apiVersion = await this.adbHelper.apiVersion(deviceId); |
0d77292aJiglioNero4 years ago | 336 | if (apiVersion >= AndroidAPILevel.LOLLIPOP) { |
| 337 | // If we support adb reverse | |
| 338 | try { | |
4cd25962JiglioNero4 years ago | 339 | this.adbHelper.reverseAdb(deviceId, Number(this.runOptions.packagerPort)); |
0d77292aJiglioNero4 years ago | 340 | } catch (error) { |
| 341 | // "adb reverse" command could work incorrectly with remote devices, then skip the error and try to go on | |
| 342 | if ( | |
4cd25962JiglioNero4 years ago | 343 | this.adbHelper.isRemoteTarget(deviceId) && |
0d77292aJiglioNero4 years ago | 344 | error.message.includes(AndroidPlatform.RUN_ANDROID_FAILURE_PATTERNS[3].pattern) |
| 345 | ) { | |
| 346 | this.logger.warning(error.message); | |
b57ea017Artem Egorov8 years ago | 347 | } else { |
0d77292aJiglioNero4 years ago | 348 | throw error; |
b57ea017Artem Egorov8 years ago | 349 | } |
0d77292aJiglioNero4 years ago | 350 | } |
| 351 | } else { | |
| 352 | this.logger.warning( | |
| 353 | localize( | |
| 354 | "DeviceSupportsOnlyAPILevel", | |
| 355 | "Device {0} supports only API Level {1}. \n Level {2} is needed to support port forwarding via adb reverse. \n For debugging to work you'll need <Shake or press menu button> for the dev menu, \n go into <Dev Settings> and configure <Debug Server host & port for Device> to be \n an IP address of your computer that the Device can reach. More info at: \n https://facebook.github.io/react-native/docs/debugging.html#debugging-react-native-apps", | |
4cd25962JiglioNero4 years ago | 356 | deviceId, |
0d77292aJiglioNero4 years ago | 357 | apiVersion, |
| 358 | AndroidAPILevel.LOLLIPOP, | |
| 359 | ), | |
| 360 | ); | |
| 361 | } | |
52f3873ddigeff10 years ago | 362 | } |
| 363 | | |
0d77292aJiglioNero4 years ago | 364 | private async getPackageName(): Promise<string> { |
| 365 | const appName = await new Package(this.runOptions.projectRoot).name(); | |
| 366 | return new PackageNameResolver(appName).resolvePackageName(this.runOptions.projectRoot); | |
52f3873ddigeff10 years ago | 367 | } |
| 368 | | |
4cd25962JiglioNero4 years ago | 369 | private startMonitoringLogCat(deviceId: string, logCatArguments: string[]): void { |
| 370 | LogCatMonitorManager.delMonitor(deviceId); // Stop previous logcat monitor if it's running | |
0a68f8dbArtem Egorov8 years ago | 371 | |
| 372 | // this.logCatMonitor can be mutated, so we store it locally too | |
4cd25962JiglioNero4 years ago | 373 | this.logCatMonitor = new LogCatMonitor(deviceId, this.adbHelper, logCatArguments); |
8df5011eYuri Skorokhodov5 years ago | 374 | LogCatMonitorManager.addMonitor(this.logCatMonitor); |
34472878RedMickey5 years ago | 375 | this.logCatMonitor |
| 376 | .start() // The LogCat will continue running forever, so we don't wait for it | |
| 377 | .catch(error => { | |
| 378 | this.logger.warning(error); | |
| 379 | this.logger.warning( | |
| 380 | localize("ErrorWhileMonitoringLogCat", "Error while monitoring LogCat"), | |
| 381 | ); | |
| 382 | }); // The LogCatMonitor failing won't stop the debugging experience | |
0a68f8dbArtem Egorov8 years ago | 383 | } |
ef902673Vladimir Kotikov9 years ago | 384 | } |