This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Your Website Title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script type="text/javascript"> | |
window.onload = function() { | |
var isAndroid = /android/i.test(navigator.userAgent); | |
var isiOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; | |
if (isAndroid) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity | |
android:name="com.shafayat.helloworld.ui.features.main.MainActivity" | |
android:exported="true"> | |
<tools:validation testUrl="https://helloworldmobile.github.io" /> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD workflow | |
on: push | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Build and distribute app | |
run: | | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
git config --global user.email ${{github.event.pusher.email}} | |
git config --global user.name ${{github.event.pusher.name}} | |
bundle exec fastlane build_and_distribute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Cache Ruby dependencies | |
uses: actions/cache@v2 | |
with: | |
path: 'vendor/bundle' | |
key: ${{ runner.os }}-gems-${{ secrets.GEMS_CACHE_VERSION }}-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name; Checkout the repository | |
uses: actions/checkout@v2 | |
with: fetch-depth: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI workflow | |
# Events when the workflow will dispatch/run. | |
on: push | |
jobs: | |
# Define jobs and their steps that will be executed. | |
deploy: | |
steps: | |
# Define steps to complete the current job. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fastlane_require "dotenv" | |
PACKAGE_NAME = "<package name here>" | |
FIREBASE_APP_ID = "<firebase app id here>" | |
KEYSTORE_PATH = nil | |
FIREBASE_KEY_PATH = nil | |
PLAYSTORE_KEY_PATH = nil | |
BUNDLE_FILE_PATH = nil | |
UPDATED_VERSION_CODE = nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Responsible for testing, building and uploading bundle to firebase app distribution and playstore by calling other private lanes." | |
lane build_and_distribute: | |
increment_version_code_in_project_gradle() | |
run_unit_tests() | |
build() | |
distribute_to_firebase() | |
distribute_playstore() | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "After successful execution of all task, this block is called" | |
after_all do | |
git_add(path: "*") | |
git_commit( | |
path: "*", | |
message: "#" + UPDATED_VERSION_CODE + " released" | |
) | |
push_to_git_remote( | |
local_branch: buildConfigs.key(options[:buildConfig]), | |
remote: "origin", |
NewerOlder