1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use bundletool;
use crate*;
use ;
/// ## Generate and use device specification JSON files
///
/// `Bundletool` is capable of generating an APK set that targets a device configuration
/// specified by a JSON file. To first generate a JSON file for a connected device, run
/// the following command:
///
/// ```sh
/// `bundletool get-device-spec --output=/tmp/device-spec.json`
/// ```
///
/// `bundletool` creates a JSON file for your device in the directory the tool is located.
/// You can then pass it to `bundletool` to generate a set of APKs that target only the
/// configuration described in that JSON file as follows:
///
/// ```sh
/// `bundletool build-apks --device-spec=/MyApp/pixel2.json`
/// `--bundle=/MyApp/my_app.aab --output=/MyApp/my_app.apks`
/// ```