|
3 | 3 | # Example lane for building iOS app with Instabug reporting
|
4 | 4 | lane :build_ios_app do |options|
|
5 | 5 | branch_name = options[:branch_name]
|
6 |
| - |
| 6 | + |
7 | 7 | instabug_build_ios_app(
|
8 |
| - branch_name: branch_name, |
9 |
| - instabug_api_key: ENV["INSTABUG_API_KEY"], |
| 8 | + branch_name:, |
| 9 | + instabug_api_key: ENV.fetch("INSTABUG_API_KEY", nil), |
10 | 10 | # All standard build_ios_app parameters are supported
|
11 | 11 | workspace: "MyApp.xcworkspace",
|
12 | 12 | scheme: "MyApp",
|
|
18 | 18 | # Example lane for building Android app with Instabug reporting
|
19 | 19 | lane :build_android_app do |options|
|
20 | 20 | branch_name = options[:branch_name]
|
21 |
| - |
| 21 | + |
22 | 22 | instabug_build_android_app(
|
23 |
| - branch_name: branch_name, |
24 |
| - instabug_api_key: ENV["INSTABUG_API_KEY"], |
| 23 | + branch_name:, |
| 24 | + instabug_api_key: ENV.fetch("INSTABUG_API_KEY", nil), |
25 | 25 | # All standard gradle parameters are supported
|
26 | 26 | task: "assembleRelease",
|
27 | 27 | project_dir: "android/",
|
28 | 28 | properties: {
|
29 | 29 | "android.injected.signing.store.file" => "keystore.jks",
|
30 |
| - "android.injected.signing.store.password" => ENV["KEYSTORE_PASSWORD"], |
| 30 | + "android.injected.signing.store.password" => ENV.fetch("KEYSTORE_PASSWORD", nil), |
31 | 31 | "android.injected.signing.key.alias" => "key0",
|
32 |
| - "android.injected.signing.key.password" => ENV["KEY_PASSWORD"] |
| 32 | + "android.injected.signing.key.password" => ENV.fetch("KEY_PASSWORD", nil) |
33 | 33 | }
|
34 | 34 | )
|
35 | 35 | end
|
36 | 36 |
|
37 | 37 | # Example lane for uploading to App Store with Instabug reporting
|
38 | 38 | lane :upload_to_app_store do |options|
|
39 | 39 | branch_name = options[:branch_name]
|
40 |
| - |
| 40 | + |
41 | 41 | instabug_upload_to_app_store(
|
42 |
| - branch_name: branch_name, |
43 |
| - instabug_api_key: ENV["INSTABUG_API_KEY"], |
| 42 | + branch_name:, |
| 43 | + instabug_api_key: ENV.fetch("INSTABUG_API_KEY", nil), |
44 | 44 | # All standard upload_to_app_store parameters are supported
|
45 | 45 | ipa: "path/to/your/app.ipa",
|
46 | 46 | skip_waiting_for_build_processing: true
|
47 | 47 | )
|
48 | 48 | end
|
49 | 49 |
|
50 |
| -# Example lane for uploading to Play Store with Instabug reporting |
| 50 | +# Example lane for uploading to Play Store with Instabug reporting |
51 | 51 | lane :upload_to_play_store do |options|
|
52 |
| - branch_name = options[:branch_name] |
53 |
| - |
| 52 | + branch_name = options[:branch_name] |
| 53 | + |
54 | 54 | instabug_upload_to_play_store(
|
55 |
| - branch_name: branch_name, |
56 |
| - instabug_api_key: ENV["INSTABUG_API_KEY"], |
| 55 | + branch_name:, |
| 56 | + instabug_api_key: ENV.fetch("INSTABUG_API_KEY", nil), |
57 | 57 | # All standard upload_to_play_store parameters are supported
|
58 | 58 | aab: "path/to/your/app.aab",
|
59 | 59 | track: "internal"
|
|
0 commit comments