Skip to content

Commit

Permalink
feat: 支持 open-type share 属性
Browse files Browse the repository at this point in the history
  • Loading branch information
WX-DongXing committed May 24, 2024
1 parent f95c819 commit 017d87c
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ module.exports = function ({ print }) {
const webEventLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'event' })
const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
const wxPropValueLog = print({ platform: 'wx', tag: TAG_NAME, isError: false, type: 'value' })
const iosValueLogError = print({ platform: 'ios', tag: TAG_NAME, isError: true, type: 'value' })
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
const androidValueLogError = print({ platform: 'android', tag: TAG_NAME, isError: true, type: 'value' })
const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })

Expand Down Expand Up @@ -119,6 +121,18 @@ module.exports = function ({ print }) {
ttValueLogError({ name, value })
}
}
},
ios ({ name, value }) {
const supported = ['share']
if (!supported.includes(value)) {
iosValueLogError({ name, value })
}
},
android ({ name, value }) {
const supported = ['share']
if (!supported.includes(value)) {
androidValueLogError({ name, value })
}
}
},
{
Expand Down Expand Up @@ -157,7 +171,7 @@ module.exports = function ({ print }) {
qa: qaPropLog
},
{
test: /^(open-type|lang|from-type|hover-class|send-message-title|send-message-path|send-message-img|app-parameter|show-message-card|phone-number-no-quota-toast|bindgetuserinfo|bindcontact|createliveactivity|bindgetphonenumber|bindgetrealtimephonenumber|binderror|bindopensetting|bindlaunchapp|bindchooseavatar|bindagreeprivacyauthorization)$/,
test: /^(lang|from-type|hover-class|send-message-title|send-message-path|send-message-img|app-parameter|show-message-card|phone-number-no-quota-toast|bindgetuserinfo|bindcontact|createliveactivity|bindgetphonenumber|bindgetrealtimephonenumber|binderror|bindopensetting|bindlaunchapp|bindchooseavatar|bindagreeprivacyauthorization)$/,
ios: iosPropLog,
android: androidPropLog
}
Expand Down

0 comments on commit 017d87c

Please sign in to comment.