mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[admob][android] Support multiple test devices
This commit is contained in:
@@ -3,6 +3,7 @@ export default class AdRequest {
|
||||
constructor() {
|
||||
this._props = {
|
||||
keywords: [],
|
||||
testDevices: [],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -10,8 +11,8 @@ export default class AdRequest {
|
||||
return this._props;
|
||||
}
|
||||
|
||||
addTestDevice() {
|
||||
this._props.testDevice = true;
|
||||
addTestDevice(deviceId?: string) {
|
||||
this._props.testDevices.push(deviceId ? deviceId : 'DEVICE_ID_EMULATOR');
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user