Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
7d26d29
Updated branch to 2.0.0-alpha
lposen Sep 30, 2024
a567763
Initial scaffolding update
lposen Sep 30, 2024
fd449d4
Tried to minimize unnecessary diff changes
lposen Sep 30, 2024
e8fd5ef
Moved files from 'src' folder to 'ts' folder
lposen Sep 30, 2024
6514543
Renamed index and removed 'use strict'
lposen Sep 30, 2024
bcec9d2
Fixed some linting issues
lposen Sep 30, 2024
658448a
Changed format for updated react native
lposen Sep 30, 2024
99e1629
Refactor IterableAction and IterableActionContext
lposen Sep 30, 2024
16c23af
Refactor imports in IterableInbox.tsx
lposen Sep 30, 2024
b89281d
Refactor imports in IterableConfig.ts and added todos
lposen Sep 30, 2024
6df54f5
Refactor IterableDataRegion and export as default
lposen Sep 30, 2024
fad1c47
Refactor IterableInAppClasses and export as default
lposen Sep 30, 2024
f2e05b9
Refactor IterableInAppManager and IterableInAppMessage classes
lposen Sep 30, 2024
b1679e2
Refactor IterableInboxCustomizations and add missing type description
lposen Sep 30, 2024
54a35a3
Refactor IterableInboxDataModel and improve code readability
lposen Sep 30, 2024
725d727
Refactor IterableInboxDataModel and add comment
lposen Sep 30, 2024
f618d7c
Refactor IterableInboxEmptyState component and add missing type descr…
lposen Sep 30, 2024
e5259f2
Refactor IterableInboxMessageCell component and improve code readability
lposen Sep 30, 2024
92a244f
add missing dependencies
lposen Sep 30, 2024
df7676b
Refactor IterableInboxMessageDisplay component and improve code reada…
lposen Sep 30, 2024
e2d69ed
Refactor IterableConfig.ts and add missing import
lposen Sep 30, 2024
0f74961
Refactor IterableConfig.ts and add missing import
lposen Sep 30, 2024
571c03a
Fixed linting for test files
lposen Sep 30, 2024
adc6b92
fixed index file
lposen Sep 30, 2024
2ea5f80
Added last of linting fixes
lposen Oct 1, 2024
3a92b7f
Added peer dependencies
lposen Oct 1, 2024
350fe72
Refactor variable declarations to use "let" instead of "var"
lposen Oct 1, 2024
1b00d33
It's making me do this
lposen Oct 8, 2024
04d4075
Merge pull request #577 from Iterable/2.0.0-alpha/MOB-9669-update-rn-…
lposen Oct 22, 2024
28d7b3c
Merge branch 'master' into 2.0.0-alpha/master
lposen Oct 22, 2024
c6aaea5
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-9678-fix-build
lposen Oct 22, 2024
d80b357
Merge branch '2.0.0-alpha/MOB-9678-fix-build' into 2.0.0-alpha/MOB-96…
lposen Oct 22, 2024
f378df4
fix package and peer dependency structure
lposen Oct 22, 2024
cf6aeef
Add exclusions for SampleApp, example and integration-testing in tsco…
lposen Oct 22, 2024
af6f4ae
Refactor Jest configuration, update ESLint ignore list, and clean up …
lposen Oct 22, 2024
6d7f414
Remove obsolete index_OLD.tsx file
lposen Oct 22, 2024
84bd88a
Add example .env file and update .gitignore for Iterable
lposen Oct 22, 2024
b9c5690
Update Android build configuration to use RNIterable properties
lposen Oct 22, 2024
594ce59
Add Gradle wrapper properties and refactor RNIterableAPIPackage to us…
lposen Oct 22, 2024
2d57408
Update package.json to add navigation dependencies and update Babel p…
lposen Oct 22, 2024
3a836e2
Update example project configuration and add react-native-vector-icon…
lposen Oct 22, 2024
3bd96d1
Add initial structure for navigation and components in example project
lposen Oct 23, 2024
a7b20e5
ran `bundle install`
lposen Oct 23, 2024
6317f6b
ran `bundle install`
lposen Oct 23, 2024
3c91a97
App builing and loading correctly
lposen Oct 23, 2024
0491d27
Refactor app structure: remove old App component, add Main component …
lposen Oct 23, 2024
d90369f
Update README and environment setup: enhance instructions for API key…
lposen Oct 23, 2024
bb11b56
Add Inbox route and associated icon: define Inbox route in constants …
lposen Oct 23, 2024
b0c5b92
Add Inbox tab state management: introduce isInboxTab and returnToInbo…
lposen Oct 23, 2024
fd85e40
Add Inbox component and constants: implement Inbox component with cus…
lposen Oct 23, 2024
5478edc
Add Inbox tab and unread message count: implement Inbox tab with badg…
lposen Oct 23, 2024
4bdb860
Add Commerce route and update navigation: define Commerce route in co…
lposen Oct 23, 2024
f839149
Add Commerce component and route: implement Commerce component with p…
lposen Oct 23, 2024
dba498f
Removed iterable logo from images
lposen Oct 23, 2024
6f658b9
Sample app deleted
lposen Oct 23, 2024
fa17e14
Remove references to SampleApp from configuration and documentation
lposen Oct 23, 2024
73c0c23
Fix formatting in babel.config.js: remove trailing comma in configura…
lposen Oct 23, 2024
2edf272
Add testing libraries: include @testing-library/jest-native and @test…
lposen Oct 23, 2024
2146588
Update testing setup and coverage configuration: add coverage script,…
lposen Oct 23, 2024
dd8ec34
Update CI workflows: add unit test workflow, remove old test and publ…
lposen Oct 23, 2024
8fd2090
beginning to add structure
lposen Nov 6, 2024
0d6d68d
Removed duplicate `IterableAction` and `IterableActionContext`
lposen Nov 7, 2024
09329d8
Removed duplicate `IterableActionSource`
lposen Nov 7, 2024
18e27ea
Removed duplicate `IterableLogLevel`
lposen Nov 7, 2024
b326c53
Added missing import
lposen Nov 7, 2024
33dcd4b
Refactor file structure: move `IterableInbox` to `inbox` directory an…
lposen Nov 7, 2024
a1d215f
Update imports for IterableInboxCustomizations to reflect new file st…
lposen Nov 7, 2024
e5ff188
Refactor file structure: move inbox-related components to `inbox` dir…
lposen Nov 7, 2024
827462a
Refactor imports: consolidate IterableInApp classes into a single inA…
lposen Nov 7, 2024
27f1bf0
Refactor in-app structure: separate classes into individual files, in…
lposen Nov 7, 2024
507902a
Refactor inbox structure: move components to a new `components` direc…
lposen Nov 7, 2024
fd2ea12
Refactor Iterable module: rename AuthResponseCallback to IterableAuth…
lposen Nov 7, 2024
5af5f45
Refactor event names: rename EventName to IterableEventName in Iterab…
lposen Nov 7, 2024
7cf303c
Refactor enums: move IterableAuthResponseResult, IterableEventName, a…
lposen Nov 7, 2024
95c4988
Refactor Iterable module: move IterableActionContext to a new file, u…
lposen Nov 7, 2024
3a52215
Refactor Iterable module: update imports for IterableAuthResponse and…
lposen Nov 7, 2024
9ac9906
Refactor Iterable module: update imports for IterableActionContext, I…
lposen Nov 7, 2024
20b10a3
Refactor Iterable module: move IterablePushPlatform enum to a separat…
lposen Nov 7, 2024
f7066e7
Refactor imports in IterableLogger, IterableUtil, and IterableInAppMe…
lposen Nov 7, 2024
5a1eea0
Refactor Iterable module: update imports for consistency and rename t…
lposen Nov 7, 2024
1db7ca4
Refactor imports in Iterable module: update paths to use absolute imp…
lposen Nov 7, 2024
04dc426
Refactor imports and restructure files in Iterable module: consolidat…
lposen Nov 7, 2024
1393e4b
Undid local path changes as they do not work with the build
lposen Nov 7, 2024
6cfa8a2
Fix import path for package.json in Iterable class to ensure correct …
lposen Nov 7, 2024
4688446
Refactor types in inbox module: change type aliases to interfaces for…
lposen Nov 7, 2024
2ce56ae
Add ESLint configuration file and remove inline config from package.json
lposen Nov 7, 2024
1d73a8d
Enhance ESLint configuration for TypeScript support: add TypeScript p…
lposen Nov 7, 2024
b6797da
Enhance ESLint configuration: add jest plugin and update lint command…
lposen Nov 7, 2024
0bd3f0c
Fixed autofixabe lint issues
lposen Nov 7, 2024
46c5710
Fixed linting issues for IterableInboxMessageCell
lposen Nov 7, 2024
bc32769
eslint fixes
lposen Nov 7, 2024
6f87314
Add IterableEdgeInsetDetails type and update related classes for bett…
lposen Nov 7, 2024
61d143d
Refactor IterableConfig and IterableInAppMessage for improved type sa…
lposen Nov 7, 2024
888ee75
Enhance type safety by refining types in IterableCommerceItem, Iterab…
lposen Nov 7, 2024
a8ac6a1
Refactor fromDict methods in IterableAction and IterableActionContext…
lposen Nov 7, 2024
7b0104a
Refactor Iterable class methods to enhance type safety; replace 'any'…
lposen Nov 7, 2024
ad2cf2d
Allow `requires` for package.json and in tests
lposen Nov 7, 2024
9cbfc82
Refactor ESLint configuration for improved TypeScript support; update…
lposen Nov 8, 2024
9fac466
Remove Gemfile.lock and update README with troubleshooting steps for …
lposen Nov 13, 2024
41d514b
Fix typo in README: add missing period to installation instruction
lposen Nov 13, 2024
164dcbe
Add Ruby version check to README: include instructions for verifying …
lposen Nov 13, 2024
eca6d62
Update Gradle and Android Gradle Plugin versions: upgrade to Gradle 8…
lposen Nov 13, 2024
7e27af3
Add troubleshooting steps for Android SDK location errors in README
lposen Nov 13, 2024
4aef54c
Add environment setup instructions to README: include example PATH co…
lposen Nov 14, 2024
fdb2f1e
Merge pull request #578 from Iterable/2.0.0-alpha/MOB-9678-fix-build
lposen Nov 14, 2024
b85fcdd
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-9671-fix-linti…
lposen Nov 14, 2024
f82ed22
Merge branch '2.0.0-alpha/MOB-9671-fix-linting-issues' into 2.0.0-alp…
lposen Nov 14, 2024
cdd6e2a
Merge branch '2.0.0-alpha/MOB-10032-add-login-page' into 2.0.0-alpha/…
lposen Nov 14, 2024
90197c3
Merge branch '2.0.0-alpha/MOB-10033-add-inbox' into 2.0.0-alpha/MOB-1…
lposen Nov 14, 2024
6e9f1b4
Merge branch '2.0.0-alpha/MOB-10034-add-commerce-section' into 2.0.0-…
lposen Nov 14, 2024
2f4a537
Merge branch '2.0.0-alpha/MOB-10036-delete-old-sample-app' into 2.0.0…
lposen Nov 14, 2024
a179ae9
Merge branch '2.0.0-alpha/MOB-9673-new-unit-tests' into 2.0.0-alpha/M…
lposen Nov 14, 2024
f96f5c9
Merge branch '2.0.0-alpha/MOB-10131-remove-duplicate-code' into 2.0.0…
lposen Nov 14, 2024
3d92e26
Changed file order as it was messing with mocks
lposen Nov 14, 2024
e6d729f
Merge branch '2.0.0-alpha/MOB-9995-reorganize-source-code' of github.…
lposen Nov 14, 2024
4b20c6e
Merge branch '2.0.0-alpha/MOB-9995-reorganize-source-code' into 2.0.0…
lposen Nov 14, 2024
88792df
Refactor imports to use named imports for consistency and clarity, an…
lposen Nov 14, 2024
6eda096
Updated export structure for IterablePushPlatform
lposen Nov 14, 2024
291884c
Merge pull request #579 from Iterable/2.0.0-alpha/MOB-9671-fix-lintin…
lposen Nov 15, 2024
539e4b5
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-10032-add-logi…
lposen Nov 15, 2024
5a35f6b
Merge branch '2.0.0-alpha/MOB-10032-add-login-page' into 2.0.0-alpha/…
lposen Nov 15, 2024
04ce363
Merge branch '2.0.0-alpha/MOB-10033-add-inbox' into 2.0.0-alpha/MOB-1…
lposen Nov 15, 2024
20c14a6
Merge branch '2.0.0-alpha/MOB-10034-add-commerce-section' into 2.0.0-…
lposen Nov 15, 2024
27cb568
Merge branch '2.0.0-alpha/MOB-10036-delete-old-sample-app' into 2.0.0…
lposen Nov 15, 2024
dd55bf2
Merge branch '2.0.0-alpha/MOB-9673-new-unit-tests' into 2.0.0-alpha/M…
lposen Nov 15, 2024
65aa68c
Merge branch '2.0.0-alpha/MOB-10131-remove-duplicate-code' into 2.0.0…
lposen Nov 15, 2024
4216fa7
Remove default exports from Iterable classes and enums
lposen Nov 15, 2024
6ebc953
Merge branch '2.0.0-alpha/MOB-9995-reorganize-source-code' into 2.0.0…
lposen Nov 15, 2024
d76e662
Refactor ESLint configuration and improve type definitions. Excluded…
lposen Nov 16, 2024
5d96ec5
Refactor ESLint configuration and move Prettier settings to a separat…
lposen Nov 16, 2024
cc96da8
Update ESLint configuration and ignore settings; remove node_modules …
lposen Nov 16, 2024
d029374
Enhance ESLint configuration and improve component styles for better …
lposen Nov 16, 2024
c556a9f
Refactor IterableInboxMessageDisplay to use color constants for impro…
lposen Nov 16, 2024
835786f
Refactor IterableInboxMessageCell to use color constants for improved…
lposen Nov 16, 2024
52a6422
Refactor IterableInboxEmptyState to use color constants for improved …
lposen Nov 16, 2024
e2ebcf1
Refactor IterableInbox to use color constants and improve style consi…
lposen Nov 16, 2024
241c5f6
Refactor Commerce and Login components to use shadow constants for im…
lposen Nov 16, 2024
15add53
Update ESLint configuration to use the full plugin path for better cl…
lposen Nov 16, 2024
7db31cc
Update .gitignore to include docs directory; add typedoc command to p…
lposen Nov 16, 2024
26afd81
Add typedoc as a dependency in package.json for improved documentatio…
lposen Nov 16, 2024
bce5257
Add eslint-plugin-tsdoc for improved TypeScript documentation linting…
lposen Nov 16, 2024
ffc4467
Update ESLint ignore file to exclude docs directory; add typedoc comm…
lposen Nov 16, 2024
9e9f171
Fixed issues identified by tsdoc/syntax
lposen Nov 16, 2024
7524885
Add typedoc-plugin-coverage for improved documentation coverage track…
lposen Nov 16, 2024
c7725b5
Refactor TypeDoc configuration: remove old typedoc.json, add typedoc.…
lposen Nov 16, 2024
07ffa32
Enhance Iterable class documentation with examples for key methods to…
lposen Nov 16, 2024
25915cf
Enhance documentation for Iterable inbox components: add detailed pro…
lposen Nov 16, 2024
17004be
Enhance documentation for useAppStateListener and useDeviceOrientatio…
lposen Nov 16, 2024
d4b68fb
Enhance documentation for Iterable inbox types: add detailed descript…
lposen Nov 16, 2024
e70277e
Enhance documentation for IterableAction and IterableAttributionInfo …
lposen Nov 16, 2024
de0e2b4
Enhance documentation for IterableCommerceItem, IterableConfig, Itera…
lposen Nov 16, 2024
4a07e91
Enhance documentation for IterableInApp enums and IterableInAppMessag…
lposen Nov 16, 2024
bbbf7f4
Add code block example to IterableInAppManager documentation for show…
lposen Nov 16, 2024
8dbad2c
Updated inbox documentation with info found in docs
lposen Nov 16, 2024
28e66de
Enhance documentation for handleAppLink method: clarify usage, add de…
lposen Nov 16, 2024
56f89b4
Add typedoc-plugin-mermaid for enhanced documentation capabilities an…
lposen Nov 17, 2024
630338a
Enhance documentation across multiple classes and enums: add detailed…
lposen Nov 17, 2024
cbd9583
Enhance documentation for Iterable SDK components: add descriptions f…
lposen Nov 17, 2024
534c676
Fixed typo, as per PR review
lposen Nov 21, 2024
5b442a9
Fixed typo, as per README
lposen Nov 21, 2024
38db7c3
Merge pull request #590 from Iterable/2.0.0-alpha/MOB-10032-add-login…
lposen Nov 21, 2024
2a639ad
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-10033-add-inbox
lposen Nov 21, 2024
6a55dda
Merge branch '2.0.0-alpha/MOB-10033-add-inbox' into 2.0.0-alpha/MOB-1…
lposen Nov 21, 2024
451694d
Merge branch '2.0.0-alpha/MOB-10034-add-commerce-section' into 2.0.0-…
lposen Nov 21, 2024
a3e725b
Fix typo in IterableEventName enum: correct "failse" to "fails" in ha…
lposen Nov 21, 2024
5a29d1f
Enhance documentation across multiple files: clarify descriptions, im…
lposen Nov 21, 2024
d06c597
Update typedoc configuration to enforce documentation requirements: s…
lposen Nov 21, 2024
2d53408
Update .npmignore to include additional default ignores and test files
lposen Nov 22, 2024
f4af82a
Add RNIterableAPI module to bridge React Native with native Iterable SDK
lposen Nov 22, 2024
54fe703
Added loader to various components
lposen Nov 25, 2024
e4464a1
Merge pull request #591 from Iterable/2.0.0-alpha/MOB-10033-add-inbox
lposen Nov 25, 2024
a63b342
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-10034-add-comm…
lposen Nov 25, 2024
abe4d49
Merge branch '2.0.0-alpha/MOB-10034-add-commerce-section' into 2.0.0-…
lposen Nov 25, 2024
a7db7dc
Merge branch '2.0.0-alpha/MOB-10036-delete-old-sample-app' into 2.0.0…
lposen Nov 25, 2024
b859dc4
Merge branch '2.0.0-alpha/MOB-9673-new-unit-tests' into 2.0.0-alpha/M…
lposen Nov 25, 2024
8ea2a20
Merge branch '2.0.0-alpha/MOB-10131-remove-duplicate-code' into 2.0.0…
lposen Nov 25, 2024
575cfbf
Merge branch '2.0.0-alpha/MOB-9995-reorganize-source-code' into 2.0.0…
lposen Nov 25, 2024
533df62
Merge branch '2.0.0-alpha/MOB-10141-make-lint-rules-stricter' into 2.…
lposen Nov 25, 2024
afa5b32
Merge branch '2.0.0-alpha/MOB-9676-new-doc-generator' into 2.0.0-alph…
lposen Nov 25, 2024
01f1fae
Merge branch '2.0.0-alpha/MOB-10208-fix-npmignore' into 2.0.0-alpha/M…
lposen Nov 25, 2024
adcdcf2
Merge pull request #592 from Iterable/2.0.0-alpha/MOB-10034-add-comme…
lposen Nov 26, 2024
8dfcff9
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-10036-delete-o…
lposen Nov 26, 2024
f0a1d6d
Merge branch '2.0.0-alpha/MOB-10036-delete-old-sample-app' into 2.0.0…
lposen Nov 26, 2024
0dcb292
Merge branch '2.0.0-alpha/MOB-9673-new-unit-tests' into 2.0.0-alpha/M…
lposen Nov 26, 2024
a20baec
Merge branch '2.0.0-alpha/MOB-10131-remove-duplicate-code' into 2.0.0…
lposen Nov 26, 2024
989dead
Merge branch '2.0.0-alpha/MOB-9995-reorganize-source-code' into 2.0.0…
lposen Nov 26, 2024
96aef5f
Update iOS link as per PR review
lposen Nov 26, 2024
523795d
Merge branch '2.0.0-alpha/MOB-10036-delete-old-sample-app' into 2.0.0…
evantk91 Nov 27, 2024
005167f
Merge pull request #593 from Iterable/2.0.0-alpha/MOB-10036-delete-ol…
lposen Nov 27, 2024
72af06a
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-9673-new-unit-…
lposen Nov 27, 2024
c765986
Merge branch '2.0.0-alpha/MOB-9673-new-unit-tests' into 2.0.0-alpha/M…
lposen Nov 27, 2024
c8ece69
Merge branch '2.0.0-alpha/MOB-10131-remove-duplicate-code' into 2.0.0…
lposen Nov 27, 2024
e5ade24
Merge branch '2.0.0-alpha/MOB-9995-reorganize-source-code' into 2.0.0…
lposen Nov 27, 2024
c9c0e15
Merge pull request #594 from Iterable/2.0.0-alpha/MOB-9673-new-unit-t…
lposen Nov 27, 2024
af7328b
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-10131-remove-d…
lposen Nov 27, 2024
7cae386
Merge pull request #598 from Iterable/2.0.0-alpha/MOB-10131-remove-du…
lposen Dec 3, 2024
a7dccb5
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-9995-reorganiz…
lposen Dec 3, 2024
d7256fd
Merge pull request #599 from Iterable/2.0.0-alpha/MOB-9995-reorganize…
lposen Dec 3, 2024
89ac82b
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-10141-make-lin…
evantk91 Dec 7, 2024
f6bff5a
Merge branch '2.0.0-alpha/MOB-10141-make-lint-rules-stricter' into 2.…
evantk91 Dec 7, 2024
85201de
Merge branch '2.0.0-alpha/MOB-9676-new-doc-generator' into 2.0.0-alph…
evantk91 Dec 7, 2024
127235d
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-9995-reorganiz…
lposen Dec 9, 2024
06234e3
Merge pull request #597 from Iterable/2.0.0-alpha/MOB-9995-reorganize…
lposen Dec 9, 2024
cbc3418
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-10141-make-lin…
lposen Dec 9, 2024
7f3df5d
Merge branch '2.0.0-alpha/MOB-10141-make-lint-rules-stricter' into 2.…
lposen Dec 11, 2024
5e89fe4
Merge branch '2.0.0-alpha/MOB-9676-new-doc-generator' into 2.0.0-alph…
lposen Dec 11, 2024
cd1b004
fix: enable pre-commit hooks for linting and type checking
lposen Dec 11, 2024
473578e
fix: testing committing from vscode extension
lposen Dec 12, 2024
a1ac752
fix: works when committing from vscode extension!
lposen Dec 12, 2024
41768bf
fix: removed integration folder
lposen Dec 12, 2024
7dcd570
chore: remove references to integration-testing from code files
lposen Dec 13, 2024
dfba298
ci: remove integration testing git workflow
lposen Dec 13, 2024
f2f5122
refactor: added constants instead of values as per PR review
lposen Dec 13, 2024
9186467
Merge pull request #604 from Iterable/2.0.0-alpha/MOB-10141-make-lint…
lposen Dec 13, 2024
dc0f02a
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-9676-new-doc-g…
lposen Dec 13, 2024
fb179a5
refactor: named type as `IterableInAppMessageRaw`
lposen Dec 13, 2024
38493d9
Merge branch '2.0.0-alpha/MOB-9676-new-doc-generator' into 2.0.0-alph…
lposen Dec 13, 2024
3ea4ea6
Merge branch '2.0.0-alpha/MOB-10208-fix-npmignore' into 2.0.0-alpha/M…
lposen Dec 13, 2024
67f853d
Merge branch '2.0.0-alpha/MOB-9680-new-fix-lefthook' into 2.0.0-alpha…
lposen Dec 13, 2024
5471444
Merge branch '2.0.0-alpha/MOB-10208-fix-npmignore' into 2.0.0-alpha/M…
lposen Dec 13, 2024
c012b2f
chore: created tickets to replace todos
lposen Dec 13, 2024
c227d7f
fix: removed unused scaffolding code for android
lposen Dec 13, 2024
0bdaf82
refactor: removed unused ios files adding in scaffolding
lposen Dec 14, 2024
3a9df04
chore: corrected spelling and updated current versions and dependencies
lposen Dec 14, 2024
4a3e470
Merge pull request #610 from Iterable/2.0.0-alpha/MOB-9676-new-doc-ge…
lposen Jan 6, 2025
6d8492f
Merge pull request #611 from Iterable/2.0.0-alpha/MOB-10208-fix-npmig…
lposen Jan 6, 2025
59d843a
Merge pull request #613 from Iterable/2.0.0-alpha/MOB-9680-new-fix-le…
lposen Jan 6, 2025
ae80c18
Merge pull request #612 from Iterable/2.0.0-alpha/MOB-10290-create-lo…
lposen Jan 6, 2025
4e36115
Merge pull request #616 from Iterable/2.0.0-alpha/MOB-10412-remove-in…
lposen Jan 6, 2025
275f583
Merge pull request #617 from Iterable/2.0.0-alpha/MOB-10289-make-todo…
lposen Jan 6, 2025
7ae78b4
Merge pull request #618 from Iterable/2.0.0-alpha/MOB-10430-cleanup
lposen Jan 6, 2025
da59fcb
ci: merge branch 'master' into 2.2.0-alpha/master
lposen Jan 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 17 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ version: "2"
exclude_patterns:
- ".*/"
- "docs/"
- "integration-testing/"
- "**/node_modules/"
- "SampleApp/"
- "scripts/"
- "**/__mocks__/"
- "**/__tests__/"
Expand All @@ -21,3 +19,20 @@ exclude_patterns:
- "**/*.yml"
- "**/build.gradle"
- "**/AndroidManifest.xml"
plugins:
eslint:
enabled: true
editorconfig:
enabled: true
fixme:
enabled: true
git-legal:
enabled: true
shellcheck:
enabled: true
swiftlint:
enabled: true
tailor:
enabled: true
tslint:
enabled: true
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

indent_style = space
indent_size = 2

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docs/
lib/
node_modules/
65 changes: 45 additions & 20 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,51 @@
module.exports = {
env: {
browser: true,
es2021: true,
'react-native/react-native': true
},
root: true,
extends: [
'@react-native',
'plugin:react/recommended',
'standard-with-typescript',
'airbnb/hooks'
'plugin:react-native/all',
'prettier', // Disables ESLint rules that conflict with Prettier
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json']
rules: {
'react/react-in-jsx-scope': 'off',
},
plugins: [
'react',
'react-native'
overrides: [
{
files: ['*.ts', '*.tsx'],
plugins: ['@typescript-eslint/eslint-plugin', 'eslint-plugin-tsdoc'],
extends: [
'plugin:@typescript-eslint/recommended',
// We need more verbose typing to enable the below rule, but we should
// do this in the future
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
rules: {
'@typescript-eslint/no-var-requires': [
'error',
{ allow: ['/package\\.json$'] },
],
'@typescript-eslint/no-require-imports': [
'error',
{ allow: ['/package\\.json$'] },
],
'tsdoc/syntax': 'warn',
},
},
{
files: ['**/*.test.{js,ts,tsx}', '**/__mocks__/*', '**/__tests__/*'],
plugins: ['jest'],
env: {
jest: true,
},
rules: {
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-require-imports': 'off',
},
},
],
settings: {
react: {
version: 'detect'
}
}
}
};
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pbxproj -text
# specific for windows script files
*.bat text eol=crlf
27 changes: 27 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Setup
description: Setup Node.js and install dependencies

runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc

- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
with:
path: |
**/node_modules
.yarn/install-state.gz
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
${{ runner.os }}-yarn-

- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
shell: bash
157 changes: 157 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
merge_group:
types:
- checks_requested

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Lint files
run: yarn lint

- name: Typecheck files
run: yarn typecheck

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Run unit tests
run: yarn test --maxWorkers=2 --coverage

build-library:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Build package
run: yarn prepare

build-android:
runs-on: ubuntu-latest
env:
TURBO_CACHE_DIR: .turbo/android
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Cache turborepo for Android
uses: actions/cache@v3
with:
path: ${{ env.TURBO_CACHE_DIR }}
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-turborepo-android-

- name: Check turborepo cache for Android
run: |
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")

if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
echo "turbo_cache_hit=1" >> $GITHUB_ENV
fi

- name: Install JDK
if: env.turbo_cache_hit != 1
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'

- name: Finalize Android SDK
if: env.turbo_cache_hit != 1
run: |
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"

- name: Cache Gradle
if: env.turbo_cache_hit != 1
uses: actions/cache@v3
with:
path: |
~/.gradle/wrapper
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: Build example for Android
env:
JAVA_OPTS: "-XX:MaxHeapSize=6g"
run: |
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"

build-ios:
runs-on: macos-14
env:
TURBO_CACHE_DIR: .turbo/ios
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Cache turborepo for iOS
uses: actions/cache@v3
with:
path: ${{ env.TURBO_CACHE_DIR }}
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-turborepo-ios-

- name: Check turborepo cache for iOS
run: |
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")

if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
echo "turbo_cache_hit=1" >> $GITHUB_ENV
fi

- name: Cache cocoapods
if: env.turbo_cache_hit != 1
id: cocoapods-cache
uses: actions/cache@v3
with:
path: |
**/ios/Pods
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-cocoapods-

- name: Install cocoapods
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
run: |
cd example/ios
pod install
env:
NO_FLIPPER: 1

- name: Build example for iOS
run: |
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
38 changes: 0 additions & 38 deletions .github/workflows/integration-test.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/test-and-publish.yml

This file was deleted.

Loading
Loading