Skip to content

Commit

Permalink
attempt 12 fcm fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Aug 13, 2024
1 parent 8512576 commit e6e6f03
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 134 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-sample-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Build and upload Android app via Fastlane
uses: maierj/fastlane-action@v3.1.0
with:
subdirectory: Apps/${{ matrix.sample-app }}/android
subdirectory: Apps/${{ matrix.sample-app }}
lane: 'android build'
env:
FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64: ${{ secrets.FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64 }}
Expand Down
2 changes: 2 additions & 0 deletions Apps/APN/fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
team_id "2YC97BQN3N"

# Include all of the bundle identifiers for your iOS app and for your rich push target.
# You find the bundle identifier of each app inside of Xcode - https://stackoverflow.com/a/59131511
app_identifier([
"io.customer.ami",
"io.customer.ami.richpush",
Expand Down
14 changes: 14 additions & 0 deletions Apps/FCM/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-find_firebase_app_id (0.1.2)
fastlane-plugin-firebase_app_distribution (0.9.1)
google-apis-firebaseappdistribution_v1 (~> 0.3.0)
google-apis-firebaseappdistribution_v1alpha (~> 0.2.0)
fastlane-plugin-versioning_android (0.1.1)
fastlane-plugin-versioning_ios (0.1.0)
ffi (1.17.0)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
Expand All @@ -180,6 +186,10 @@ GEM
representable (~> 3.0)
retriable (>= 2.0, < 4.a)
rexml
google-apis-firebaseappdistribution_v1 (0.3.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-firebaseappdistribution_v1alpha (0.2.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-iamcredentials_v1 (0.17.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-playcustomapp_v1 (0.13.0)
Expand Down Expand Up @@ -287,6 +297,10 @@ PLATFORMS
DEPENDENCIES
cocoapods
fastlane
fastlane-plugin-find_firebase_app_id
fastlane-plugin-firebase_app_distribution
fastlane-plugin-versioning_android
fastlane-plugin-versioning_ios

BUNDLED WITH
2.4.22
9 changes: 8 additions & 1 deletion Apps/FCM/ios/fastlane/Appfile → Apps/FCM/fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
team_id "2YC97BQN3N"

# Include all of the bundle identifiers for your iOS app and for your rich push target.
# You find the bundle identifier of each app inside of Xcode - https://stackoverflow.com/a/59131511
app_identifier(["io.customer.rn-sample.fcm", "io.customer.rn-sample.fcm.richpush"])
app_identifier([
"io.customer.rn-sample.fcm",
"io.customer.rn-sample.fcm.richpush",
])

package_name("io.customer.rn_sample.fcm")
2 changes: 2 additions & 0 deletions Apps/FCM/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# imports shared Fastfile from "Apps/fastlane/Fastfile"
import "../../fastlane/Fastfile"
8 changes: 8 additions & 0 deletions Apps/FCM/fastlane/Gymfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# For more information about this configuration run `fastlane gym --help` or check
# out the documentation at https://docs.fastlane.tools/actions/gym/#gymfile

configuration("Release")
export_method("ad-hoc")
# scheme in XCode workspace of Flutter generated iOS app
scheme("FCMSampleApp")
workspace("ios/FCMSampleApp.xcworkspace")
6 changes: 6 additions & 0 deletions Apps/FCM/fastlane/Matchfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
storage_mode "google_cloud"
type "development"
readonly true
# IMPORTANT: use the same gcloud bucket name for *all* iOS apps we use in the company.
# fastlane is smart enough to share certificates while creating separate provisioning profiles for each app.
google_cloud_bucket_name "remote-habits-ios-signing"
6 changes: 6 additions & 0 deletions Apps/FCM/fastlane/Pluginfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Gemfile containing all the necessary plugins used by fastlane in the project

gem 'fastlane-plugin-firebase_app_distribution'
gem 'fastlane-plugin-versioning_android'
gem 'fastlane-plugin-versioning_ios'
gem 'fastlane-plugin-find_firebase_app_id'
1 change: 0 additions & 1 deletion Apps/FCM/ios/fastlane/Fastfile

This file was deleted.

131 changes: 0 additions & 131 deletions Apps/FCM/ios/fastlane/README.md

This file was deleted.

1 change: 1 addition & 0 deletions Apps/fastlane/helpers/build_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Build release APK using Fastlane's Gradle tool
gradle(
project_dir: "./android",
task: "assemble",
build_type: "Release"
)
Expand Down

0 comments on commit e6e6f03

Please sign in to comment.