File tree Expand file tree Collapse file tree 11 files changed +39
-7
lines changed
tests/integration/mobile_app Expand file tree Collapse file tree 11 files changed +39
-7
lines changed Original file line number Diff line number Diff line change 18
18
fail-fast : false
19
19
matrix :
20
20
os : [ubuntu-24.04, macos-14, windows-2022]
21
-
22
- name : Lint (${{ matrix.os }})
21
+ feature-args : ['', '-Funstable-mobile-app']
22
+ include :
23
+ - feature-args : ' '
24
+ feature-suffix : ' '
25
+ - feature-args : ' -Funstable-mobile-app'
26
+ feature-suffix : ' , mobile-app'
27
+
28
+ name : Lint (${{ matrix.os }}${{ matrix.feature-suffix }})
23
29
runs-on : ${{ matrix.os }}
24
30
steps :
25
31
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
33
39
run : cargo fmt --all -- --check
34
40
35
41
- name : Run Clippy
36
- run : cargo clippy --workspace --tests
42
+ run : cargo clippy --workspace --tests ${{ matrix.feature-args }}
37
43
38
44
lint :
39
45
needs : lint-each-os
52
58
fail-fast : false
53
59
matrix :
54
60
os : [ubuntu-24.04, macos-14, windows-2022]
55
-
56
- name : Test (${{ matrix.os }})
61
+ feature-args : ['', '-Funstable-mobile-app']
62
+ include :
63
+ - feature-args : ' '
64
+ feature-suffix : ' '
65
+ - feature-args : ' -Funstable-mobile-app'
66
+ feature-suffix : ' , mobile-app'
67
+
68
+ name : Test (${{ matrix.os }}${{ matrix.feature-suffix }})
57
69
runs-on : ${{ matrix.os }}
58
70
59
71
steps :
64
76
key : ${{ github.job }}
65
77
66
78
- name : Run Cargo Tests
67
- run : cargo test --all
79
+ run : cargo test --all ${{ matrix.feature-args }}
68
80
69
81
test_node :
70
82
strategy :
Original file line number Diff line number Diff line change @@ -11,4 +11,5 @@ yarn-error.log
11
11
/sentry-cli
12
12
/sentry-cli.exe
13
13
14
- .vscode /
14
+ .vscode /*
15
+ ! .vscode /settings.json
Original file line number Diff line number Diff line change
1
+ {
2
+ "rust-analyzer.cargo.features" : [" unstable-mobile-app" ],
3
+ "rust-analyzer.cargo.noDefaultFeatures" : false
4
+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ rust-version = "1.86"
11
11
[dependencies ]
12
12
anylog = " 0.6.3"
13
13
anyhow = { version = " 1.0.69" , features = [" backtrace" ] }
14
+ apple-catalog-parsing = { path = " apple-catalog-parsing" , optional = true }
14
15
backoff = " 0.4.0"
15
16
brotli2 = " 0.3.2"
16
17
bytecount = " 0.6.3"
@@ -93,6 +94,10 @@ default = []
93
94
managed = []
94
95
with_crash_reporting = []
95
96
97
+ # Feature flag for the mobile-app command, as it is still under development.
98
+ # CI tests run against this flag, but we don't include it in release builds.
99
+ unstable-mobile-app = [" apple-catalog-parsing" ]
100
+
96
101
[workspace .lints .clippy ]
97
102
allow-attributes = " warn"
98
103
unnecessary-wraps = " warn"
Original file line number Diff line number Diff line change
1
+ #![ cfg( feature = "unstable-mobile-app" ) ]
1
2
use serde:: { Deserialize , Serialize } ;
2
3
use sha1_smol:: Digest ;
3
4
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ pub use self::compression::ChunkCompression;
14
14
pub use self :: dif:: { AssembleDifsRequest , AssembleDifsResponse , ChunkedDifRequest } ;
15
15
pub use self :: file_state:: ChunkedFileState ;
16
16
pub use self :: hash_algorithm:: ChunkHashAlgorithm ;
17
+ #[ cfg( feature = "unstable-mobile-app" ) ]
17
18
pub use self :: mobile_app:: { AssembleMobileAppResponse , ChunkedMobileAppRequest } ;
18
19
pub use self :: upload:: { ChunkServerOptions , ChunkUploadCapability } ;
Original file line number Diff line number Diff line change @@ -1018,6 +1018,7 @@ impl<'a> AuthenticatedApi<'a> {
1018
1018
. convert_rnf ( ApiErrorKind :: ReleaseNotFound )
1019
1019
}
1020
1020
1021
+ #[ cfg( feature = "unstable-mobile-app" ) ]
1021
1022
pub fn assemble_mobile_app (
1022
1023
& self ,
1023
1024
org : & str ,
Original file line number Diff line number Diff line change
1
+ #![ cfg( feature = "unstable-mobile-app" ) ]
2
+
1
3
use anyhow:: Result ;
2
4
use clap:: { ArgMatches , Command } ;
3
5
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ macro_rules! each_subcommand {
31
31
$mac!( info) ;
32
32
$mac!( issues) ;
33
33
$mac!( login) ;
34
+ #[ cfg( feature = "unstable-mobile-app" ) ]
34
35
$mac!( mobile_app) ;
35
36
$mac!( monitors) ;
36
37
$mac!( organizations) ;
Original file line number Diff line number Diff line change
1
+ #![ cfg( feature = "unstable-mobile-app" ) ]
2
+
1
3
#[ cfg( target_os = "macos" ) ]
2
4
mod apple;
3
5
mod validation;
You can’t perform that action at this time.
0 commit comments