Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: hybrid add enable/disable bridge APIs #272

Merged
merged 3 commits into from
Aug 16, 2023
Merged

Conversation

YoloMao
Copy link
Collaborator

@YoloMao YoloMao commented Aug 15, 2023

实现对 webView Hybrid 注入的黑白名单设置,具体参见 GrowingHybridModule.h

@codecov
Copy link

codecov bot commented Aug 15, 2023

Codecov Report

Merging #272 (7ba18ae) into master (c007055) will decrease coverage by 0.17%.
Report is 1 commits behind head on master.
The diff coverage is 55.26%.

@@            Coverage Diff             @@
##           master     #272      +/-   ##
==========================================
- Coverage   79.54%   79.37%   -0.17%     
==========================================
  Files         127      127              
  Lines        6701     6730      +29     
==========================================
+ Hits         5330     5342      +12     
- Misses       1371     1388      +17     
Files Changed Coverage Δ
GrowingTrackerCore/GrowingRealTracker.m 83.22% <ø> (ø)
Modules/Hybrid/GrowingWKWebViewJavascriptBridge.m 87.93% <33.33%> (-2.98%) ⬇️
Modules/Hybrid/GrowingHybridModule.m 64.17% <57.14%> (-7.70%) ⬇️

... and 1 file with indirect coverage changes

@YoloMao YoloMao changed the title feat: add autotrackEnabled/ignoreViewClass/ignoreViewClasses feat: hybrid add enable/disable bridge APIs Aug 16, 2023
@YoloMao
Copy link
Collaborator Author

YoloMao commented Aug 16, 2023

测试步骤

  • CI 通过
  • 调用 Hybrid 注入配置项进行黑/白名单设置,并使用 isBridgeForWebViewEnabled 或 Safari 调试判断是否达到预期效果

@sonarcloud
Copy link

sonarcloud bot commented Aug 16, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

51.0% 51.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.11) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@YoloMao YoloMao merged commit d273ca0 into master Aug 16, 2023
4 of 7 checks passed
@YoloMao YoloMao deleted the feat/ignoreView branch August 16, 2023 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants