Skip to content

Commit

Permalink
[Chore] Generate & update sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
bot-nimble committed Nov 30, 2023
1 parent db5cd5e commit 102b1f1
Show file tree
Hide file tree
Showing 7 changed files with 270 additions and 165 deletions.
52 changes: 52 additions & 0 deletions sample/.github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Deploy production app to Firebase App Distribution
on:
push:
branches:
- main

jobs:
deploy_android:
name: Deploy Android app to Firebase App Distribution
runs-on: ubuntu-latest
timeout-minutes: 30
environment: production
defaults:
run:
working-directory: ./sample
steps:
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'

- name: Checkout source code
uses: actions/checkout@v3

- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up the necessary config
run: |
echo "${{ secrets.BUILD_KONFIG_PROPERTIES }}" > buildKonfig.properties
echo "${{ secrets.ANDROID_SIGNING_PROPERTIES }}" > signing.properties
echo "${{ secrets.ANDROID_RELEASE_KEYSTORE }}" | base64 --decode > config/release.keystore
- name: Build production APK
run: ./gradlew assembleProductionRelease -PversionCode=$GITHUB_RUN_NUMBER

- name: Deploy production to Firebase
uses: wzieba/[email protected]
with:
appId: ${{ vars.ANDROID_FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIAL_FILE_CONTENT }}
groups: nimble
file: sample/android/build/outputs/apk/production/release/android-production-release.apk
49 changes: 49 additions & 0 deletions sample/.github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy staging app to Firebase App Distribution
on:
push:
branches:
- develop

jobs:
deploy_android:
name: Deploy Android app to Firebase App Distribution
runs-on: ubuntu-latest
timeout-minutes: 30
environment: staging
defaults:
run:
working-directory: ./sample
steps:
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'

- name: Checkout source code
uses: actions/checkout@v3

- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up the necessary config
run: echo "${{ secrets.BUILD_KONFIG_PROPERTIES }}" > buildKonfig.properties

- name: Build staging APK
run: ./gradlew assembleStagingDebug -PversionCode=$GITHUB_RUN_NUMBER

- name: Deploy staging to Firebase
uses: wzieba/[email protected]
with:
appId: ${{ vars.ANDROID_FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIAL_FILE_CONTENT }}
groups: nimble
file: sample/android/build/outputs/apk/staging/debug/android-staging-debug.apk
5 changes: 5 additions & 0 deletions sample/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Code analysis, test and generate sample project
on:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
push:
branches-ignore:
- main
- develop
- 'release/*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions sample/android/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@
#-keepnames class <1>$$serializer { # -keepnames suffices; class is kept when serializer() is kept.
# static <1>$$serializer INSTANCE;
#}

# Suppress: Missing class org.slf4j.impl.StaticLoggerBinder while running R8
-dontwarn org.slf4j.impl.StaticLoggerBinder
60 changes: 28 additions & 32 deletions sample/ios/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GEM
specs:
CFPropertyList (3.0.6)
rexml
activesupport (7.1.1)
activesupport (7.1.2)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
Expand All @@ -24,21 +24,21 @@ GEM
yaml (~> 0.2)
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.847.0)
aws-sdk-core (3.186.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-eventstream (1.3.0)
aws-partitions (1.862.0)
aws-sdk-core (3.190.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.5)
aws-sigv4 (~> 1.8)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.72.0)
aws-sdk-core (~> 3, >= 3.184.0)
aws-sdk-kms (1.74.0)
aws-sdk-core (~> 3, >= 3.188.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.136.0)
aws-sdk-core (~> 3, >= 3.181.0)
aws-sdk-s3 (1.141.0)
aws-sdk-core (~> 3, >= 3.189.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.6)
aws-sigv4 (1.6.1)
aws-sigv4 (~> 1.8)
aws-sigv4 (1.8.0)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
base64 (0.2.0)
Expand All @@ -48,12 +48,12 @@ GEM
cork
nap
open4 (~> 1.3)
cocoapods (1.14.2)
cocoapods (1.14.3)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.14.2)
cocoapods-core (= 1.14.3)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 2.0)
cocoapods-downloader (>= 2.1, < 3.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.6.0, < 2.0)
Expand All @@ -66,7 +66,7 @@ GEM
nap (~> 1.0)
ruby-macho (>= 2.3.0, < 3.0)
xcodeproj (>= 1.23.0, < 2.0)
cocoapods-core (1.14.2)
cocoapods-core (1.14.3)
activesupport (>= 5.0, < 8)
addressable (~> 2.8)
algoliasearch (~> 1.0)
Expand All @@ -77,7 +77,7 @@ GEM
public_suffix (~> 4.0)
typhoeus (~> 1.0)
cocoapods-deintegrate (1.0.5)
cocoapods-downloader (2.0)
cocoapods-downloader (2.1)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.1)
Expand All @@ -93,7 +93,7 @@ GEM
connection_pool (2.4.1)
cork (0.3.0)
colored2 (~> 3.1)
danger (9.3.2)
danger (9.4.0)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
colored2 (~> 3.1)
Expand All @@ -104,13 +104,13 @@ GEM
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
no_proxy_fix
octokit (~> 6.0)
octokit (>= 6.0, < 8.0)
terminal-table (>= 1, < 4)
danger-plugin-api (1.0.0)
danger (> 2.0)
danger-swiftformat (0.8.1)
danger-swiftformat (0.9.0)
danger-plugin-api (~> 1.0)
danger-swiftlint (0.33.0)
danger-swiftlint (0.34.0)
danger
rake (> 10)
thor (~> 0.19)
Expand All @@ -123,16 +123,15 @@ GEM
declarative (0.0.20)
digest-crc (0.6.5)
rake (>= 12.0.0, < 14.0.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
domain_name (0.6.20231109)
dotenv (2.8.1)
drb (2.2.0)
ruby2_keywords
emoji_regex (3.2.3)
escape (0.0.4)
ethon (0.16.0)
ffi (>= 1.15.0)
excon (0.104.0)
excon (0.105.0)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
Expand Down Expand Up @@ -164,7 +163,7 @@ GEM
faraday_middleware (1.2.0)
faraday (~> 1.0)
fastimage (2.2.7)
fastlane (2.216.0)
fastlane (2.217.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
Expand Down Expand Up @@ -213,7 +212,7 @@ GEM
git (1.18.0)
addressable (~> 2.8)
rchardet (~> 1.8)
google-apis-androidpublisher_v3 (0.51.0)
google-apis-androidpublisher_v3 (0.53.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-core (0.11.2)
addressable (~> 2.5, >= 2.5.1)
Expand Down Expand Up @@ -277,7 +276,7 @@ GEM
naturally (2.2.1)
netrc (0.11.0)
no_proxy_fix (0.1.2)
octokit (6.1.1)
octokit (7.2.0)
faraday (>= 1, < 3)
sawyer (~> 0.9)
open4 (1.3.4)
Expand Down Expand Up @@ -320,14 +319,11 @@ GEM
tty-screen (0.8.1)
tty-spinner (0.9.3)
tty-cursor (~> 0.7)
typhoeus (1.4.0)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)
unicode-display_width (2.5.0)
webrick (1.8.1)
word_wrap (1.0.0)
Expand Down Expand Up @@ -368,4 +364,4 @@ DEPENDENCIES
xcov

BUNDLED WITH
2.4.19
2.4.22
52 changes: 26 additions & 26 deletions sample/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,41 @@ PODS:
- ArkanaKeysInterfaces (1.0.0)
- Differentiator (5.0.0)
- Factory (2.3.1)
- Firebase/CoreOnly (10.17.0):
- FirebaseCore (= 10.17.0)
- Firebase/Crashlytics (10.17.0):
- Firebase/CoreOnly (10.18.0):
- FirebaseCore (= 10.18.0)
- Firebase/Crashlytics (10.18.0):
- Firebase/CoreOnly
- FirebaseCrashlytics (~> 10.17.0)
- FirebaseCore (10.17.0):
- FirebaseCrashlytics (~> 10.18.0)
- FirebaseCore (10.18.0):
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/Logger (~> 7.8)
- FirebaseCoreExtension (10.17.0):
- GoogleUtilities/Environment (~> 7.12)
- GoogleUtilities/Logger (~> 7.12)
- FirebaseCoreExtension (10.18.0):
- FirebaseCore (~> 10.0)
- FirebaseCoreInternal (10.17.0):
- FirebaseCoreInternal (10.18.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseCrashlytics (10.17.0):
- FirebaseCrashlytics (10.18.0):
- FirebaseCore (~> 10.5)
- FirebaseInstallations (~> 10.0)
- FirebaseSessions (~> 10.5)
- GoogleDataTransport (~> 9.2)
- GoogleUtilities/Environment (~> 7.8)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (~> 2.1)
- FirebaseInstallations (10.17.0):
- FirebaseInstallations (10.18.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- PromisesObjC (~> 2.1)
- FirebaseSessions (10.17.0):
- FirebaseSessions (10.18.0):
- FirebaseCore (~> 10.5)
- FirebaseCoreExtension (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleDataTransport (~> 9.2)
- GoogleUtilities/Environment (~> 7.10)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesSwift (~> 2.1)
- GoogleDataTransport (9.2.5):
- GoogleDataTransport (9.3.0):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
Expand Down Expand Up @@ -96,8 +96,8 @@ PODS:
- Sourcery (2.1.1):
- Sourcery/CLI-Only (= 2.1.1)
- Sourcery/CLI-Only (2.1.1)
- SwiftFormat/CLI (0.52.8)
- SwiftLint (0.53.0)
- SwiftFormat/CLI (0.52.10)
- SwiftLint (0.54.0)
- Wormholy (1.7.0)
- xcbeautify (0.17.0)

Expand Down Expand Up @@ -183,14 +183,14 @@ SPEC CHECKSUMS:
ArkanaKeysInterfaces: 81d21923368b058e2b6fd932ec96855166ef6d19
Differentiator: e8497ceab83c1b10ca233716d547b9af21b9344d
Factory: 0aaf52d866846f0d50f42442cc39a91b8f6a07e0
Firebase: f4ac0b02927af9253ae094d23deecf0890da7374
FirebaseCore: 534544dd98cabcf4bf8598d88ec683b02319a528
FirebaseCoreExtension: 47720bb330d7041047c0935a34a3a4b92f818074
FirebaseCoreInternal: 2cf9202e226e3f78d2bf6d56c472686b935bfb7f
FirebaseCrashlytics: d78651ad7db206ef98269e103ac38d69d569200a
FirebaseInstallations: 9387bf15abfc69a714f54e54f74a251264fdb79b
FirebaseSessions: 49f39e5c10e3f9fdd38d01b748329bae2a2fa8ed
GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2
Firebase: 414ad272f8d02dfbf12662a9d43f4bba9bec2a06
FirebaseCore: 2322423314d92f946219c8791674d2f3345b598f
FirebaseCoreExtension: 62b201498aa10535801cdf3448c7f4db5e24ed80
FirebaseCoreInternal: 8eb002e564b533bdcf1ba011f33f2b5c10e2ed4a
FirebaseCrashlytics: 86d5bce01f42fa1db265f87ff1d591f04db610ec
FirebaseInstallations: e842042ec6ac1fd2e37d7706363ebe7f662afea4
FirebaseSessions: f90fe9212ee2818641eda051c0835c9c4e30d9ae
GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
IQKeyboardManagerSwift: 12d89768845bb77b55cc092ecc2b1f9370f06b76
KeychainAccess: c0c4f7f38f6fc7bbe58f5702e25f7bd2f65abf51
Expand All @@ -212,11 +212,11 @@ SPEC CHECKSUMS:
RxTest: a23f26bb53a5e146a0a69db4f0fa0b69001ce7f4
SnapKit: e01d52ebb8ddbc333eefe2132acf85c8227d9c25
Sourcery: 3a6e2e9bd439caeee302e8150dc712d2f8ef45b3
SwiftFormat: e60dbe6a704faf75f3089744e5f508aae0be4ad5
SwiftLint: 5ce4d6a8ff83f1b5fd5ad5dbf30965d35af65e44
SwiftFormat: ffd19286990ae717ca1729b853a75a439dfcf77a
SwiftLint: c1de071d9d08c8aba837545f6254315bc900e211
Wormholy: ab1c8c2f02f58587a0941deb0088555ffbf039a1
xcbeautify: 6e2f57af5c3a86d490376d5758030a8dcc201c1b

PODFILE CHECKSUM: 85d4cae5e270d7a65db55a5c553c6c13b91a7b7f

COCOAPODS: 1.14.2
COCOAPODS: 1.14.3
Loading

0 comments on commit 102b1f1

Please sign in to comment.