This commit is contained in:
Zhiyuan Zheng 2021-04-16 14:58:18 +02:00
parent 58a4b9953f
commit 3e52f175b7
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
4 changed files with 8 additions and 7 deletions

View File

@ -21,10 +21,11 @@
## OTA release channels ## OTA release channels
* `MAJOR-environment`. Environments include `production`, `staging` and `development`. * `MAJOR-environment`. Environments include `release`, `candidate` and `development`.
## Major versions mapping to native module versions ## Major versions mapping to native module versions
| Major version | Native module version | | Major version | Native module version | Expo version |
| :-----------: | :-------------------: | | :-----------: | :-------------------: | :----------: |
| `0` | `210201` | | `0` | `210201` | `40.0.0` |
| `1` | `210317` | `40.0.0` |

View File

@ -106,7 +106,7 @@ private_lane :build_ios do
output_directory: BUILD_DIRECTORY, output_directory: BUILD_DIRECTORY,
silent: true silent: true
) )
upload_to_app_store( ipa: IPA_FILE ) upload_to_app_store( ipa: IPA_FILE, app_version: VERSION )
else else
if !is_ci if !is_ci
match( type: "development", readonly: true ) match( type: "development", readonly: true )

View File

@ -43,7 +43,7 @@ const SettingsTooot: React.FC = () => {
}} }}
/> />
{__DEV__ || {__DEV__ ||
['production', 'development'].some(channel => ['release', 'development'].some(channel =>
Updates.releaseChannel?.includes(channel) Updates.releaseChannel?.includes(channel)
) ? ( ) ? (
<MenuRow <MenuRow

View File

@ -40,7 +40,7 @@ const contextsSlice = createSlice({
initialState: contextsInitialState as ContextsState, initialState: contextsInitialState as ContextsState,
reducers: { reducers: {
updateStoreReview: (state, action: PayloadAction<1>) => { updateStoreReview: (state, action: PayloadAction<1>) => {
if (Updates.releaseChannel.includes('production')) { if (Updates.releaseChannel.includes('release')) {
state.storeReview.current = state.storeReview.current + action.payload state.storeReview.current = state.storeReview.current + action.payload
if (state.storeReview.current === state.storeReview.context) { if (state.storeReview.current === state.storeReview.context) {
StoreReview.isAvailableAsync().then(() => StoreReview.requestReview()) StoreReview.isAvailableAsync().then(() => StoreReview.requestReview())