From 760b35e6b27f7b39c29827e6cc558c99db07a2a0 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 3 Jun 2024 12:35:21 +0300 Subject: Link to Android example in build instructions generator. --- build.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'build.html') diff --git a/build.html b/build.html index 4c198bd1a..619e6ff73 100644 --- a/build.html +++ b/build.html @@ -473,6 +473,9 @@ function getTarget(language, os) { return 'WebAssembly'; } if (os.includes('Android')) { + if (language === 'Dart') { + return 'AndroidJson'; + } return 'Android'; } if (os.includes('iOS') || os.includes('tvOS') || os.includes('visionOS') || os.includes('watchOS')) { @@ -495,6 +498,7 @@ function getTargetName(target) { case 'tdjson': case 'WebAssembly': case 'iOS': + case 'AndroidJson': return 'JSON'; case 'tdclient': return 'simple and convenient C++11'; @@ -524,9 +528,9 @@ function onOsChanged() { 'If you want to build it manually, take a look at our example.'; target = ''; } - if (target === 'Android') { - text = 'TDLib for Android is available in a prebuilt form and can be downloaded from there.
' + - 'See build instructions if you want to build the latest TDLib version or want to build TDLib with different interface.'; + if (target === 'Android' || target === 'AndroidJson') { + text = 'TDLib can be used from ' + language + ' on ' + os + ' through the ' + getTargetName(target) + ' interface.
' + + 'See Android example for the example of building TDLib for Android.
'; target = ''; } if (target === 'iOS') { -- cgit v1.2.3