|
26 | 26 | # Create the file names
|
27 | 27 | app = get_app_name_option!(options)
|
28 | 28 | version = android_get_release_version()
|
29 |
| - build_bundle(app: app, version: version, flavor: 'Vanilla', buildType: 'Release') |
| 29 | + aab_path = build_bundle(app: app, version: version, flavor: 'Vanilla', buildType: 'Release') |
30 | 30 |
|
31 | 31 | upload_build_to_play_store(app: app, version: version, track: 'production')
|
32 | 32 |
|
33 | 33 | create_gh_release(app: app, version: version) if options[:create_release]
|
| 34 | + |
| 35 | + android_send_app_size_metrics( |
| 36 | + api_url: ENV['APPMETRICS_BASE_URL'] = File.join('file://localhost/', ENV['PROJECT_ROOT_FOLDER'], 'build', "#{app}-app-size-metrics.json"), |
| 37 | + use_gzip_content_encoding: false, |
| 38 | + app_name: 'WordPress', |
| 39 | + app_version_name: version['name'], |
| 40 | + app_version_code: version['code'], |
| 41 | + product_flavor: 'Vanilla', |
| 42 | + build_type: 'Release', |
| 43 | + source: 'Final Build', |
| 44 | + aab_path: aab_path |
| 45 | + ) |
34 | 46 | end
|
35 | 47 |
|
36 | 48 | #####################################################################################
|
|
81 | 93 | # Create the file names
|
82 | 94 | app = get_app_name_option!(options)
|
83 | 95 | version = android_get_alpha_version()
|
84 |
| - build_bundle(app: app, version: version, flavor: 'Zalpha', buildType: 'Release') |
| 96 | + aab_path = build_bundle(app: app, version: version, flavor: 'Zalpha', buildType: 'Release') |
85 | 97 |
|
86 | 98 | upload_build_to_play_store(app: app, version: version, track: 'alpha') if options[:upload_to_play_store]
|
87 | 99 |
|
88 | 100 | create_gh_release(app: app, version: version, prerelease: true) if options[:create_release]
|
| 101 | + |
| 102 | + android_send_app_size_metrics( |
| 103 | + api_url: ENV['APPMETRICS_BASE_URL'] = File.join('file://localhost/', ENV['PROJECT_ROOT_FOLDER'], 'build', "#{app}-app-size-metrics.json"), |
| 104 | + use_gzip_content_encoding: false, |
| 105 | + app_name: 'WordPress', |
| 106 | + app_version_name: version['name'], |
| 107 | + app_version_code: version['code'], |
| 108 | + product_flavor: 'Zalpha', |
| 109 | + build_type: 'Release', |
| 110 | + source: 'Alpha', |
| 111 | + aab_path: aab_path |
| 112 | + ) |
89 | 113 | end
|
90 | 114 |
|
91 | 115 | #####################################################################################
|
|
109 | 133 | # Create the file names
|
110 | 134 | app = get_app_name_option!(options)
|
111 | 135 | version = android_get_release_version()
|
112 |
| - build_bundle(app: app, version: version, flavor: 'Vanilla', buildType: 'Release') |
| 136 | + aab_path = build_bundle(app: app, version: version, flavor: 'Vanilla', buildType: 'Release') |
113 | 137 |
|
114 | 138 | upload_build_to_play_store(app: app, version: version, track: 'beta') if options[:upload_to_play_store]
|
115 | 139 |
|
116 | 140 | create_gh_release(app: app, version: version, prerelease: true) if options[:create_release]
|
| 141 | + |
| 142 | + android_send_app_size_metrics( |
| 143 | + api_url: ENV['APPMETRICS_BASE_URL'] = File.join('file://localhost/', ENV['PROJECT_ROOT_FOLDER'], 'build', "#{app}-app-size-metrics.json"), |
| 144 | + use_gzip_content_encoding: false, |
| 145 | + app_name: 'WordPress', |
| 146 | + app_version_name: version['name'], |
| 147 | + app_version_code: version['code'], |
| 148 | + product_flavor: 'Vanilla', |
| 149 | + build_type: 'Release', |
| 150 | + source: 'Beta', |
| 151 | + aab_path: aab_path |
| 152 | + ) |
117 | 153 | end
|
118 | 154 |
|
119 | 155 | #####################################################################################
|
|
137 | 173 | # Create the file names
|
138 | 174 | app = get_app_name_option!(options)
|
139 | 175 | version = android_get_release_version()
|
140 |
| - build_bundle(app: app, version: version, flavor: 'Zalpha', buildType: 'Debug') |
| 176 | + aab_path = build_bundle(app: app, version: version, flavor: 'Zalpha', buildType: 'Debug') |
141 | 177 |
|
142 | 178 | upload_build_to_play_store(app: app, version: version, track: 'internal') if options[:upload_to_play_store]
|
143 | 179 |
|
144 | 180 | create_gh_release(app: app, version: version, prerelease: true) if options[:create_release]
|
| 181 | + |
| 182 | + android_send_app_size_metrics( |
| 183 | + api_url: ENV['APPMETRICS_BASE_URL'] = File.join('file://localhost/', ENV['PROJECT_ROOT_FOLDER'], 'build', "#{app}-app-size-metrics.json"), |
| 184 | + use_gzip_content_encoding: false, |
| 185 | + app_name: 'WordPress', |
| 186 | + app_version_name: version['name'], |
| 187 | + app_version_code: version['code'], |
| 188 | + product_flavor: 'Zalpha', |
| 189 | + build_type: 'Debug', |
| 190 | + source: 'Internal', |
| 191 | + aab_path: aab_path |
| 192 | + ) |
145 | 193 | end
|
146 | 194 |
|
147 | 195 | #####################################################################################
|
|
0 commit comments