Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Miha Drofenik committed Dec 25, 2023
1 parent ddc718d commit 2195457
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 61 deletions.
102 changes: 53 additions & 49 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
name: 'wildlife-watcher-service-account.json'
json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_JSON }}
dir: './fastlane'
- name: Copy Provisioning certificate
run: echo -n "${{ secrets.IOS_GOOGLE_SERVICES_PLIST }}" | base64 --decode > ./fastlane/profile.mobileprovision
- name: Copy private key
run: echo -n "${{ secrets.IOS_GOOGLE_SERVICES_PLIST }}" | base64 --decode > ./fastlane/cert.p12
- name: Copy Google Services plist file
run: echo -n "${{ secrets.IOS_GOOGLE_SERVICES_PLIST }}" | base64 --decode > ./ios/GoogleService-Info.plist
- name: Install npm dependency
Expand All @@ -40,52 +44,52 @@ jobs:
- name: Run fastlane
run: |
bundle exec fastlane ios build_debug
android-build:
environment: development
name: Android development build
runs-on: ubuntu-latest
container:
image: reactnativecommunity/react-native-android
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
- name: Checkout repo from dev branch
uses: actions/checkout@v3
with:
ref: initial
- name: create-json
id: add-firebase-credentials
uses: jsdaniell/create-json@v1.2.2
with:
name: 'wildlife-watcher-service-account.json'
json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_JSON }}
dir: './fastlane'
- name: create-json
id: add-android-credentials
uses: jsdaniell/create-json@v1.2.2
with:
name: 'google-services.json'
json: ${{ secrets.ANDROID_GOOGLE_SERVICES_JSON }}
dir: './android/app'
- name: Install npm dependency
run: npm install
- name: Install bundler
run: |
gem install bundler -v 2.4.10
- name: Install gem plugins
run: |
bundle install
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run fastlane
run: |
bundle exec fastlane android build_debug
env:
APP_ID: ${{ secrets.APP_ID }}
ANDROID_ARTEFACT_PATH: ${{ secrets.ANDROID_ARTEFACT_PATH }}
# android-build:
# environment: development
# name: Android development build
# runs-on: ubuntu-latest
# container:
# image: reactnativecommunity/react-native-android
# steps:
# - name: Cancel previous runs
# uses: styfle/cancel-workflow-action@0.9.1
# - name: Checkout repo from dev branch
# uses: actions/checkout@v3
# with:
# ref: initial
# - name: create-json
# id: add-firebase-credentials
# uses: jsdaniell/create-json@v1.2.2
# with:
# name: 'wildlife-watcher-service-account.json'
# json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_JSON }}
# dir: './fastlane'
# - name: create-json
# id: add-android-credentials
# uses: jsdaniell/create-json@v1.2.2
# with:
# name: 'google-services.json'
# json: ${{ secrets.ANDROID_GOOGLE_SERVICES_JSON }}
# dir: './android/app'
# - name: Install npm dependency
# run: npm install
# - name: Install bundler
# run: |
# gem install bundler -v 2.4.10
# - name: Install gem plugins
# run: |
# bundle install
# - uses: actions/cache@v3
# with:
# path: |
# ~/.gradle/caches
# ~/.gradle/wrapper
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
# restore-keys: |
# ${{ runner.os }}-gradle-
# - name: Run fastlane
# run: |
# bundle exec fastlane android build_debug
# env:
# APP_ID: ${{ secrets.APP_ID }}
# ANDROID_ARTEFACT_PATH: ${{ secrets.ANDROID_ARTEFACT_PATH }}
Binary file added cert.mobileprovision
Binary file not shown.
6 changes: 6 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
platform :ios do
desc "Build a debug version of the app"
lane :build_debug do
install_provisioning_profile(path: "./fastlane/profile.mobileprovision")
import_certificate(
certificate_path: "./fastlane/cert.p12",
certificate_password: ENV["CERTIFICATE_PASSWORD"] || "default"
)

build_ios_app(
silent: true,
scheme: 'WildlifeWatcher',
Expand Down
16 changes: 4 additions & 12 deletions ios/WildlifeWatcher.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = com.WildlifeWatcher;
PRODUCT_BUNDLE_IDENTIFIER = com.WildlifeWatcher;
PRODUCT_NAME = WildlifeWatcher;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
Expand All @@ -327,8 +326,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = com.WildlifeWatcher;
PRODUCT_BUNDLE_IDENTIFIER = com.WildlifeWatcher;
PRODUCT_NAME = WildlifeWatcher;
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
Expand Down Expand Up @@ -415,10 +413,7 @@
"-DFOLLY_USE_LIBCPP=1",
"-DFOLLY_CFG_NO_COROUTINES=1",
);
OTHER_LDFLAGS = (
"$(inherited)",
" ",
);
OTHER_LDFLAGS = "$(inherited) ";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
Expand Down Expand Up @@ -497,10 +492,7 @@
"-DFOLLY_USE_LIBCPP=1",
"-DFOLLY_CFG_NO_COROUTINES=1",
);
OTHER_LDFLAGS = (
"$(inherited)",
" ",
);
OTHER_LDFLAGS = "$(inherited) ";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
Expand Down
1 change: 1 addition & 0 deletions pkey.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @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