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

Extend injection options #1605

Merged
merged 34 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
fd2e455
First try at making UTs
justinasRm Apr 18, 2024
a6c080d
mutations.ts UT
justinasRm Apr 19, 2024
ddb49c0
package UT
justinasRm Apr 19, 2024
a8c6b70
appConfig UT
justinasRm Apr 22, 2024
f135a34
version UT
justinasRm Apr 22, 2024
19b0265
questionHelpers UT
justinasRm Apr 23, 2024
74e9c0a
more tests
justinasRm Apr 24, 2024
2524f77
UTs
justinasRm Apr 25, 2024
a237dea
UT
justinasRm Apr 26, 2024
cdfcabb
fix tests
justinasRm Apr 29, 2024
9066843
Expanding on a comment
justinasRm Apr 29, 2024
31d7f9e
Merge pull request #1521 from flexn-io/testingUTs
pavjacko May 2, 2024
4f77c65
Merge branch 'release/1.0'
pavjacko May 3, 2024
31b5531
Merge branch 'release/1.0'
pavjacko May 3, 2024
48c4d54
feat: add pluginAppDelegateHMethods injection
aurimasmi Jun 7, 2024
076952e
feat: extend injections of appdelegate_mm
aurimasmi Jun 7, 2024
a2a1a20
feat: privacy manifest parser
aurimasmi Jun 10, 2024
5ba4486
fix: improve schema add privacy to pbxproj resources
aurimasmi Jun 10, 2024
b45e305
fix: remove logs, ensure run not crashing if privacy schema not valid
aurimasmi Jun 10, 2024
bcb1504
wip: android build.gradle overrides
aurimasmi Jun 10, 2024
fd2a21e
chore: cleanup
aurimasmi Jun 14, 2024
fff4f7a
chore: update schema
aurimasmi Jun 14, 2024
33d2401
chore: add injections to androidtv and firetv
aurimasmi Jun 14, 2024
c6c6524
fix: tests
aurimasmi Jun 14, 2024
e5d0145
fix: add missing injections to tvos
aurimasmi Jun 14, 2024
8bc407e
chore: add example overrides to harness
aurimasmi Jun 14, 2024
70c7fd3
chore: convert back types to interfaces
aurimasmi Jun 19, 2024
ddb26af
fix: no injections resolution to empty strings
aurimasmi Jun 19, 2024
87b3b0e
chore: bring override from main
aurimasmi Jun 20, 2024
550cf2d
chore: reenable eslint rule, add eslint-disable for particular rule i…
aurimasmi Jun 25, 2024
b42a32e
Merge branch 'release/1.0' into feat/extend-overrides-options
aurimasmi Jun 25, 2024
4d69ef1
chore: fix ts errors
aurimasmi Jun 25, 2024
2bc4115
chore: generate schema
aurimasmi Jun 28, 2024
f94222b
fix: apply root renative.json injections
aurimasmi Jun 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions packages/app-harness/renative.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,96 @@
"portOffset": 10
},
"platforms": {
"ios": {
"templateXcode": {
"AppDelegate_h": {
"appDelegateMethods": ["@property (nonatomic, strong) UIView *appSwitcherView;"]
},
"AppDelegate_mm": {
"appDelegateMethods": {
"custom": [
"- (UIImage *)createScreenshotOfCurrentContext {",
" CGSize screenSize = self.window.screen.bounds.size;",
" UIGraphicsBeginImageContext(screenSize);",
" CGContextRef currentContext = UIGraphicsGetCurrentContext();",
" if (!currentContext) {",
" return nil;",
" }",
" [self.window.layer renderInContext:currentContext];",
" UIImage *image = UIGraphicsGetImageFromCurrentImageContext();",
" UIGraphicsEndImageContext();",
" return image;",
"}"
]
}
}
},
"privacyManifests": {
"NSPrivacyAccessedAPITypes": [
{
"NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategoryActiveKeyboards",
"NSPrivacyAccessedAPITypeReasons": ["CA92.1"]
},
{
"NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategorySystemBootTime",
"NSPrivacyAccessedAPITypeReasons": ["CA92.1", "E174.1"]
}
]
}
},
"tvos": {
"templateXcode": {
"AppDelegate_h": {
"appDelegateMethods": ["@property (nonatomic, strong) UIView *appSwitcherView;"]
},
"AppDelegate_mm": {
"appDelegateMethods": {
"custom": [
"- (UIImage *)createScreenshotOfCurrentContext {",
" CGSize screenSize = self.window.screen.bounds.size;",
" UIGraphicsBeginImageContext(screenSize);",
" CGContextRef currentContext = UIGraphicsGetCurrentContext();",
" if (!currentContext) {",
" return nil;",
" }",
" [self.window.layer renderInContext:currentContext];",
" UIImage *image = UIGraphicsGetImageFromCurrentImageContext();",
" UIGraphicsEndImageContext();",
" return image;",
"}"
]
}
}
},
"privacyManifests": {
"NSPrivacyAccessedAPITypes": [
{
"NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategoryActiveKeyboards",
"NSPrivacyAccessedAPITypeReasons": ["CA92.1"]
},
{
"NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategorySystemBootTime",
"NSPrivacyAccessedAPITypeReasons": ["CA92.1", "E174.1"]
}
]
}
},
"android": {
"templateAndroid": {
"build_gradle": {
"buildscript": {
"custom": [],
"dependencies": ["def customVar2 = '2'"],
"repositories": ["def customVar1 = '1'"],
"ext": ["playServicesLocationVersion = \"21.0.1\""]
},
"injectAfterAll": [
"allprojects {",
" repositories {",
" }",
"}"
]
},
"styles_xml": {
"tag": "resources",
"children": [
Expand Down
Loading
Loading