@@ -43,6 +43,20 @@ TARGET_DECAGON_WORKFLOW_PARAMETER = ::Rapid::WorkflowParameter::Bool(
4343 modifiable = true ,
4444 description = "Whether the Unity plugin should be built for Decagon (as opposed to Nonagon)." ,
4545);
46+ USE_CACHES_WORKFLOW_PARAMETER = :: Rapid :: WorkflowParameter :: Bool (
47+ name = "use_caches" ,
48+ label = "Use Caches" ,
49+ default_value = false ,
50+ modifiable = true ,
51+ description = "Whether the Gradle and Unity caches should be used to speed up the build. It must be enabled for offline builds." ,
52+ );
53+ BUILD_OFFLINE_WORKFLOW_PARAMETER = :: Rapid :: WorkflowParameter :: Bool (
54+ name = "build_offline" ,
55+ label = "Build Offline" ,
56+ default_value = false ,
57+ modifiable = true ,
58+ description = "Whether the Unity plugin should be built offline (if so, caches must be allowed)." ,
59+ );
4660SHARED_BUILD_AND_TEST_WORKFLOW_PARAMETERS = [
4761 :: Rapid :: WorkflowParameter :: SingleSelectEnum (
4862 name = "target_unity_ver" ,
@@ -97,6 +111,7 @@ FORCE_BUILD_UNITY_APK_WORKFLOW = ::Rapid::Workflow::CustomWorkflow(
97111 config_path = "google3/third_party/java_src/gma_sdk_mediation/release/rapid/workflows/unity/build_unity_apk.pp" ,
98112 parameters = SHARED_BUILD_AND_TEST_WORKFLOW_PARAMETERS + [
99113 ADMOB_ANDROID_APP_ID_WORKFLOW_PARAMETER ,
114+ USE_CACHES_WORKFLOW_PARAMETER ,
100115 FORCE_BUILD_UNITS_WORKFLOW_PARAMETER ,
101116 ],
102117 description = "Builds the requested Unity APK, forcing the plugin to be built from source." ,
0 commit comments