gee*_*xee 5 android gradle fastlane
我在build.gradle和上都有一个自定义变量AndroidManifest.xml:
android {
defaultConfig {
manifestPlaceholders.myCustomProperty = "#"
}
}
Run Code Online (Sandbox Code Playgroud)
和
<meta-data
android:name="CUSTOM_PROPERTY"
android:value="${myCustomProperty} />
Run Code Online (Sandbox Code Playgroud)
我想myCustomProperty在 Fastfile 中定义。以下均无效:
gradle(
task: "assemble"
...
properties {
"manifestPlaceholders.myCustomProperty" => "Value 1",
"myCustomProperty" => "Value 2",
"android.defaultConfig.manifestPlaceholders.myCustomProperty" => "Value 3"
}
)
Run Code Online (Sandbox Code Playgroud)
在应用程序中#使用时我总是得到myCustomProperty(在使用 Fastfile 构建它之后)。
| 归档时间: |
|
| 查看次数: |
260 次 |
| 最近记录: |