NativeScript / NativeScript/nativescript-cli

Replace check for emulator package with check for sdkmanager

Offen
#5,756 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

feature
Vorherrschende Sprache
JavaScript
Sterne
1.1k
Forks
204
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
8

Beschreibung

Is your feature request related to a problem? Please describe.

In our case, we only have the emulator package installed for tests and not for the build job. This causes an error “✖WARNING: The Android SDK is not installed or is not configured properly”. CI builds are often run inside containers, and it may not make sense to have an emulator because nested virtualization may not be supported. So now we are made to install the emulator inside a Docker image even though you don’t need an emulator to build an Android binary.

Describe the solution you'd like

It might be more effective to check for the sdkmanager in order to validate whether the Android SDK has been properly installed. The sdkmanager could have the ability to install the emulator if it is missing and required.

Describe alternatives you've considered

Our solution has been to create a workaround in which there is a file that mimics the emulator in order to avoid the error mentioned above.

Anything else?

I hope to contribute to this issue and am actively looking to solve it if approved.

Please accept these terms

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die vorhandene Validierung von Android SDK und Emulator in der CLI zu finden, und ermittle anschließend, wie sdkmanager erkannt oder aufgerufen wird. Als abgeschlossen gilt die Änderung, wenn Android-Builds das Emulator-Paket nicht mehr benötigen, die Installation des Emulators aber weiterhin verfügbar ist, wenn sie tatsächlich erforderlich ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
android, javascript
Bereich
cli, mobile-dev
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.