Skip to content

Commit

Permalink
Merge pull request #59 from berty/bump-rn
Browse files Browse the repository at this point in the history
fix: bump react-native
  • Loading branch information
n0izn0iz authored Feb 15, 2022
2 parents 86a8cf3 + cfe0bef commit 7f7ba2d
Show file tree
Hide file tree
Showing 15 changed files with 424 additions and 348 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,10 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Setup Bundler
if: ${{ matrix.selfhosted }}
working-directory: ./rn/ios
run: |
gem --version
gem install bundler --user-install
bundler -v
bundle update --bundler
- name: Cache Ruby modules
uses: actions/[email protected]
- uses: ruby/setup-ruby@v1
with:
path: rn/ios/vendor/bundle
key: ${{ runner.OS }}-bundle-v2-${{ hashFiles('rn/Gemfile.lock') }}
restore-keys: ${{ runner.OS }}-bundle-v2-
working-directory: rn
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Setup macOS keychain
working-directory: rn/ios/dummy-identity
Expand Down
2 changes: 1 addition & 1 deletion rn/ios/.bundle/config → rn/.bundle/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
BUNDLE_PATH: "vendor/bundle"
BUNDLE_FORCE_RUBY_PLATFORM: 1
2 changes: 1 addition & 1 deletion rn/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ android/app/gradlew.bat
# Berty

/.link
/ios/vendor/
/vendor/
/gomobile-ipfs/
/ios/vendored_pods/
/react-native-labs-bridge/ios/Labsbridge.xcframework
Expand Down
1 change: 1 addition & 0 deletions rn/.ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.4
4 changes: 4 additions & 0 deletions rn/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '2.7.4'
gem 'cocoapods', '~> 1.11', '>= 1.11.2'
19 changes: 9 additions & 10 deletions rn/ios/Gemfile.lock → rn/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GEM
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
atomos (0.1.3)
claide (1.0.3)
claide (1.1.0)
cocoapods (1.11.2)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
Expand Down Expand Up @@ -58,12 +58,12 @@ GEM
escape (0.0.4)
ethon (0.15.0)
ffi (>= 1.15.0)
ffi (1.15.4)
ffi (1.15.5)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
httpclient (2.8.3)
i18n (1.8.11)
i18n (1.9.1)
concurrent-ruby (~> 1.0)
json (2.6.1)
minitest (5.15.0)
Expand All @@ -85,17 +85,16 @@ GEM
colored2 (~> 3.1)
nanaimo (~> 0.3.0)
rexml (~> 3.2.4)
zeitwerk (2.5.3)
zeitwerk (2.5.4)

PLATFORMS
arm64-darwin-21
ruby
universal-darwin-20

DEPENDENCIES
cocoapods (~> 1.11.2)
ethon (>= 0.13.0)
rexml (~> 3.2)
cocoapods (~> 1.11, >= 1.11.2)

RUBY VERSION
ruby 2.7.4p191

BUNDLED WITH
2.2.32
2.2.27
8 changes: 4 additions & 4 deletions rn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ node_modules/.mkt: yarn.lock package.json $(wildcard patches/*)

#### iOS

ios/vendor/bundle: ios/Gemfile ios/Gemfile.lock
cd ios && bundle install
vendor/bundle: Gemfile Gemfile.lock
eval "$$(frum init)" && bundle install
touch $@

ios/Pods/.mkt: $(IOS_CORE) ios/Podfile ios/Podfile.lock node_modules/.mkt ios/vendor/bundle
cd ios && bundle exec pod install --repo-update
ios/Pods/.mkt: $(IOS_CORE) ios/Podfile ios/Podfile.lock node_modules/.mkt vendor/bundle
eval "$$(frum init)" && cd ios && bundle exec pod install --repo-update
touch $@

#### Android
Expand Down
29 changes: 29 additions & 0 deletions rn/android/app/src/main/res/drawable/rn_edit_text_material.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
android:insetTop="@dimen/abc_edit_text_inset_top_material"
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material">
<selector>
<!--
This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
-->
<item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
<item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
</selector>
</inset>
9 changes: 9 additions & 0 deletions rn/android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
</style>

</resources>
6 changes: 2 additions & 4 deletions rn/ios/BertyLabs.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 ";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand All @@ -684,7 +684,6 @@
LIBRARY_SEARCH_PATHS = (
"\"$(SDKROOT)/usr/lib/swift\"",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
"\"$(inherited)\"",
);
MTL_ENABLE_DEBUG_INFO = YES;
Expand Down Expand Up @@ -726,7 +725,7 @@
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 ";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand All @@ -743,7 +742,6 @@
LIBRARY_SEARCH_PATHS = (
"\"$(SDKROOT)/usr/lib/swift\"",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
"\"$(inherited)\"",
);
MTL_ENABLE_DEBUG_INFO = NO;
Expand Down
7 changes: 0 additions & 7 deletions rn/ios/Gemfile

This file was deleted.

Loading

0 comments on commit 7f7ba2d

Please sign in to comment.