AppLovinQualityService 脚本?AppLovinQualityService 脚本时,AppLovinQualityService SDK 似乎都会更新。SDK 是否不应该由 VCS 管理?git 管理。
这就是为什么每次将项目 clone/pull 到新机器上进行初始项目设置时,都应该运行该脚本。
AppLovinQualityService 设置脚本(通常称为 AppLovinQualityServiceSetup-ios.rb)提交到我的 VCS 吗?AppLovinQualityService 设置脚本有时会更新。更新时,我需要重新将其提交到我的 VCS。这正常吗?AppLovinQualityService 发布时,该脚本就会更新。
在这些情况下,您应该重新提交它。
移除您在启用 Ad Review步骤中添加到 build.gradle 的行。
重新执行您为了启用 Ad Review 服务而执行的 Ruby 脚本(您在启用 Ad Review步骤中执行过此操作)。
执行时,添加参数 uninstall:
bash ruby AppLovinQualityServiceSetup-ios.rb uninstall
取消勾选 Integration Manager 中的 Enable Ad Review 复选框。 下次导出干净的项目时,它将不包含 Ad Review 集成。
ruby AppLovinQualityServiceSetup.rb install -localframeworks «framework name without extension»
例如,如果您的专用 framework target 是 FooBar.framework,您可以运行以下命令:
ruby AppLovinQualityServiceSetup.rb install -localframeworks FooBar
AppLovinQualityServiceGradlePlugin 是否支持配置缓存(configuration cache)?在您的 applovin 闭包中添加一行 disableIf,如下所示:
apply plugin: 'applovin-quality-service'
applovin {
apiKey «your Ad Review Key»
disableIf buildType: 'debug'
}
plugins {
id("applovin-quality-service")
}
applovin {
apikey = "«your Ad Review Key»"
disableIf(mapOf("buildType" to "debug"))
}
您可以在 AppLovin dashboard 的 Account > General > Keys 区域找到您的 Ad Review Key。
-disableconfigs,并将其值设置为以逗号分隔的构建配置列表,您希望在这些配置上禁用 Ad Review 的运行。
例如:
AppLovinQualityService/AppLovinQualityServicePlugin.app/Contents/MacOS/AppLovinQualityServicePlugin -disabledconfigs Debug "AppLovinQualityServiceSetup-ios.rb"
applovin 闭包中添加一行 disableIf,如下所示:
applovin {
apiKey «your Ad Review Key»
disableIf productFlavor: 'foo'
}
applovin {
apikey = "«your Ad Review Key»"
disableIf(mapOf("productFlavor" to "foo"))
}
您可以在 AppLovin dashboard 的 Account > General > Keys 区域找到您的 Ad Review Key。
要在特定的 product flavor 上使用不同的 Ad Review key,请在您的 applovin 闭包中添加一行 apiKeyForFlavor,如下所示:
applovin {
apiKey «your first Ad Review Key»
apiKeyForFlavor apiKey: «your second Ad Review Key», flavorName: 'foo'
// alternatively you can use apiKeyForFlavors apiKey: «your second Ad Review Key», flavorNames: ['foo1', 'foo2']
}
applovin {
apiKey = "«your first Ad Review Key»"
apiKeyForFlavor("«your second Ad Review Key»", "foo")
// alternatively you can use apiKeyForFlavors("«your second Ad Review Key»", listOf("foo1","foo2"))
}