Skip to content

Commit 0dde3ab

Browse files
Mobile Ads Developer Relationscopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 830596210
1 parent 555343c commit 0dde3ab

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

rapid_workflow_parameters.ncl

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
include "releasetools/rapid/ncl/rapid_config.ncl";
2+
3+
namespace AdMobUnityWorkflowParameters {
4+
5+
DEFAULT_TARGET_UNITY_VERSION = "6000.1";
6+
// TODO(jochac): Bump to API 36.
7+
DEFAULT_ANDROID_TARGET_SDK = "35";
8+
DEFAULT_PROJECT_NAME = "HelloWorld";
9+
DEFAULT_ADMOB_ANDROID_APP_ID = "ca-app-pub-3940256099942544~3347511713";
10+
11+
ADMOB_ANDROID_APP_ID_WORKFLOW_PARAMETER = ::Rapid::WorkflowParameter::Simple(
12+
name = "admob_android_app_id",
13+
label = "AdMob Android App ID",
14+
default_value = DEFAULT_ADMOB_ANDROID_APP_ID,
15+
modifiable = true,
16+
description = "The unique Android app identifier assigned to your app in the AdMob frontend.",
17+
);
18+
USE_UNITY_PACKAGE_WORKFLOW_PARAMETER = ::Rapid::WorkflowParameter::Bool(
19+
name = "use_unity_package",
20+
label = "Use Unity Package",
21+
default_value = false,
22+
modifiable = true,
23+
description = "Whether the Unity plugin should be imported or tested using the Unity package or the UPM dependency.",
24+
);
25+
SHARED_BUILD_AND_TEST_WORKFLOW_PARAMETERS = [
26+
::Rapid::WorkflowParameter::SingleSelectEnum(
27+
name = "target_unity_ver",
28+
label = "Target Unity Version",
29+
// LINT.IfChange
30+
possible_values = ["6000.1", "2022.3", "2021.3"],
31+
// LINT.ThenChange(//depot/google3/third_party/java_src/gma_sdk_mediation/release/rapid/workflows/unity/build_all_unity_apks.pp)
32+
default_value = DEFAULT_TARGET_UNITY_VERSION,
33+
modifiable = true,
34+
description = "Unity version for which to build or test the APK.",
35+
),
36+
::Rapid::WorkflowParameter::Simple(
37+
name = "android_target_sdk",
38+
label = "Android Target SDK",
39+
default_value = DEFAULT_ANDROID_TARGET_SDK,
40+
modifiable = true,
41+
description = "Android target SDK version for which to build or test the APK.",
42+
),
43+
::Rapid::WorkflowParameter::SingleSelectEnum(
44+
name = "project_name",
45+
label = "Project Name",
46+
// LINT.IfChange
47+
possible_values = ["HelloWorld"],
48+
// LINT.ThenChange(//depot/google3/third_party/java_src/gma_sdk_mediation/release/rapid/workflows/unity/build_all_unity_apks.pp)
49+
default_value = DEFAULT_PROJECT_NAME,
50+
modifiable = true,
51+
description = "Sample project name used to build or test the APK.",
52+
),
53+
] + [USE_UNITY_PACKAGE_WORKFLOW_PARAMETER];
54+
55+
} // namespace AdMobUnityWorkflowParameters

0 commit comments

Comments
 (0)