mirror of
				https://github.com/tooot-app/app
				synced 2025-06-05 22:19:13 +02:00 
			
		
		
		
	
							
								
								
									
										6
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -27,11 +27,9 @@ jobs: | ||||
|           token: ${{ secrets.EXPO_TOKEN }} | ||||
|       - name: -- Step 4 -- Install node dependencies | ||||
|         run: yarn install | ||||
|       - name: -- Step 5 -- Install native dependencies | ||||
|         run: npx pod-install | ||||
|       - name: -- Step 6 -- Install ruby dependencies | ||||
|       - name: -- Step 5 -- Install ruby dependencies | ||||
|         run: bundle install | ||||
|       - name: -- Step 7 -- Run fastlane | ||||
|       - name: -- Step 6 -- Run fastlane | ||||
|         env: | ||||
|           DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer | ||||
|           ENVIRONMENT: ${{ steps.branch.outputs.branch }} | ||||
|   | ||||
| @@ -208,6 +208,7 @@ lane :build do | ||||
|     puts("Release #{GITHUB_RELEASE} exists. Continue with building React Native only.") | ||||
|   else | ||||
|     puts("Release #{GITHUB_RELEASE} does not exist. Create new release as well as new native build.") | ||||
|     cocoapods(clean_install: true, podfile: "./ios/Podfile", deployment: true) | ||||
|     build_ios | ||||
|     build_android | ||||
|     case ENVIRONMENT | ||||
|   | ||||
| @@ -28,17 +28,16 @@ const AttachmentImage = React.memo( | ||||
|           uri={{ original: image.preview_url, remote: image.remote_url }} | ||||
|           blurhash={image.blurhash} | ||||
|           onPress={onPress} | ||||
|           style={[ | ||||
|             { | ||||
|               aspectRatio: | ||||
|                 total > 1 || | ||||
|                 !image.meta?.original?.width || | ||||
|                 !image.meta?.original?.height || | ||||
|                 image.meta.original.width / image.meta.original.height > 2 | ||||
|                   ? attachmentAspectRatio({ total, index }) | ||||
|                   : image.meta.original.width / image.meta.original.height | ||||
|             } | ||||
|           ]} | ||||
|           style={{ | ||||
|             aspectRatio: | ||||
|               total > 1 || | ||||
|               !image.meta?.original?.width || | ||||
|               !image.meta?.original?.height | ||||
|                 ? attachmentAspectRatio({ total, index }) | ||||
|                 : image.meta.original.height / image.meta.original.width > 2 | ||||
|                 ? 0.5 | ||||
|                 : image.meta.original.width / image.meta.original.height | ||||
|           }} | ||||
|         /> | ||||
|       </View> | ||||
|     ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user