Skip to content

Commit

Permalink
android/deps: compileSdkVersion to 33 (Android 13); image-picker to 4…
Browse files Browse the repository at this point in the history
….10.2

Seems like react-native-image-picker made it *possible* to build on
the new SDK in the same commit where they made it *necessary* to do
so, which was a bad choice:
  zulip#5543 (comment)

So, shove the sdk bump and this image-picker upgrade together into
one commit.

Anyway, as Greg said in his draft of the compileSdkVersion bump,
f5c90ec:

  This version is out; time to start using it in the build.

  This setting is not to be confused with the targetSdkVersion. The
  latter goes into the built manifest, and affects a wide range of
  behavior, so bumping it requires careful testing. This is used
  purely at build time, and should have no effect on runtime
  behavior.

  Its main effect is that it become possible for code to
  conditionally use new API features.  It also brings new compiler
  warnings -- hence the pair of library updates preceding this.

We take the latest image-picker version, but in particular at least
4.10.1, to get a bugfix for an image-orientation issue:
  react-native-image-picker/react-native-image-picker#2036
that was reportedly introduced in 4.8.5:
  react-native-image-picker/react-native-image-picker#2022
  • Loading branch information
chrisbobbe authored and gnprice committed Dec 16, 2022
1 parent 07eebd7 commit fc2dab7
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 17 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ buildscript {
// https://medium.com/androiddevelopers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd
// What's the latest? Consult this list:
// https://developer.android.com/studio/releases/platforms
compileSdkVersion = 31
compileSdkVersion = 33
}
repositories {
google()
Expand Down
4 changes: 2 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ PODS:
- glog
- react-native-cameraroll (5.0.4):
- React-Core
- react-native-image-picker (4.8.4):
- react-native-image-picker (4.10.2):
- React-Core
- react-native-netinfo (6.0.0):
- React-Core
Expand Down Expand Up @@ -723,7 +723,7 @@ SPEC CHECKSUMS:
React-jsinspector: eb202e43b3879aba9a14f3f65788aec85d4e1ea9
React-logger: 98f663b292a60967ebbc6d803ae96c1381183b6d
react-native-cameraroll: 38b40d9033e4077b6c603f92f95c6d05fa7907df
react-native-image-picker: cffb727cf2f59bd5c0408e30b3dbe0b935f88835
react-native-image-picker: bf34f3f516d139ed3e24c5f5a381a91819e349ea
react-native-netinfo: e849fc21ca2f4128a5726c801a82fc6f4a6db50d
react-native-photo-view: ea0ec91bf5991a6843e740b1f47ab355171c996c
react-native-safe-area-context: 99b24a0c5acd0d5dcac2b1a7f18c49ea317be99a
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"react-native-device-info": "^8.1.7",
"react-native-document-picker": "^3.2.4",
"react-native-gesture-handler": "^2.8.0",
"react-native-image-picker": "4.8.4",
"react-native-image-picker": "4.10.2",
"react-native-photo-view": "alwx/react-native-photo-view#91b873c85",
"react-native-reanimated": "^2.2.0 <2.3.0",
"react-native-safe-area-context": "^4.3.1",
Expand Down
13 changes: 4 additions & 9 deletions types/react-native-image-picker/lib/typescript/index.js.flow
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
/* @flow
* @generated by TsFlower
*/
import {
type CameraOptions,
type ImageLibraryOptions,
type Callback,
type ImagePickerResponse,
} from './types';

import type { ImagePickerResponse as $tsflower_import_type$_$_2e__2f_types$ImagePickerResponse } from './types';
import { type CameraOptions, type ImageLibraryOptions, type Callback } from './types';
export * from './types';
declare export function launchCamera(
options: CameraOptions,
callback?: Callback,
): Promise<ImagePickerResponse>;
): Promise<$tsflower_import_type$_$_2e__2f_types$ImagePickerResponse>;
declare export function launchImageLibrary(
options: ImageLibraryOptions,
callback?: Callback,
): Promise<ImagePickerResponse>;
): Promise<$tsflower_import_type$_$_2e__2f_types$ImagePickerResponse>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* @flow
* @generated by TsFlower
*/
import {
type CameraOptions,
type ImageLibraryOptions,
type Callback,
type ImagePickerResponse,
} from '../types';

declare export function camera(
options: CameraOptions,
callback?: Callback,
): Promise<ImagePickerResponse>;
declare export function imageLibrary(
options: ImageLibraryOptions,
callback?: Callback,
): Promise<ImagePickerResponse>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* @flow
* @generated by TsFlower
*/
import { type ImageLibraryOptions, type Callback, type ImagePickerResponse } from '../types';
declare export function camera(
options?: ImageLibraryOptions,
callback?: Callback,
): Promise<ImagePickerResponse>;
declare export function imageLibrary(
options?: ImageLibraryOptions,
callback?: Callback,
): Promise<ImagePickerResponse>;
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10222,10 +10222,10 @@ react-native-gradle-plugin@^0.0.6:
resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.0.6.tgz#b61a9234ad2f61430937911003cddd7e15c72b45"
integrity sha512-eIlgtsmDp1jLC24dRn43hB3kEcZVqx6DUQbR0N1ABXGnMEafm9I3V3dUUeD1vh+Dy5WqijSoEwLNUPLgu5zDMg==

react-native-image-picker@4.8.4:
version "4.8.4"
resolved "https://registry.yarnpkg.com/react-native-image-picker/-/react-native-image-picker-4.8.4.tgz#ac52f1e265458e944664adf1dcd0a9ee408fe083"
integrity sha512-Mjh2j/sddyolb16EpmprWzbtyeFvW8Xgzr/8WNi9d6bR2FC/kL78cY/a+7Yzujg5ZDtT1MWys+eWw/qtfwgGiw==
react-native-image-picker@4.10.2:
version "4.10.2"
resolved "https://registry.yarnpkg.com/react-native-image-picker/-/react-native-image-picker-4.10.2.tgz#75b356c9eea70c2c4f5c1089f8758e2fa32f88a8"
integrity sha512-3h9PrA1dQ84rVeipzQE4eWTELvflSHNtJZN6rz7NkZyaxo9YZV8H/TswBpHwiS5YWlyu+zlLzSoWVa1opSu7GA==

react-native-iphone-x-helper@^1.3.0:
version "1.3.1"
Expand Down

0 comments on commit fc2dab7

Please sign in to comment.