-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: Version utils & Github actions (#1072)
* github action: - custom apk: - packet name with git commit id - app name with git commit id - cached `npm install` - update actions versions * About page: - Version based on package.json - added git hash to the version if not Stable - RELEASE_DATE, GIT_HASH, BUILD_TYPE created at build time from setEnvFile.cjs - special BUILD_TYPE for github actions - Version modal copy on click - removed versionUtils * expo-clipboard instead of react-native clipboard * buildRelease Release instead of Debug ^^' Gihtub Actions => Github Action
- Loading branch information
Showing
11 changed files
with
122 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
declare module '@env' { | ||
export const MYANIMELIST_CLIENT_ID: string; | ||
export const ANILIST_CLIENT_ID: string; | ||
export const GIT_HASH: string; | ||
export const RELEASE_DATE: string; | ||
export const BUILD_TYPE: 'Debug' | 'Release' | 'Beta' | 'Github Action'; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const fs = require('fs'); | ||
const os = require('os'); | ||
const path = require('path'); | ||
const { execSync } = require('child_process'); | ||
|
||
const formattedDate = new Date().getTime(); | ||
|
||
const commitHash = execSync('git rev-parse --short HEAD').toString().trim(); | ||
|
||
const buildType = process.argv[2] || 'Beta'; | ||
|
||
let data = | ||
`BUILD_TYPE=${buildType}` + | ||
os.EOL + | ||
`GIT_HASH=${commitHash}` + | ||
os.EOL + | ||
`RELEASE_DATE=${formattedDate}`; | ||
|
||
fs.writeFile(path.join(__dirname, '..', '.env'), data, 'utf8', err => { | ||
if (err) { | ||
console.log(err); | ||
} | ||
}); |
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
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
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
This file was deleted.
Oops, something went wrong.