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 1818 fail-fast : false
1919 matrix :
2020 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 }})
2329 runs-on : ${{ matrix.os }}
2430 steps :
2531 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
3339 run : cargo fmt --all -- --check
3440
3541 - name : Run Clippy
36- run : cargo clippy --workspace --tests
42+ run : cargo clippy --workspace --tests ${{ matrix.feature-args }}
3743
3844 lint :
3945 needs : lint-each-os
5258 fail-fast : false
5359 matrix :
5460 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 }})
5769 runs-on : ${{ matrix.os }}
5870
5971 steps :
6476 key : ${{ github.job }}
6577
6678 - name : Run Cargo Tests
67- run : cargo test --all
79+ run : cargo test --all ${{ matrix.feature-args }}
6880
6981 test_node :
7082 strategy :
Original file line number Diff line number Diff line change @@ -11,4 +11,5 @@ yarn-error.log
1111/sentry-cli
1212/sentry-cli.exe
1313
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"
1111[dependencies ]
1212anylog = " 0.6.3"
1313anyhow = { version = " 1.0.69" , features = [" backtrace" ] }
14+ apple-catalog-parsing = { path = " apple-catalog-parsing" , optional = true }
1415backoff = " 0.4.0"
1516brotli2 = " 0.3.2"
1617bytecount = " 0.6.3"
@@ -93,6 +94,10 @@ default = []
9394managed = []
9495with_crash_reporting = []
9596
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+
96101[workspace .lints .clippy ]
97102allow-attributes = " warn"
98103unnecessary-wraps = " warn"
Original file line number Diff line number Diff line change 1+ #![ cfg( feature = "unstable-mobile-app" ) ]
12use serde:: { Deserialize , Serialize } ;
23use sha1_smol:: Digest ;
34
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ pub use self::compression::ChunkCompression;
1414pub use self :: dif:: { AssembleDifsRequest , AssembleDifsResponse , ChunkedDifRequest } ;
1515pub use self :: file_state:: ChunkedFileState ;
1616pub use self :: hash_algorithm:: ChunkHashAlgorithm ;
17+ #[ cfg( feature = "unstable-mobile-app" ) ]
1718pub use self :: mobile_app:: { AssembleMobileAppResponse , ChunkedMobileAppRequest } ;
1819pub use self :: upload:: { ChunkServerOptions , ChunkUploadCapability } ;
Original file line number Diff line number Diff line change @@ -1018,6 +1018,7 @@ impl<'a> AuthenticatedApi<'a> {
10181018 . convert_rnf ( ApiErrorKind :: ReleaseNotFound )
10191019 }
10201020
1021+ #[ cfg( feature = "unstable-mobile-app" ) ]
10211022 pub fn assemble_mobile_app (
10221023 & self ,
10231024 org : & str ,
Original file line number Diff line number Diff line change 1+ #![ cfg( feature = "unstable-mobile-app" ) ]
2+
13use anyhow:: Result ;
24use clap:: { ArgMatches , Command } ;
35
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ macro_rules! each_subcommand {
3131 $mac!( info) ;
3232 $mac!( issues) ;
3333 $mac!( login) ;
34+ #[ cfg( feature = "unstable-mobile-app" ) ]
3435 $mac!( mobile_app) ;
3536 $mac!( monitors) ;
3637 $mac!( organizations) ;
Original file line number Diff line number Diff line change 1+ #![ cfg( feature = "unstable-mobile-app" ) ]
2+
13#[ cfg( target_os = "macos" ) ]
24mod apple;
35mod validation;
You can’t perform that action at this time.
0 commit comments