diff --git a/bitrise.yml b/bitrise.yml
index dec34566..e412aa72 100644
--- a/bitrise.yml
+++ b/bitrise.yml
@@ -2,6 +2,18 @@
format_version: '11'
default_step_lib_source: 'https://github.com/bitrise-io/bitrise-steplib.git'
project_type: react-native
+meta:
+ bitrise.io:
+ stack: osx-xcode-13.2.x
+app:
+ envs:
+ - opts:
+ is_expand: false
+ PLATFORM: all
+trigger_map:
+- pull_request_source_branch: '*'
+ pull_request_target_branch: master
+ workflow: lint
workflows:
# deploy:
# description: >
@@ -62,6 +74,7 @@ workflows:
steps:
- activate-ssh-key@4: {}
- git-clone@6: {}
+ - cache-pull@2: {}
- yarn@0:
inputs:
- command: install
@@ -71,16 +84,75 @@ workflows:
- yarn@0:
inputs:
- command: typescript
+ - cache-push@2:
+ inputs:
+ - cache_paths: |-
+ $HOME/.rbenv
+ ./ios/Pods
+ ./node_modules
+ $HOME/.gradle
+ ./.gradle
+ - ignore_check_on_paths: |-
+ $HOME/.gradle/caches/*.lock
+ ./.gradle/*.lock
+ ./.gradle/*.bin
+ - deploy-to-bitrise-io@2: {}
+ prod_android:
+ description: >
+ Create Android release build
+ steps:
+ - activate-ssh-key@4: {}
+ - git-clone@6: {}
+ - cache-pull@2: {}
+ - yarn@0:
+ inputs:
+ - workdir: example
+ - command: install
+ - android_build@1:
+ inputs:
+ - variant: release
+ - build_type: apk
+ - project_location: "./example/android"
+ - cache-push@2:
+ inputs:
+ - cache_paths: |-
+ $HOME/.rbenv
+ ./ios/Pods
+ ./node_modules
+ $HOME/.gradle
+ ./.gradle
+ - ignore_check_on_paths: |-
+ $HOME/.gradle/caches/*.lock
+ ./.gradle/*.lock
+ ./.gradle/*.bin
+ - deploy-to-bitrise-io@2: {}
+ prod_ios:
+ description: >
+ Create iOS release build
+ steps:
+ - activate-ssh-key@4: {}
+ - git-clone@6: {}
+ - cache-pull@2: {}
+ - yarn@0:
+ inputs:
+ - workdir: example
+ - command: install
+ - cocoapods-install@2: {}
+ # TODO: replace with proper bitrise step
+ - script:
+ inputs:
+ - content: |
+ xcodebuild -workspace ios/reactnativestickyparallaxheaderexample.xcworkspace -scheme reactnativestickyparallaxheaderexamplerelease -sdk iphonesimulator -derivedDataPath ios/build
+ - cache-push@2:
+ inputs:
+ - cache_paths: |-
+ $HOME/.rbenv
+ ./ios/Pods
+ ./node_modules
+ $HOME/.gradle
+ ./.gradle
+ - ignore_check_on_paths: |-
+ $HOME/.gradle/caches/*.lock
+ ./.gradle/*.lock
+ ./.gradle/*.bin
- deploy-to-bitrise-io@2: {}
-meta:
- bitrise.io:
- stack: osx-xcode-13.2.x
-app:
- envs:
- - opts:
- is_expand: false
- PLATFORM: all
-trigger_map:
-- pull_request_source_branch: '*'
- pull_request_target_branch: master
- workflow: lint
diff --git a/example/ios/reactnativestickyparallaxheaderexample.xcodeproj/xcshareddata/xcschemes/reactnativestickyparallaxheaderexamplerelease.xcscheme b/example/ios/reactnativestickyparallaxheaderexample.xcodeproj/xcshareddata/xcschemes/reactnativestickyparallaxheaderexamplerelease.xcscheme
new file mode 100644
index 00000000..d7d12acb
--- /dev/null
+++ b/example/ios/reactnativestickyparallaxheaderexample.xcodeproj/xcshareddata/xcschemes/reactnativestickyparallaxheaderexamplerelease.xcscheme
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/example/ios/reactnativestickyparallaxheaderexample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/ios/reactnativestickyparallaxheaderexample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/example/ios/reactnativestickyparallaxheaderexample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/package.json b/package.json
index bccdecb6..41d3d41c 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,7 @@
"prepare": "bob build",
"release": "release-it",
"example": "yarn --cwd example",
- "pods": "echo pods",
+ "pods": "cd example && pod-install && cd ..",
"bootstrap": "yarn example && yarn && yarn pods",
"prepush": "yarn lint && yarn typescript"
},
@@ -57,6 +57,7 @@
"eslint-plugin-prettier": "^4.0.0",
"husky": "^4.2.3",
"jest": "27.5.1",
+ "pod-install": "^0.1.37",
"prettier": "2.6.2",
"react": "17.0.2",
"react-freeze": "1.0.0",
diff --git a/yarn.lock b/yarn.lock
index 2800baf1..2cd588f0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -8189,6 +8189,11 @@ plist@^3.0.2, plist@^3.0.5:
base64-js "^1.5.1"
xmlbuilder "^9.0.7"
+pod-install@^0.1.37:
+ version "0.1.37"
+ resolved "https://registry.yarnpkg.com/pod-install/-/pod-install-0.1.37.tgz#6ec1cf08fd6259afae6b59136879a679d85a2249"
+ integrity sha512-sKoBTjb1AfZpFNrKjVAMynsa8v72hw9Ka1eGaC4jeBnKj/Df5jY3ofYt2CMODGYprcT7+eiDo/Pc1a09QZPCcA==
+
posix-character-classes@^0.1.0:
version "0.1.1"
resolved "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz"