Skip to content

Commit

Permalink
buildall-fbandroid directive
Browse files Browse the repository at this point in the history
Summary:
**Context:**
https://fb.workplace.com/groups/3864966283595977/posts/7591107320981836/?comment_id=7591451080947460

**Note: Should be used with care as android is in capacity crunch. See post: https://fb.workplace.com/groups/devx.ci.bffs/posts/1175562370238642.**

Reviewed By: thevinster

Differential Revision: D58478280

fbshipit-source-id: 678dc9347afd4c1fb819d8bef4c93b9632cdace9
  • Loading branch information
Abishek Sethuraman authored and facebook-github-bot committed Jun 13, 2024
1 parent ec297c9 commit 94983ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions td_util/src/directives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ pub fn should_build_all_fbobjc(directives: &Option<Vec<String>>, project: TdProj
&& project == TdProject::Fbobjc;
}

pub fn should_build_all_fbandroid(directives: &Option<Vec<String>>, project: TdProject) -> bool {
return directives
.iter()
.flatten()
.any(|build_directive| build_directive == "#buildall-fbandroid")
&& project == TdProject::Fbandroid;
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 94983ab

Please sign in to comment.