feat(release): prepare 1.1.0 candidate
This commit is contained in:
parent
5a34f66981
commit
5205dcdfa9
736 changed files with 115667 additions and 12203 deletions
44
apps/mobile-rn/__mocks__/react-native-google-mobile-ads.js
vendored
Normal file
44
apps/mobile-rn/__mocks__/react-native-google-mobile-ads.js
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
const React = require('react')
|
||||
|
||||
const adsConsentInfo = {
|
||||
status: 'NOT_REQUIRED',
|
||||
canRequestAds: true,
|
||||
privacyOptionsRequirementStatus: 'NOT_REQUIRED',
|
||||
isConsentFormAvailable: false,
|
||||
}
|
||||
|
||||
const rewardedState = {
|
||||
isLoaded: false,
|
||||
isOpened: false,
|
||||
isClicked: false,
|
||||
isClosed: false,
|
||||
isShowing: false,
|
||||
isEarnedReward: false,
|
||||
error: undefined,
|
||||
reward: undefined,
|
||||
load: jest.fn(),
|
||||
show: jest.fn(),
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
AdsConsent: {
|
||||
gatherConsent: jest.fn(async () => adsConsentInfo),
|
||||
getConsentInfo: jest.fn(async () => adsConsentInfo),
|
||||
showPrivacyOptionsForm: jest.fn(async () => adsConsentInfo),
|
||||
},
|
||||
AdsConsentPrivacyOptionsRequirementStatus: {
|
||||
UNKNOWN: 'UNKNOWN',
|
||||
REQUIRED: 'REQUIRED',
|
||||
NOT_REQUIRED: 'NOT_REQUIRED',
|
||||
},
|
||||
MaxAdContentRating: { G: 'G', PG: 'PG', T: 'T', MA: 'MA' },
|
||||
MobileAds: jest.fn(() => ({
|
||||
initialize: jest.fn(async () => []),
|
||||
setRequestConfiguration: jest.fn(async () => undefined),
|
||||
})),
|
||||
BannerAd: jest.fn(() => React.createElement(React.Fragment, null)),
|
||||
BannerAdSize: {
|
||||
ANCHORED_ADAPTIVE_BANNER: 'ANCHORED_ADAPTIVE_BANNER',
|
||||
},
|
||||
useRewardedAd: jest.fn(() => rewardedState),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue