docstring_tokens
stringlengths
18
16.9k
code_tokens
stringlengths
75
1.81M
html_url
stringlengths
74
116
file_name
stringlengths
3
311
keep keep keep keep replace keep keep keep keep keep
<mask> } & HeatmapOptions; <mask> /** <mask> * Configuration options for the heatmap. <mask> */ <mask> export declare type HeatmapOptions = { <mask> /** <mask> * The radius of Gaussian blur applied to the points in pixels (optional). <mask> * @default 20 <mask> */ <mask> radius?: number; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type HeatmapProps = { </s> add export type HeatmapProps = { </s> remove export declare type AssetsOptions = { </s> add export type AssetsOptions = { </s> remove export declare type HeatmapObject = { </s> add export type HeatmapObject = { </s> remove export declare type LocationGeocodedLocation = { </s> add export type LocationGeocodedLocation = { </s> remove export declare type LocationObjectCoords = { </s> add export type LocationObjectCoords = { </s> remove export declare type Point = { </s> add export type Point = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Heatmap.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> * Internal JSON object for representing marker clusters in Expo Maps library. <mask> * <mask> * See {@link ClusterProps} for more detail. <mask> */ <mask> export declare type HeatmapObject = { <mask> type: 'heatmap'; <mask> points: PointWithData[]; <mask> radius?: number; <mask> opacity?: number; <mask> } & HeatmapProps; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type ClusterObject = { </s> add export type ClusterObject = { </s> remove export declare type KMLObject = { </s> add export type KMLObject = { </s> remove export declare type CircleObject = { </s> add export type CircleObject = { </s> remove export declare type PolygonObject = PolygonProps & { </s> add export type PolygonObject = PolygonProps & { </s> remove export declare type MarkerObject = { </s> add export type MarkerObject = { </s> remove export declare type GeoJsonObject = { </s> add export type GeoJsonObject = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Heatmap.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> import React from 'react'; <mask> /** <mask> * KML specific props. <mask> */ <mask> export declare type KMLProps = { <mask> /** <mask> * The value of require('path/to/file.kml') for the .kml asset <mask> */ <mask> filePath: string; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type GeoJsonProps = { </s> add export type GeoJsonProps = { </s> remove export declare type OverlayProps = { </s> add export type OverlayProps = { </s> remove export declare type BaseMarkerOptions = { </s> add export type BaseMarkerOptions = { </s> remove export declare type CircleProps = { </s> add export type CircleProps = { </s> remove export declare type MarkerClickEvent = { </s> add export type MarkerClickEvent = { </s> remove export declare type LocationRegion = { </s> add export type LocationRegion = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/KML.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> * Internal JSON object for representing marker KMLs in Expo Maps library. <mask> * <mask> * See {@link KMLProps} for more detail. <mask> */ <mask> export declare type KMLObject = { <mask> type: 'kml'; <mask> } & KMLProps; <mask> /** <mask> * KML component of Expo Maps library. <mask> * </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type PolygonObject = PolygonProps & { </s> add export type PolygonObject = PolygonProps & { </s> remove export declare type MarkerObject = { </s> add export type MarkerObject = { </s> remove export declare type ClusterObject = { </s> add export type ClusterObject = { </s> remove export declare type HeatmapObject = { </s> add export type HeatmapObject = { </s> remove export declare type MarkerProps = MarkerOptions & Point; </s> add export type MarkerProps = MarkerOptions & Point; </s> remove export declare type PolylineObject = PolylineProps & { </s> add export type PolylineObject = PolylineProps & {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/KML.d.ts
keep replace keep keep keep replace keep keep keep keep
<mask> import { PolylineObject } from './Polyline'; <mask> export declare type MapTypes = 'normal' | 'hybrid' | 'satellite' | 'terrain'; <mask> /** <mask> * Prop for managing map type. <mask> */ <mask> export declare type MapType = { <mask> /** <mask> * Type of map (one of normal, hybrid, satellite, terrain'). <mask> * <mask> * @default 'normal' </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Provider = { </s> add export type Provider = { </s> remove export declare type Providers = 'google' | 'apple'; </s> add export type Providers = 'google' | 'apple'; </s> remove export declare type Gestures = { </s> add export type Gestures = { </s> remove export declare type CameraPosition = { </s> add export type CameraPosition = { </s> remove export declare type Callbacks = { </s> add export type Callbacks = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Internal prop for managing markers displayed on the map. <mask> */ <mask> export declare type Markers = { <mask> /** <mask> * Array of {@link MarkerObject}. <mask> */ <mask> markers: MarkerObject[]; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Polylines = { </s> add export type Polylines = { </s> remove export declare type Clusters = { </s> add export type Clusters = { </s> remove export declare type Circles = { </s> add export type Circles = { </s> remove export declare type Overlays = { </s> add export type Overlays = { </s> remove export declare type Polygons = { </s> add export type Polygons = { </s> remove export declare type GeoJsons = { </s> add export type GeoJsons = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Internal prop for managing polygons displayed on the map. <mask> */ <mask> export declare type Polygons = { <mask> /** <mask> * Array of {@link PolygonObject}. <mask> */ <mask> polygons: PolygonObject[]; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Clusters = { </s> add export type Clusters = { </s> remove export declare type Circles = { </s> add export type Circles = { </s> remove export declare type Overlays = { </s> add export type Overlays = { </s> remove export declare type Polylines = { </s> add export type Polylines = { </s> remove export declare type Markers = { </s> add export type Markers = { </s> remove export declare type GeoJsons = { </s> add export type GeoJsons = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Internal prop for managing polylines displayed on the map. <mask> */ <mask> export declare type Polylines = { <mask> /** <mask> * Array of {@link PolylineObject}. <mask> */ <mask> polylines: PolylineObject[]; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Clusters = { </s> add export type Clusters = { </s> remove export declare type Circles = { </s> add export type Circles = { </s> remove export declare type Overlays = { </s> add export type Overlays = { </s> remove export declare type Polygons = { </s> add export type Polygons = { </s> remove export declare type Markers = { </s> add export type Markers = { </s> remove export declare type GeoJsons = { </s> add export type GeoJsons = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Internal prop for managing overlays displayed on the map. <mask> */ <mask> export declare type Overlays = { <mask> /** <mask> * Array of {@link OverlayObject}. <mask> */ <mask> overlays: OverlayObject[]; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Clusters = { </s> add export type Clusters = { </s> remove export declare type Circles = { </s> add export type Circles = { </s> remove export declare type Polylines = { </s> add export type Polylines = { </s> remove export declare type Polygons = { </s> add export type Polygons = { </s> remove export declare type Markers = { </s> add export type Markers = { </s> remove export declare type GeoJsons = { </s> add export type GeoJsons = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Internal prop for managing circles displayed on the map. <mask> */ <mask> export declare type Circles = { <mask> /** <mask> * Array of {@link CircleObject}. <mask> */ <mask> circles: CircleObject[]; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Polygons = { </s> add export type Polygons = { </s> remove export declare type Markers = { </s> add export type Markers = { </s> remove export declare type Clusters = { </s> add export type Clusters = { </s> remove export declare type Overlays = { </s> add export type Overlays = { </s> remove export declare type Polylines = { </s> add export type Polylines = { </s> remove export declare type GeoJsons = { </s> add export type GeoJsons = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Internal prop for managing clusters displayed on the map. <mask> */ <mask> export declare type Clusters = { <mask> /** <mask> * Array of {@link ClusterObject}. <mask> */ <mask> clusters: ClusterObject[]; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Circles = { </s> add export type Circles = { </s> remove export declare type Overlays = { </s> add export type Overlays = { </s> remove export declare type Polylines = { </s> add export type Polylines = { </s> remove export declare type Polygons = { </s> add export type Polygons = { </s> remove export declare type Markers = { </s> add export type Markers = { </s> remove export declare type GeoJsons = { </s> add export type GeoJsons = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Internal prop for managing provided KMLs <mask> */ <mask> export declare type KMLs = { <mask> /** <mask> * Array of {@link KMLObject} <mask> */ <mask> kmls: KMLObject[]; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type GeoJsons = { </s> add export type GeoJsons = { </s> remove export declare type Clusters = { </s> add export type Clusters = { </s> remove export declare type Circles = { </s> add export type Circles = { </s> remove export declare type Markers = { </s> add export type Markers = { </s> remove export declare type Polygons = { </s> add export type Polygons = { </s> remove export declare type Polylines = { </s> add export type Polylines = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Internal prop for managing provided KMLs <mask> */ <mask> export declare type GeoJsons = { <mask> /** <mask> * Array of {@link GeoJsonObject} <mask> */ <mask> geojsons: GeoJsonObject[]; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type KMLs = { </s> add export type KMLs = { </s> remove export declare type Clusters = { </s> add export type Clusters = { </s> remove export declare type Circles = { </s> add export type Circles = { </s> remove export declare type Overlays = { </s> add export type Overlays = { </s> remove export declare type Polylines = { </s> add export type Polylines = { </s> remove export declare type Polygons = { </s> add export type Polygons = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Prop for managing Google Maps styling settings. <mask> */ <mask> export declare type GoogleMapsStyling = { <mask> /** <mask> * Valid Google Maps style JSON string, <mask> * please use https://mapstyle.withgoogle.com to generate style JSONs. <mask> * <mask> * This prop works only when provider == `google`. </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Controls = { </s> add export type Controls = { </s> remove export declare type Provider = { </s> add export type Provider = { </s> remove export declare type POI = { </s> add export type POI = { </s> remove export declare type LocationGeocodingOptions = { </s> add export type LocationGeocodingOptions = { </s> remove export declare type Gestures = { </s> add export type Gestures = { </s> remove export declare type PolygonObject = PolygonProps & { </s> add export type PolygonObject = PolygonProps & {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Props for managing map gestures settings. <mask> */ <mask> export declare type Gestures = { <mask> /** <mask> * If `true` rotate gestures are enabled. <mask> * <mask> * @default false <mask> */ </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Controls = { </s> add export type Controls = { </s> remove export declare type Traffic = { </s> add export type Traffic = { </s> remove export declare type Callbacks = { </s> add export type Callbacks = { </s> remove export declare type MarkerOptions = { </s> add export type MarkerOptions = { </s> remove export declare type MapType = { </s> add export type MapType = { </s> remove export declare type LocationTaskOptions = LocationOptions & { </s> add export type LocationTaskOptions = LocationOptions & {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Props for managing map controls settings. <mask> */ <mask> export declare type Controls = { <mask> /** <mask> * If `true` zoom controls are visible. <mask> * <mask> * This prop works only when provider == `google`. <mask> * </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type GoogleMapsStyling = { </s> add export type GoogleMapsStyling = { </s> remove export declare type Gestures = { </s> add export type Gestures = { </s> remove export declare type POI = { </s> add export type POI = { </s> remove export declare type Traffic = { </s> add export type Traffic = { </s> remove export declare type Provider = { </s> add export type Provider = { </s> remove export declare type Callbacks = { </s> add export type Callbacks = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Props for managing traffic layer. <mask> */ <mask> export declare type Traffic = { <mask> /** <mask> * If `true` traffic data is displayed on map. <mask> * <mask> * @default false <mask> */ </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Gestures = { </s> add export type Gestures = { </s> remove export declare type Controls = { </s> add export type Controls = { </s> remove export declare type Circles = { </s> add export type Circles = { </s> remove export declare type Overlays = { </s> add export type Overlays = { </s> remove export declare type Clusters = { </s> add export type Clusters = { </s> remove export declare type Markers = { </s> add export type Markers = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> }; <mask> /** <mask> * Props for callback events. <mask> */ <mask> export declare type Callbacks = { <mask> /** <mask> * Callback to call when the map is loaded. <mask> * <mask> * @default () => {} <mask> */ </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Gestures = { </s> add export type Gestures = { </s> remove export declare type LocationSubscription = { </s> add export type LocationSubscription = { </s> remove export declare type Traffic = { </s> add export type Traffic = { </s> remove export declare type Providers = 'google' | 'apple'; </s> add export type Providers = 'google' | 'apple'; </s> remove export declare type Controls = { </s> add export type Controls = { </s> remove export declare type PermissionDetailsLocationIOS = { </s> add export type PermissionDetailsLocationIOS = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep replace keep keep
<mask> * @default LocationChangePriority.PRIORITY_NO_POWER <mask> */ <mask> onLocationChangeEventPriority?: LocationChangePriority; <mask> }; <mask> export declare type POICategoryType = 'airport' | 'atm' | 'bank' | 'beach' | 'cafe' | 'hospital' | 'hotel' | 'museum' | 'pharmacy' | 'store'; <mask> /** <mask> * Props for POI handling. <mask> */ <mask> export declare type POI = { <mask> /** <mask> * If 'true' search bar for searching pois is enabled. </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type CameraPosition = { </s> add export type CameraPosition = { </s> remove export declare type MapType = { </s> add export type MapType = { </s> remove export declare type MediaSubtype = 'depthEffect' | 'hdr' | 'highFrameRate' | 'livePhoto' | 'panorama' | 'screenshot' | 'stream' | 'timelapse'; export declare type MediaLibraryAssetInfoQueryOptions = { </s> add export type MediaSubtype = 'depthEffect' | 'hdr' | 'highFrameRate' | 'livePhoto' | 'panorama' | 'screenshot' | 'stream' | 'timelapse'; export type MediaLibraryAssetInfoQueryOptions = { </s> remove export declare type AlbumType = 'album' | 'moment' | 'smartAlbum'; export declare type AlbumsOptions = { </s> add export type AlbumType = 'album' | 'moment' | 'smartAlbum'; export type AlbumsOptions = { </s> remove export declare type AppleMapsPOI = POI; export declare type GoogleMapsPOI = Omit<POI, 'enablePOISearching' | 'enablePOIFilter'>; export declare type Heatmaps = { </s> add export type AppleMapsPOI = POI; export type GoogleMapsPOI = Omit<POI, 'enablePOISearching' | 'enablePOIFilter'>; export type Heatmaps = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace replace replace keep keep keep keep keep
<mask> * @default false <mask> */ <mask> clickablePOIs: boolean; <mask> }; <mask> export declare type AppleMapsPOI = POI; <mask> export declare type GoogleMapsPOI = Omit<POI, 'enablePOISearching' | 'enablePOIFilter'>; <mask> export declare type Heatmaps = { <mask> /** <mask> * Array of {@link HeatmapObject}. <mask> */ <mask> heatmaps: HeatmapObject[]; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type AssetsOptions = { </s> add export type AssetsOptions = { </s> remove export declare type Gestures = { </s> add export type Gestures = { </s> remove export declare type Traffic = { </s> add export type Traffic = { </s> remove export declare type GeoJsons = { </s> add export type GeoJsons = { </s> remove export declare type KMLs = { </s> add export type KMLs = { </s> remove export declare type AlbumType = 'album' | 'moment' | 'smartAlbum'; export declare type AlbumsOptions = { </s> add export type AlbumType = 'album' | 'moment' | 'smartAlbum'; export type AlbumsOptions = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep replace replace keep keep keep replace keep
<mask> heatmaps: HeatmapObject[]; <mask> }; <mask> export declare type GoogleMapsControls = Controls; <mask> export declare type ZoomLevels = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22; <mask> /** <mask> * Prop for setting camera position. <mask> */ <mask> export declare type CameraPosition = { <mask> /** </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type POICategoryType = 'airport' | 'atm' | 'bank' | 'beach' | 'cafe' | 'hospital' | 'hotel' | 'museum' | 'pharmacy' | 'store'; </s> add export type POICategoryType = 'airport' | 'atm' | 'bank' | 'beach' | 'cafe' | 'hospital' | 'hotel' | 'museum' | 'pharmacy' | 'store'; </s> remove export declare type MediaTypeValue = 'audio' | 'photo' | 'video' | 'unknown'; export declare type SortByKey = 'default' | 'mediaType' | 'width' | 'height' | 'creationTime' | 'modificationTime' | 'duration'; export declare type SortByValue = [SortByKey, boolean] | SortByKey; export declare type MediaTypeObject = { </s> add export type MediaTypeValue = 'audio' | 'photo' | 'video' | 'unknown'; export type SortByKey = 'default' | 'mediaType' | 'width' | 'height' | 'creationTime' | 'modificationTime' | 'duration'; export type SortByValue = [SortByKey, boolean] | SortByKey; export type MediaTypeObject = { </s> remove export declare type MediaSubtype = 'depthEffect' | 'hdr' | 'highFrameRate' | 'livePhoto' | 'panorama' | 'screenshot' | 'stream' | 'timelapse'; export declare type MediaLibraryAssetInfoQueryOptions = { </s> add export type MediaSubtype = 'depthEffect' | 'hdr' | 'highFrameRate' | 'livePhoto' | 'panorama' | 'screenshot' | 'stream' | 'timelapse'; export type MediaLibraryAssetInfoQueryOptions = { </s> remove export declare type POI = { </s> add export type POI = { </s> remove export declare type MapTypes = 'normal' | 'hybrid' | 'satellite' | 'terrain'; </s> add export type MapTypes = 'normal' | 'hybrid' | 'satellite' | 'terrain';
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep replace keep keep keep replace keep keep keep keep
<mask> }; <mask> export declare type AppleMapsControls = Omit<Controls, 'showMapToolbar' | 'showZoomControls'>; <mask> /** <mask> * Props for Google Maps implementation. <mask> */ <mask> export declare type NativeExpoGoogleMapsViewProps = ViewProps & React.RefAttributes<ExpoMap> & PropsWithChildren<MapType & GoogleMapsStyling & Gestures & Markers & Polygons & Polylines & GoogleMapsControls & CameraPosition & Circles & Clusters & Traffic & KMLs & GeoJsons & GoogleMapsPOI & Overlays & Heatmaps & Callbacks>; <mask> /** <mask> * Props for Apple Maps implementation. <mask> */ <mask> export declare type NativeExpoAppleMapsViewProps = ViewProps & React.RefAttributes<ExpoMap> & PropsWithChildren<MapType & Gestures & Markers & Polygons & Polylines & AppleMapsControls & CameraPosition & Circles & Clusters & Traffic & KMLs & GeoJsons & AppleMapsPOI>; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type NativeExpoAppleMapsViewProps = ViewProps & React.RefAttributes<ExpoMap> & PropsWithChildren<MapType & Gestures & Markers & Polygons & Polylines & AppleMapsControls & CameraPosition & Circles & Clusters & Traffic & KMLs & GeoJsons & AppleMapsPOI>; export declare type ExpoMapRef = { </s> add export type NativeExpoAppleMapsViewProps = ViewProps & React.RefAttributes<ExpoMap> & PropsWithChildren<MapType & Gestures & Markers & Polygons & Polylines & AppleMapsControls & CameraPosition & Circles & Clusters & Traffic & KMLs & GeoJsons & AppleMapsPOI>; export type ExpoMapRef = { </s> remove export declare type ExpoMapViewProps = ViewProps & PropsWithChildren<Partial<Provider & MapType & Controls & GoogleMapsStyling & Gestures & CameraPosition & Traffic & POI & KMLs & Heatmaps & Callbacks>>; export declare type DefaultNativeExpoMapViewProps = MapType & Controls & Gestures & CameraPosition & Traffic & POI; export declare type ExpoMapState = Markers & Polygons & Polylines & Circles & Clusters & KMLs & GeoJsons & Overlays & Heatmaps; </s> add export type ExpoMapViewProps = ViewProps & PropsWithChildren<Partial<Provider & MapType & Controls & GoogleMapsStyling & Gestures & CameraPosition & Traffic & POI & KMLs & Heatmaps & Callbacks>>; export type DefaultNativeExpoMapViewProps = MapType & Controls & Gestures & CameraPosition & Traffic & POI; export type ExpoMapState = Markers & Polygons & Polylines & Circles & Clusters & KMLs & GeoJsons & Overlays & Heatmaps; </s> remove export declare type MarkerProps = MarkerOptions & Point; </s> add export type MarkerProps = MarkerOptions & Point; </s> remove export declare type AssetInfo = Asset & { </s> add export type AssetInfo = Asset & { </s> remove export declare type NativeLinearGradientProps = ViewProps & PropsWithChildren<{ </s> add export type NativeLinearGradientProps = ViewProps & PropsWithChildren<{
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep replace replace keep keep keep replace keep keep keep keep
<mask> */ <mask> export declare type NativeExpoAppleMapsViewProps = ViewProps & React.RefAttributes<ExpoMap> & PropsWithChildren<MapType & Gestures & Markers & Polygons & Polylines & AppleMapsControls & CameraPosition & Circles & Clusters & Traffic & KMLs & GeoJsons & AppleMapsPOI>; <mask> export declare type ExpoMapRef = { <mask> getSearchCompletions: () => Promise<void>; <mask> moveCamera: () => Promise<CameraPosition>; <mask> }; <mask> export declare type Providers = 'google' | 'apple'; <mask> /** <mask> * Prop for managing map provider. <mask> */ <mask> export declare type Provider = { </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type NativeExpoGoogleMapsViewProps = ViewProps & React.RefAttributes<ExpoMap> & PropsWithChildren<MapType & GoogleMapsStyling & Gestures & Markers & Polygons & Polylines & GoogleMapsControls & CameraPosition & Circles & Clusters & Traffic & KMLs & GeoJsons & GoogleMapsPOI & Overlays & Heatmaps & Callbacks>; </s> add export type NativeExpoGoogleMapsViewProps = ViewProps & React.RefAttributes<ExpoMap> & PropsWithChildren<MapType & GoogleMapsStyling & Gestures & Markers & Polygons & Polylines & GoogleMapsControls & CameraPosition & Circles & Clusters & Traffic & KMLs & GeoJsons & GoogleMapsPOI & Overlays & Heatmaps & Callbacks>; </s> remove export declare type AppleMapsControls = Omit<Controls, 'showMapToolbar' | 'showZoomControls'>; </s> add export type AppleMapsControls = Omit<Controls, 'showMapToolbar' | 'showZoomControls'>; </s> remove export declare type ExpoMapViewProps = ViewProps & PropsWithChildren<Partial<Provider & MapType & Controls & GoogleMapsStyling & Gestures & CameraPosition & Traffic & POI & KMLs & Heatmaps & Callbacks>>; export declare type DefaultNativeExpoMapViewProps = MapType & Controls & Gestures & CameraPosition & Traffic & POI; export declare type ExpoMapState = Markers & Polygons & Polylines & Circles & Clusters & KMLs & GeoJsons & Overlays & Heatmaps; </s> add export type ExpoMapViewProps = ViewProps & PropsWithChildren<Partial<Provider & MapType & Controls & GoogleMapsStyling & Gestures & CameraPosition & Traffic & POI & KMLs & Heatmaps & Callbacks>>; export type DefaultNativeExpoMapViewProps = MapType & Controls & Gestures & CameraPosition & Traffic & POI; export type ExpoMapState = Markers & Polygons & Polylines & Circles & Clusters & KMLs & GeoJsons & Overlays & Heatmaps; </s> remove export declare type AssetInfo = Asset & { </s> add export type AssetInfo = Asset & { </s> remove export declare type LocationPermissionResponse = PermissionResponse & { </s> add export type LocationPermissionResponse = PermissionResponse & {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> export declare type Providers = 'google' | 'apple'; <mask> /** <mask> * Prop for managing map provider. <mask> */ <mask> export declare type Provider = { <mask> /** <mask> * Provider you want to use for your map, please note `apple` provider is only avaliable on Apple devices. <mask> * <mask> * @default 'google' <mask> */ </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Providers = 'google' | 'apple'; </s> add export type Providers = 'google' | 'apple'; </s> remove export declare type GoogleMapsStyling = { </s> add export type GoogleMapsStyling = { </s> remove export declare type MapType = { </s> add export type MapType = { </s> remove export declare type Controls = { </s> add export type Controls = { </s> remove export declare type Callbacks = { </s> add export type Callbacks = { </s> remove export declare type Traffic = { </s> add export type Traffic = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace replace replace keep
<mask> * General Expo Map props. <mask> * <mask> * All of the ExpoMap props are optional. <mask> */ <mask> export declare type ExpoMapViewProps = ViewProps & PropsWithChildren<Partial<Provider & MapType & Controls & GoogleMapsStyling & Gestures & CameraPosition & Traffic & POI & KMLs & Heatmaps & Callbacks>>; <mask> export declare type DefaultNativeExpoMapViewProps = MapType & Controls & Gestures & CameraPosition & Traffic & POI; <mask> export declare type ExpoMapState = Markers & Polygons & Polylines & Circles & Clusters & KMLs & GeoJsons & Overlays & Heatmaps; <mask> //# sourceMappingURL=Map.types.d.ts.map </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type NativeExpoGoogleMapsViewProps = ViewProps & React.RefAttributes<ExpoMap> & PropsWithChildren<MapType & GoogleMapsStyling & Gestures & Markers & Polygons & Polylines & GoogleMapsControls & CameraPosition & Circles & Clusters & Traffic & KMLs & GeoJsons & GoogleMapsPOI & Overlays & Heatmaps & Callbacks>; </s> add export type NativeExpoGoogleMapsViewProps = ViewProps & React.RefAttributes<ExpoMap> & PropsWithChildren<MapType & GoogleMapsStyling & Gestures & Markers & Polygons & Polylines & GoogleMapsControls & CameraPosition & Circles & Clusters & Traffic & KMLs & GeoJsons & GoogleMapsPOI & Overlays & Heatmaps & Callbacks>; </s> remove export declare type NativeExpoAppleMapsViewProps = ViewProps & React.RefAttributes<ExpoMap> & PropsWithChildren<MapType & Gestures & Markers & Polygons & Polylines & AppleMapsControls & CameraPosition & Circles & Clusters & Traffic & KMLs & GeoJsons & AppleMapsPOI>; export declare type ExpoMapRef = { </s> add export type NativeExpoAppleMapsViewProps = ViewProps & React.RefAttributes<ExpoMap> & PropsWithChildren<MapType & Gestures & Markers & Polygons & Polylines & AppleMapsControls & CameraPosition & Circles & Clusters & Traffic & KMLs & GeoJsons & AppleMapsPOI>; export type ExpoMapRef = { </s> remove export declare type AppleMapsControls = Omit<Controls, 'showMapToolbar' | 'showZoomControls'>; </s> add export type AppleMapsControls = Omit<Controls, 'showMapToolbar' | 'showZoomControls'>; </s> remove export declare type MarkerProps = MarkerOptions & Point; </s> add export type MarkerProps = MarkerOptions & Point; </s> remove export declare type AssetInfo = Asset & { </s> add export type AssetInfo = Asset & { </s> remove export declare type LocationPermissionResponse = PermissionResponse & { </s> add export type LocationPermissionResponse = PermissionResponse & {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Map.types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> import { Point } from './Common.types'; <mask> /** <mask> * Marker specific props. <mask> */ <mask> export declare type BaseMarkerOptions = { <mask> /** <mask> * Id of the marker or cluster, should be unique. <mask> * If no id is specified then marker-related events won't fire for that particular marker or cluster. <mask> */ <mask> id?: string; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type OverlayProps = { </s> add export type OverlayProps = { </s> remove export declare type GeoJsonProps = { </s> add export type GeoJsonProps = { </s> remove export declare type MarkerClickEvent = { </s> add export type MarkerClickEvent = { </s> remove export declare type Marker = { </s> add export type Marker = { </s> remove export declare type OnLocationChangeEvent = { </s> add export type OnLocationChangeEvent = { </s> remove export declare type KMLProps = { </s> add export type KMLProps = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Marker.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> * as well as to default marker's icon. <mask> */ <mask> opacity?: number; <mask> }; <mask> export declare type MarkerOptions = { <mask> /** <mask> * If 'true' marker is draggable, clustered markers can't be dragged. <mask> * <mask> * @default false <mask> */ </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Traffic = { </s> add export type Traffic = { </s> remove export declare type Gestures = { </s> add export type Gestures = { </s> remove export declare type Point = { </s> add export type Point = { </s> remove export declare type MarkerDragStartedEvent = { </s> add export type MarkerDragStartedEvent = { </s> remove export declare type BaseMarkerOptions = { </s> add export type BaseMarkerOptions = { </s> remove export declare type MarkerEvent = { </s> add export type MarkerEvent = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Marker.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> } & BaseMarkerOptions; <mask> /** <mask> * Props of Marker component of Expo Maps library. <mask> */ <mask> export declare type MarkerProps = MarkerOptions & Point; <mask> /** <mask> * Internal JSON object for representing markers in Expo Maps library. <mask> * <mask> * See {@link MarkerProps} for more details. <mask> */ </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type MarkerObject = { </s> add export type MarkerObject = { </s> remove export declare type KMLObject = { </s> add export type KMLObject = { </s> remove export declare type PolygonObject = PolygonProps & { </s> add export type PolygonObject = PolygonProps & { </s> remove export declare type ClusterObject = { </s> add export type ClusterObject = { </s> remove export declare type PolylineObject = PolylineProps & { </s> add export type PolylineObject = PolylineProps & { </s> remove export declare type HeatmapObject = { </s> add export type HeatmapObject = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Marker.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> * Internal JSON object for representing markers in Expo Maps library. <mask> * <mask> * See {@link MarkerProps} for more details. <mask> */ <mask> export declare type MarkerObject = { <mask> type: 'marker'; <mask> } & MarkerOptions & Point; <mask> /** <mask> * Marker component of Expo Maps library. <mask> * </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type MarkerProps = MarkerOptions & Point; </s> add export type MarkerProps = MarkerOptions & Point; </s> remove export declare type KMLObject = { </s> add export type KMLObject = { </s> remove export declare type PolygonObject = PolygonProps & { </s> add export type PolygonObject = PolygonProps & { </s> remove export declare type ClusterObject = { </s> add export type ClusterObject = { </s> remove export declare type HeatmapObject = { </s> add export type HeatmapObject = { </s> remove export declare type PolylineObject = PolylineProps & { </s> add export type PolylineObject = PolylineProps & {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Marker.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> import { Point } from './Common.types'; <mask> /** <mask> * Overlay specific props. <mask> */ <mask> export declare type OverlayProps = { <mask> /** <mask> * South west, and north east corners of the image. <mask> */ <mask> bounds: { <mask> /** </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type GeoJsonProps = { </s> add export type GeoJsonProps = { </s> remove export declare type BaseMarkerOptions = { </s> add export type BaseMarkerOptions = { </s> remove export declare type CircleProps = { </s> add export type CircleProps = { </s> remove export declare type KMLProps = { </s> add export type KMLProps = { </s> remove export declare type HeatmapProps = { </s> add export type HeatmapProps = { </s> remove export declare type MarkerClickEvent = { </s> add export type MarkerClickEvent = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Overlay.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> * Custom overlay graphic <mask> */ <mask> icon: string; <mask> }; <mask> export declare type OverlayObject = { <mask> type: 'overlay'; <mask> } & OverlayProps; <mask> /** <mask> * Ground Overlay component of Expo Maps library. <mask> * </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type MarkerObject = { </s> add export type MarkerObject = { </s> remove export declare type PolygonObject = PolygonProps & { </s> add export type PolygonObject = PolygonProps & { </s> remove export declare type KMLObject = { </s> add export type KMLObject = { </s> remove export declare type MarkerProps = MarkerOptions & Point; </s> add export type MarkerProps = MarkerOptions & Point; </s> remove export declare type HeatmapProps = { </s> add export type HeatmapProps = { </s> remove export declare type PolylineObject = PolylineProps & { </s> add export type PolylineObject = PolylineProps & {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Overlay.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> import { Point, PatternItem } from './Common.types'; <mask> /** <mask> * Props of Polygon component of Expo Maps library. <mask> */ <mask> export declare type PolygonProps = { <mask> /** <mask> * Array of polygon's vertices. <mask> * <mask> * The polygon is closed automatically, so there is no need to repeat the first vertex at the end. <mask> * </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type PolylineProps = { </s> add export type PolylineProps = { </s> remove export declare type CircleProps = { </s> add export type CircleProps = { </s> remove export declare type PolygonObject = PolygonProps & { </s> add export type PolygonObject = PolygonProps & { </s> remove export declare type HeatmapProps = { </s> add export type HeatmapProps = { </s> remove export declare type ClusterProps = PropsWithChildren<{ </s> add export type ClusterProps = PropsWithChildren<{ </s> remove export declare type GeoJsonProps = { </s> add export type GeoJsonProps = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Polygon.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> * Internal JSON object for representing polygons in Expo Maps library. <mask> * <mask> * See {@link PolygonProps} for more detail. <mask> */ <mask> export declare type PolygonObject = PolygonProps & { <mask> type: 'polygon'; <mask> }; <mask> /** <mask> * Polygon component of Expo Maps library. <mask> * </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type KMLObject = { </s> add export type KMLObject = { </s> remove export declare type MarkerObject = { </s> add export type MarkerObject = { </s> remove export declare type MarkerProps = MarkerOptions & Point; </s> add export type MarkerProps = MarkerOptions & Point; </s> remove export declare type PolylineObject = PolylineProps & { </s> add export type PolylineObject = PolylineProps & { </s> remove export declare type HeatmapObject = { </s> add export type HeatmapObject = { </s> remove export declare type ClusterObject = { </s> add export type ClusterObject = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Polygon.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> import { Point, PatternItem } from './Common.types'; <mask> /** <mask> * Props of Polyline component of Expo Maps library. <mask> */ <mask> export declare type PolylineProps = { <mask> /** <mask> * Array of polygon's vertices. <mask> * <mask> * If empty, the polyline will be invisible, but logically it will be registered on the host map. <mask> * @required </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type PolygonProps = { </s> add export type PolygonProps = { </s> remove export declare type CircleProps = { </s> add export type CircleProps = { </s> remove export declare type ClusterProps = PropsWithChildren<{ </s> add export type ClusterProps = PropsWithChildren<{ </s> remove export declare type HeatmapProps = { </s> add export type HeatmapProps = { </s> remove export declare type PolylineObject = PolylineProps & { </s> add export type PolylineObject = PolylineProps & { </s> remove export declare type PatternItem = { </s> add export type PatternItem = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Polyline.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> * Internal JSON object for representing polylines in Expo Maps library. <mask> * <mask> * See `PolylineProps` for more detail. <mask> */ <mask> export declare type PolylineObject = PolylineProps & { <mask> type: 'polyline'; <mask> }; <mask> /** <mask> * Represents a polyline on the map. <mask> */ </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type PolygonObject = PolygonProps & { </s> add export type PolygonObject = PolygonProps & { </s> remove export declare type KMLObject = { </s> add export type KMLObject = { </s> remove export declare type MarkerObject = { </s> add export type MarkerObject = { </s> remove export declare type ClusterObject = { </s> add export type ClusterObject = { </s> remove export declare type HeatmapObject = { </s> add export type HeatmapObject = { </s> remove export declare type GeoJsonObject = { </s> add export type GeoJsonObject = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-maps/build/Polyline.d.ts
keep replace keep keep keep keep keep
<mask> import { PermissionResponse as EXPermissionResponse, PermissionStatus, PermissionExpiration, PermissionHookOptions, Subscription } from 'expo-modules-core'; <mask> export declare type PermissionResponse = EXPermissionResponse & { <mask> /** <mask> * Indicates if your app has access to the whole or only part of the photo library. Possible values are: <mask> * - `'all'` if the user granted your app access to the whole photo library <mask> * - `'limited'` if the user granted your app access only to selected photos (only available on iOS 14.0+) <mask> * - `'none'` if user denied or hasn't yet granted the permission </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type MediaTypeValue = 'audio' | 'photo' | 'video' | 'unknown'; export declare type SortByKey = 'default' | 'mediaType' | 'width' | 'height' | 'creationTime' | 'modificationTime' | 'duration'; export declare type SortByValue = [SortByKey, boolean] | SortByKey; export declare type MediaTypeObject = { </s> add export type MediaTypeValue = 'audio' | 'photo' | 'video' | 'unknown'; export type SortByKey = 'default' | 'mediaType' | 'width' | 'height' | 'creationTime' | 'modificationTime' | 'duration'; export type SortByValue = [SortByKey, boolean] | SortByKey; export type MediaTypeObject = { </s> remove export declare type MediaLibraryAssetsChangeEvent = { </s> add export type MediaLibraryAssetsChangeEvent = { </s> remove export declare type Provider = { </s> add export type Provider = { </s> remove export declare type OnLocationChangeEvent = { </s> add export type OnLocationChangeEvent = { </s> remove export declare type IAPPurchaseHistoryOptions = { </s> add export type IAPPurchaseHistoryOptions = { </s> remove export declare type PatternItem = { </s> add export type PatternItem = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-media-library/build/MediaLibrary.d.ts
keep keep keep keep replace replace replace replace keep keep keep keep keep
<mask> * - `'none'` if user denied or hasn't yet granted the permission <mask> */ <mask> accessPrivileges?: 'all' | 'limited' | 'none'; <mask> }; <mask> export declare type MediaTypeValue = 'audio' | 'photo' | 'video' | 'unknown'; <mask> export declare type SortByKey = 'default' | 'mediaType' | 'width' | 'height' | 'creationTime' | 'modificationTime' | 'duration'; <mask> export declare type SortByValue = [SortByKey, boolean] | SortByKey; <mask> export declare type MediaTypeObject = { <mask> audio: 'audio'; <mask> photo: 'photo'; <mask> video: 'video'; <mask> unknown: 'unknown'; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type SortByObject = { </s> add export type SortByObject = { </s> remove export declare type PermissionDetailsLocationAndroid = { </s> add export type PermissionDetailsLocationAndroid = { </s> remove export declare type AlbumType = 'album' | 'moment' | 'smartAlbum'; export declare type AlbumsOptions = { </s> add export type AlbumType = 'album' | 'moment' | 'smartAlbum'; export type AlbumsOptions = { </s> remove export declare type POICategoryType = 'airport' | 'atm' | 'bank' | 'beach' | 'cafe' | 'hospital' | 'hotel' | 'museum' | 'pharmacy' | 'store'; </s> add export type POICategoryType = 'airport' | 'atm' | 'bank' | 'beach' | 'cafe' | 'hospital' | 'hotel' | 'museum' | 'pharmacy' | 'store'; </s> remove export declare type MediaSubtype = 'depthEffect' | 'hdr' | 'highFrameRate' | 'livePhoto' | 'panorama' | 'screenshot' | 'stream' | 'timelapse'; export declare type MediaLibraryAssetInfoQueryOptions = { </s> add export type MediaSubtype = 'depthEffect' | 'hdr' | 'highFrameRate' | 'livePhoto' | 'panorama' | 'screenshot' | 'stream' | 'timelapse'; export type MediaLibraryAssetInfoQueryOptions = { </s> remove export declare type AssetRef = Asset | string; export declare type AlbumRef = Album | string; </s> add export type AssetRef = Asset | string; export type AlbumRef = Album | string;
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-media-library/build/MediaLibrary.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> photo: 'photo'; <mask> video: 'video'; <mask> unknown: 'unknown'; <mask> }; <mask> export declare type SortByObject = { <mask> default: 'default'; <mask> mediaType: 'mediaType'; <mask> width: 'width'; <mask> height: 'height'; <mask> creationTime: 'creationTime'; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type MediaTypeValue = 'audio' | 'photo' | 'video' | 'unknown'; export declare type SortByKey = 'default' | 'mediaType' | 'width' | 'height' | 'creationTime' | 'modificationTime' | 'duration'; export declare type SortByValue = [SortByKey, boolean] | SortByKey; export declare type MediaTypeObject = { </s> add export type MediaTypeValue = 'audio' | 'photo' | 'video' | 'unknown'; export type SortByKey = 'default' | 'mediaType' | 'width' | 'height' | 'creationTime' | 'modificationTime' | 'duration'; export type SortByValue = [SortByKey, boolean] | SortByKey; export type MediaTypeObject = { </s> remove export declare type Asset = { </s> add export type Asset = { </s> remove export declare type ImageErrorEventData = { </s> add export type ImageErrorEventData = { </s> remove export declare type Location = { </s> add export type Location = { </s> remove export declare type URLListener = (event: EventType) => void; export declare type NativeURLListener = (nativeEvent: MessageEvent) => void; export declare type SendIntentExtras = { </s> add export type URLListener = (event: EventType) => void; export type NativeURLListener = (nativeEvent: MessageEvent) => void; export type SendIntentExtras = { </s> remove export declare type Album = { </s> add export type Album = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-media-library/build/MediaLibrary.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> creationTime: 'creationTime'; <mask> modificationTime: 'modificationTime'; <mask> duration: 'duration'; <mask> }; <mask> export declare type Asset = { <mask> /** <mask> * Internal ID that represents an asset. <mask> */ <mask> id: string; <mask> /** </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type AssetInfo = Asset & { </s> add export type AssetInfo = Asset & { </s> remove export declare type MarkerDragEndedEvent = { </s> add export type MarkerDragEndedEvent = { </s> remove export declare type MarkerDragStartedEvent = { </s> add export type MarkerDragStartedEvent = { </s> remove export declare type MapCluster = { </s> add export type MapCluster = { </s> remove export declare type MarkerClickEvent = { </s> add export type MarkerClickEvent = { </s> remove export declare type AssetRef = Asset | string; export declare type AlbumRef = Album | string; </s> add export type AssetRef = Asset | string; export type AlbumRef = Album | string;
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-media-library/build/MediaLibrary.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> * @platform android <mask> */ <mask> albumId?: string; <mask> }; <mask> export declare type AssetInfo = Asset & { <mask> /** <mask> * Local URI for the asset. <mask> */ <mask> localUri?: string; <mask> /** </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Asset = { </s> add export type Asset = { </s> remove export declare type AssetRef = Asset | string; export declare type AlbumRef = Album | string; </s> add export type AssetRef = Asset | string; export type AlbumRef = Album | string; </s> remove export declare type MapCluster = { </s> add export type MapCluster = { </s> remove export declare type CreateURLOptions = { </s> add export type CreateURLOptions = { </s> remove export declare type LocationTaskOptions = LocationOptions & { </s> add export type LocationTaskOptions = LocationOptions & { </s> remove export declare type OverlayObject = { </s> add export type OverlayObject = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-media-library/build/MediaLibrary.d.ts
keep keep keep keep replace replace keep keep keep keep keep
<mask> * @platform ios <mask> */ <mask> orientation?: number; <mask> }; <mask> export declare type MediaSubtype = 'depthEffect' | 'hdr' | 'highFrameRate' | 'livePhoto' | 'panorama' | 'screenshot' | 'stream' | 'timelapse'; <mask> export declare type MediaLibraryAssetInfoQueryOptions = { <mask> /** <mask> * Whether allow the asset to be downloaded from network. Only available in iOS with iCloud assets. <mask> * @default true <mask> */ <mask> shouldDownloadFromNetwork?: boolean; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type AlbumType = 'album' | 'moment' | 'smartAlbum'; export declare type AlbumsOptions = { </s> add export type AlbumType = 'album' | 'moment' | 'smartAlbum'; export type AlbumsOptions = { </s> remove export declare type AssetsOptions = { </s> add export type AssetsOptions = { </s> remove export declare type AppleMapsPOI = POI; export declare type GoogleMapsPOI = Omit<POI, 'enablePOISearching' | 'enablePOIFilter'>; export declare type Heatmaps = { </s> add export type AppleMapsPOI = POI; export type GoogleMapsPOI = Omit<POI, 'enablePOISearching' | 'enablePOIFilter'>; export type Heatmaps = { </s> remove export declare type POICategoryType = 'airport' | 'atm' | 'bank' | 'beach' | 'cafe' | 'hospital' | 'hotel' | 'museum' | 'pharmacy' | 'store'; </s> add export type POICategoryType = 'airport' | 'atm' | 'bank' | 'beach' | 'cafe' | 'hospital' | 'hotel' | 'museum' | 'pharmacy' | 'store'; </s> remove export declare type CameraPosition = { </s> add export type CameraPosition = { </s> remove export declare type MapType = { </s> add export type MapType = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-media-library/build/MediaLibrary.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> * @default true <mask> */ <mask> shouldDownloadFromNetwork?: boolean; <mask> }; <mask> export declare type MediaLibraryAssetsChangeEvent = { <mask> /** <mask> * Whether the media library's changes could be described as "incremental changes". <mask> * `true` indicates the changes are described by the `insertedAssets`, `deletedAssets` and <mask> * `updatedAssets` values. `false` indicates that the scope of changes is too large and you <mask> * should perform a full assets reload (eg. a user has changed access to individual assets in the </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type OnLocationChangeEvent = { </s> add export type OnLocationChangeEvent = { </s> remove export declare type IAPPurchaseHistoryOptions = { </s> add export type IAPPurchaseHistoryOptions = { </s> remove export declare type OnLocationDotPressEvent = { </s> add export type OnLocationDotPressEvent = { </s> remove export declare type CameraMove = { </s> add export type CameraMove = { </s> remove export declare type LocationTaskOptions = LocationOptions & { </s> add export type LocationTaskOptions = LocationOptions & { </s> remove export declare type MediaSubtype = 'depthEffect' | 'hdr' | 'highFrameRate' | 'livePhoto' | 'panorama' | 'screenshot' | 'stream' | 'timelapse'; export declare type MediaLibraryAssetInfoQueryOptions = { </s> add export type MediaSubtype = 'depthEffect' | 'hdr' | 'highFrameRate' | 'livePhoto' | 'panorama' | 'screenshot' | 'stream' | 'timelapse'; export type MediaLibraryAssetInfoQueryOptions = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-media-library/build/MediaLibrary.d.ts
keep keep keep keep replace keep keep keep replace keep keep keep
<mask> * storage (iCloud on iOS). <mask> */ <mask> updatedAssets?: Asset[]; <mask> }; <mask> export declare type Location = { <mask> latitude: number; <mask> longitude: number; <mask> }; <mask> export declare type Album = { <mask> /** <mask> * Album ID. <mask> */ </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type AssetRef = Asset | string; export declare type AlbumRef = Album | string; </s> add export type AssetRef = Asset | string; export type AlbumRef = Album | string; </s> remove export declare type LocationGeocodedLocation = { </s> add export type LocationGeocodedLocation = { </s> remove export declare type LocationObjectCoords = { </s> add export type LocationObjectCoords = { </s> remove export declare type AssetsOptions = { </s> add export type AssetsOptions = { </s> remove export declare type Point = { </s> add export type Point = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-media-library/build/MediaLibrary.d.ts
keep keep keep keep replace replace keep keep replace keep keep keep
<mask> * @platform ios <mask> */ <mask> locationNames?: string[]; <mask> }; <mask> export declare type AlbumType = 'album' | 'moment' | 'smartAlbum'; <mask> export declare type AlbumsOptions = { <mask> includeSmartAlbums?: boolean; <mask> }; <mask> export declare type AssetsOptions = { <mask> /** <mask> * The maximum number of items on a single page. <mask> * @default 20 </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type AppleMapsPOI = POI; export declare type GoogleMapsPOI = Omit<POI, 'enablePOISearching' | 'enablePOIFilter'>; export declare type Heatmaps = { </s> add export type AppleMapsPOI = POI; export type GoogleMapsPOI = Omit<POI, 'enablePOISearching' | 'enablePOIFilter'>; export type Heatmaps = { </s> remove export declare type MediaSubtype = 'depthEffect' | 'hdr' | 'highFrameRate' | 'livePhoto' | 'panorama' | 'screenshot' | 'stream' | 'timelapse'; export declare type MediaLibraryAssetInfoQueryOptions = { </s> add export type MediaSubtype = 'depthEffect' | 'hdr' | 'highFrameRate' | 'livePhoto' | 'panorama' | 'screenshot' | 'stream' | 'timelapse'; export type MediaLibraryAssetInfoQueryOptions = { </s> remove export declare type AssetRef = Asset | string; export declare type AlbumRef = Album | string; </s> add export type AssetRef = Asset | string; export type AlbumRef = Album | string; </s> remove export declare type LocationTaskOptions = LocationOptions & { </s> add export type LocationTaskOptions = LocationOptions & { </s> remove export declare type MapType = { </s> add export type MapType = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-media-library/build/MediaLibrary.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> * date. <mask> */ <mask> createdBefore?: Date | number; <mask> }; <mask> export declare type PagedInfo<T> = { <mask> /** <mask> * A page of [`Asset`](#asset)s fetched by the query. <mask> */ <mask> assets: T[]; <mask> /** </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type AssetRef = Asset | string; export declare type AlbumRef = Album | string; </s> add export type AssetRef = Asset | string; export type AlbumRef = Album | string; </s> remove export declare type OnRegionChangeEvent = { </s> add export type OnRegionChangeEvent = { </s> remove export declare type LocationGeocodedLocation = { </s> add export type LocationGeocodedLocation = { </s> remove export declare type LocationLastKnownOptions = { </s> add export type LocationLastKnownOptions = { </s> remove export declare type OnPoiClickEvent = { </s> add export type OnPoiClickEvent = { </s> remove export declare type UserLocation = { </s> add export type UserLocation = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-media-library/build/MediaLibrary.d.ts
keep keep keep keep replace replace keep keep keep keep keep
<mask> * Estimated total number of assets that match the query. <mask> */ <mask> totalCount: number; <mask> }; <mask> export declare type AssetRef = Asset | string; <mask> export declare type AlbumRef = Album | string; <mask> export { PermissionStatus, PermissionExpiration, EXPermissionResponse, PermissionHookOptions, Subscription, }; <mask> /** <mask> * Possible media types. <mask> */ <mask> export declare const MediaType: MediaTypeObject; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type Album = { </s> add export type Album = { </s> remove export declare type Asset = { </s> add export type Asset = { </s> remove export declare type AssetInfo = Asset & { </s> add export type AssetInfo = Asset & { </s> remove export declare type Location = { </s> add export type Location = { </s> remove export declare type PagedInfo<T> = { </s> add export type PagedInfo<T> = { </s> remove export declare type AssetsOptions = { </s> add export type AssetsOptions = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-media-library/build/MediaLibrary.d.ts
keep keep keep keep replace keep keep
<mask> "glob": "^7.1.7", <mask> "jest-expo": "~47.0.0", <mask> "jest-watch-typeahead": "0.6.4", <mask> "ts-jest": "~26.3.0", <mask> "typescript": "^4.3.5" <mask> } <mask> } </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type MapTypes = 'normal' | 'hybrid' | 'satellite' | 'terrain'; </s> add export type MapTypes = 'normal' | 'hybrid' | 'satellite' | 'terrain'; </s> remove export declare type HeatmapProps = { </s> add export type HeatmapProps = { </s> remove export declare type NativeLinearGradientProps = ViewProps & PropsWithChildren<{ </s> add export type NativeLinearGradientProps = ViewProps & PropsWithChildren<{ </s> remove export declare type LocalAuthenticationResult = { </s> add export type LocalAuthenticationResult = { </s> remove export declare type PackageRevision = { </s> add export type PackageRevision = { </s> remove declare type EventObject = { </s> add type EventObject = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-module-scripts/package.json
keep replace keep keep keep keep keep
<mask> import { ExpoModuleConfig } from './ExpoModuleConfig'; <mask> export declare type SupportedPlatform = 'ios' | 'android' | 'web'; <mask> export interface SearchOptions { <mask> searchPaths: string[]; <mask> ignorePaths?: string[] | null; <mask> exclude?: string[] | null; <mask> platform: SupportedPlatform; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type BundleOptions = { </s> add export type BundleOptions = { </s> remove export declare type NativeLinearGradientProps = ViewProps & PropsWithChildren<{ </s> add export type NativeLinearGradientProps = ViewProps & PropsWithChildren<{ </s> remove export declare type QueryParams = ParsedQs; export declare type ParsedURL = { </s> add export type QueryParams = ParsedQs; export type ParsedURL = { </s> remove export declare type MapTypes = 'normal' | 'hybrid' | 'satellite' | 'terrain'; </s> add export type MapTypes = 'normal' | 'hybrid' | 'satellite' | 'terrain'; </s> remove export declare type getLinearGradientBackgroundImage = (colors: number[], width?: number, height?: number, locations?: number[] | null, startPoint?: NativeLinearGradientPoint | null, endPoint?: NativeLinearGradientPoint | null) => string; export declare type NativeLinearGradientPoint = [number, number]; </s> add export type getLinearGradientBackgroundImage = (colors: number[], width?: number, height?: number, locations?: number[] | null, startPoint?: NativeLinearGradientPoint | null, endPoint?: NativeLinearGradientPoint | null) => string; export type NativeLinearGradientPoint = [number, number]; </s> remove export declare type AlbumType = 'album' | 'moment' | 'smartAlbum'; export declare type AlbumsOptions = { </s> add export type AlbumType = 'album' | 'moment' | 'smartAlbum'; export type AlbumsOptions = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-modules-autolinking/build/types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> export interface PatchReactImportsOptions { <mask> podsRoot: string; <mask> dryRun: boolean; <mask> } <mask> export declare type PackageRevision = { <mask> path: string; <mask> version: string; <mask> config?: ExpoModuleConfig; <mask> duplicates?: PackageRevision[]; <mask> }; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type SearchResults = { </s> add export type SearchResults = { </s> remove export declare type BundleOptions = { </s> add export type BundleOptions = { </s> remove export declare type URLListener = (event: EventType) => void; export declare type NativeURLListener = (nativeEvent: MessageEvent) => void; export declare type SendIntentExtras = { </s> add export type URLListener = (event: EventType) => void; export type NativeURLListener = (nativeEvent: MessageEvent) => void; export type SendIntentExtras = { </s> remove export declare type LocalAuthenticationResult = { </s> add export type LocalAuthenticationResult = { </s> remove export declare type LocationTaskServiceOptions = { </s> add export type LocationTaskServiceOptions = { </s> remove export declare type EventType = { </s> add export type EventType = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-modules-autolinking/build/types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> version: string; <mask> config?: ExpoModuleConfig; <mask> duplicates?: PackageRevision[]; <mask> }; <mask> export declare type SearchResults = { <mask> [moduleName: string]: PackageRevision; <mask> }; <mask> export interface ModuleAndroidProjectInfo { <mask> name: string; <mask> sourceDir: string; </s> [workspace] bump and align TypeScript version (#20392) </s> remove export declare type PackageRevision = { </s> add export type PackageRevision = { </s> remove export declare type ImageErrorEventData = { </s> add export type ImageErrorEventData = { </s> remove export declare type URLListener = (event: EventType) => void; export declare type NativeURLListener = (nativeEvent: MessageEvent) => void; export declare type SendIntentExtras = { </s> add export type URLListener = (event: EventType) => void; export type NativeURLListener = (nativeEvent: MessageEvent) => void; export type SendIntentExtras = { </s> remove export declare type Album = { </s> add export type Album = { </s> remove export declare type AssetRef = Asset | string; export declare type AlbumRef = Album | string; </s> add export type AssetRef = Asset | string; export type AlbumRef = Album | string; </s> remove export declare type BundleOptions = { </s> add export type BundleOptions = {
https://github.com/expo/expo/commit/9b26454e9df84c4984633bfe71e404011ad3fc5c
packages/expo-modules-autolinking/build/types.d.ts
keep keep keep keep replace keep keep keep keep keep
<mask> working-directory: ../ <mask> run: expo-cli init updates-e2e --yes <mask> - name: Add local expo-updates and dependencies <mask> working-directory: ../updates-e2e <mask> run: yarn add file:../expo/packages/expo-updates file:../expo/packages/expo file:../expo/packages/expo-eas-client file:../expo/packages/expo-modules-core file:../expo/packages/expo-json-utils file:../expo/packages/expo-manifests file:../expo/packages/expo-structured-headers file:../expo/packages/expo-updates-interface <mask> - name: Setup app.config.json <mask> working-directory: ../updates-e2e <mask> run: echo "{\"name\":\"updates-e2e\",\"plugins\":[\"expo-updates\"],\"android\":{\"package\":\"dev.expo.updatese2e\"},\"ios\":{\"bundleIdentifier\":\"dev.expo.updatese2e\"}}" > app.config.json <mask> - name: Prebuild <mask> working-directory: ../updates-e2e </s> [ci][updates-e2e] Fix build error from outdated project setup (#16973) # Why fix updates-e2e ci error after #16941 landed. the error job is like this one: https://github.com/expo/expo/runs/5883741338?check_suite_focus=true. the root cause is that updates-e2e uses sdk-44 template which is far away from latest main, e.g. AGP version, `compileSdkVersion` and `targetSdkVersion`. # How use latest expo-template-bare-minimal for expo prebuild # Test Plan updates-e2e ci green Co-authored-by: Brent Vatne <[email protected]> </s> remove run: expo-cli prebuild # TODO: remove once the local template projects are using SDK 45 packages - name: Manually bump kotlin version (workaround) working-directory: ../updates-e2e run: sed -i -e 's/\(buildToolsVersion = "[0-9.]*"\)/\1\nkotlinVersion = "1.6.10"/' ./android/build.gradle </s> add run: expo-cli prebuild --template expo-template-bare-minimum-*.tgz </s> add - name: Pack latest bare-minimum template as tarball for expo prebuild working-directory: templates/expo-template-bare-minimum run: npm pack --pack-destination ../../../updates-e2e/
https://github.com/expo/expo/commit/9df12da088578575150b07b14f4b188732144072
.github/workflows/updates-e2e.yml
keep add keep keep keep keep
<mask> working-directory: ../updates-e2e <mask> run: echo "{\"name\":\"updates-e2e\",\"plugins\":[\"expo-updates\"],\"android\":{\"package\":\"dev.expo.updatese2e\"},\"ios\":{\"bundleIdentifier\":\"dev.expo.updatese2e\"}}" > app.config.json <mask> - name: Prebuild <mask> working-directory: ../updates-e2e <mask> run: expo-cli prebuild --template expo-template-bare-minimum-*.tgz <mask> - name: Copy App.js from test fixtures </s> [ci][updates-e2e] Fix build error from outdated project setup (#16973) # Why fix updates-e2e ci error after #16941 landed. the error job is like this one: https://github.com/expo/expo/runs/5883741338?check_suite_focus=true. the root cause is that updates-e2e uses sdk-44 template which is far away from latest main, e.g. AGP version, `compileSdkVersion` and `targetSdkVersion`. # How use latest expo-template-bare-minimal for expo prebuild # Test Plan updates-e2e ci green Co-authored-by: Brent Vatne <[email protected]> </s> remove run: expo-cli prebuild # TODO: remove once the local template projects are using SDK 45 packages - name: Manually bump kotlin version (workaround) working-directory: ../updates-e2e run: sed -i -e 's/\(buildToolsVersion = "[0-9.]*"\)/\1\nkotlinVersion = "1.6.10"/' ./android/build.gradle </s> add run: expo-cli prebuild --template expo-template-bare-minimum-*.tgz </s> remove run: yarn add file:../expo/packages/expo-updates file:../expo/packages/expo file:../expo/packages/expo-eas-client file:../expo/packages/expo-modules-core file:../expo/packages/expo-json-utils file:../expo/packages/expo-manifests file:../expo/packages/expo-structured-headers file:../expo/packages/expo-updates-interface </s> add # install expo packages (including transitive packages) locally run: yarn add file:../expo/packages/expo-updates file:../expo/packages/expo file:../expo/packages/expo-eas-client file:../expo/packages/expo-modules-core file:../expo/packages/expo-json-utils file:../expo/packages/expo-manifests file:../expo/packages/expo-structured-headers file:../expo/packages/expo-updates-interface file:../expo/packages/expo-constants file:../expo/packages/expo-file-system file:../expo/packages/expo-font file:../expo/packages/expo-keep-awake file:../expo/packages/expo-splash-screen file:../expo/packages/expo-status-bar file:../expo/packages/expo-application file:../expo/packages/expo-error-recovery
https://github.com/expo/expo/commit/9df12da088578575150b07b14f4b188732144072
.github/workflows/updates-e2e.yml
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
<mask> working-directory: ../updates-e2e <mask> run: echo "{\"name\":\"updates-e2e\",\"plugins\":[\"expo-updates\"],\"android\":{\"package\":\"dev.expo.updatese2e\"},\"ios\":{\"bundleIdentifier\":\"dev.expo.updatese2e\"}}" > app.config.json <mask> - name: Prebuild <mask> working-directory: ../updates-e2e <mask> run: expo-cli prebuild <mask> # TODO: remove once the local template projects are using SDK 45 packages <mask> - name: Manually bump kotlin version (workaround) <mask> working-directory: ../updates-e2e <mask> run: sed -i -e 's/\(buildToolsVersion = "[0-9.]*"\)/\1\nkotlinVersion = "1.6.10"/' ./android/build.gradle <mask> - name: Copy App.js from test fixtures <mask> working-directory: ../updates-e2e <mask> run: cp ../expo/packages/expo-updates/e2e/__tests__/fixtures/App.js . <mask> - name: Set port in App.js <mask> working-directory: ../updates-e2e </s> [ci][updates-e2e] Fix build error from outdated project setup (#16973) # Why fix updates-e2e ci error after #16941 landed. the error job is like this one: https://github.com/expo/expo/runs/5883741338?check_suite_focus=true. the root cause is that updates-e2e uses sdk-44 template which is far away from latest main, e.g. AGP version, `compileSdkVersion` and `targetSdkVersion`. # How use latest expo-template-bare-minimal for expo prebuild # Test Plan updates-e2e ci green Co-authored-by: Brent Vatne <[email protected]> </s> add - name: Pack latest bare-minimum template as tarball for expo prebuild working-directory: templates/expo-template-bare-minimum run: npm pack --pack-destination ../../../updates-e2e/ </s> remove run: yarn add file:../expo/packages/expo-updates file:../expo/packages/expo file:../expo/packages/expo-eas-client file:../expo/packages/expo-modules-core file:../expo/packages/expo-json-utils file:../expo/packages/expo-manifests file:../expo/packages/expo-structured-headers file:../expo/packages/expo-updates-interface </s> add # install expo packages (including transitive packages) locally run: yarn add file:../expo/packages/expo-updates file:../expo/packages/expo file:../expo/packages/expo-eas-client file:../expo/packages/expo-modules-core file:../expo/packages/expo-json-utils file:../expo/packages/expo-manifests file:../expo/packages/expo-structured-headers file:../expo/packages/expo-updates-interface file:../expo/packages/expo-constants file:../expo/packages/expo-file-system file:../expo/packages/expo-font file:../expo/packages/expo-keep-awake file:../expo/packages/expo-splash-screen file:../expo/packages/expo-status-bar file:../expo/packages/expo-application file:../expo/packages/expo-error-recovery
https://github.com/expo/expo/commit/9df12da088578575150b07b14f4b188732144072
.github/workflows/updates-e2e.yml
keep keep keep replace replace replace replace keep
<mask> import { DangerDSLType } from 'danger/distribution/dsl/DangerDSL'; <mask> declare global { <mask> var danger: DangerDSLType; <mask> function message(message: string): void; <mask> function warn(message: string): void; <mask> function fail(message: string): void; <mask> function markdown(message: string): void; <mask> } </s> [danger] Add Android permissions warning (#9708) * [danger] Add Android permissions warning * [danger] Tweak the output and message for the android permission check * [danger] Fix the formatting of the next steps for android permissions * [danger] Add added permissions to show the problematic parts * [danger] Add third option to leave the permission intact * [danger] Add link to XDL schema when kept in * [danger] Reword the options to finish adding new permissions Co-authored-by: Charlie Cruzan <[email protected]> * [danger] Rebuild danger with the new message Co-authored-by: Charlie Cruzan <[email protected]> </s> remove function message(message: string): void; function warn(message: string): void; function fail(message: string): void; function markdown(message: string): void; </s> add // see: https://danger.systems/js/reference.html#communication function message(message: string, file?: string, line?: number): void; function warn(message: string, file?: string, line?: number): void; function fail(message: string, file?: string, line?: number): void; function markdown(message: string, file?: string, line?: number): void; </s> add var AndroidPermissionsChecker_1 = require("./AndroidPermissionsChecker"); Object.defineProperty(exports, "checkAndroidPermissions", { enumerable: true, get: function () { return AndroidPermissionsChecker_1.checkAndroidPermissions; } });
https://github.com/expo/expo/commit/a24fb760bcdc8b0fccd8fe6b6c1ce9f3bcb894f3
packages/danger/build/DangerDeclarations.d.ts
keep keep keep add keep
<mask> for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); <mask> } <mask> Object.defineProperty(exports, "__esModule", { value: true }); <mask> __exportStar(require("./ChangelogChecker"), exports); <mask> //# sourceMappingURL=index.js.map </s> [danger] Add Android permissions warning (#9708) * [danger] Add Android permissions warning * [danger] Tweak the output and message for the android permission check * [danger] Fix the formatting of the next steps for android permissions * [danger] Add added permissions to show the problematic parts * [danger] Add third option to leave the permission intact * [danger] Add link to XDL schema when kept in * [danger] Reword the options to finish adding new permissions Co-authored-by: Charlie Cruzan <[email protected]> * [danger] Rebuild danger with the new message Co-authored-by: Charlie Cruzan <[email protected]> </s> remove function message(message: string): void; function warn(message: string): void; function fail(message: string): void; function markdown(message: string): void; </s> add function message(message: string, file?: string, line?: number): void; function warn(message: string, file?: string, line?: number): void; function fail(message: string, file?: string, line?: number): void; function markdown(message: string, file?: string, line?: number): void; </s> remove function message(message: string): void; function warn(message: string): void; function fail(message: string): void; function markdown(message: string): void; </s> add // see: https://danger.systems/js/reference.html#communication function message(message: string, file?: string, line?: number): void; function warn(message: string, file?: string, line?: number): void; function fail(message: string, file?: string, line?: number): void; function markdown(message: string, file?: string, line?: number): void;
https://github.com/expo/expo/commit/a24fb760bcdc8b0fccd8fe6b6c1ce9f3bcb894f3
packages/danger/build/index.js
keep keep keep keep replace replace replace replace keep
<mask> import { DangerDSLType } from 'danger/distribution/dsl/DangerDSL'; <mask> <mask> declare global { <mask> var danger: DangerDSLType; <mask> function message(message: string): void; <mask> function warn(message: string): void; <mask> function fail(message: string): void; <mask> function markdown(message: string): void; <mask> } </s> [danger] Add Android permissions warning (#9708) * [danger] Add Android permissions warning * [danger] Tweak the output and message for the android permission check * [danger] Fix the formatting of the next steps for android permissions * [danger] Add added permissions to show the problematic parts * [danger] Add third option to leave the permission intact * [danger] Add link to XDL schema when kept in * [danger] Reword the options to finish adding new permissions Co-authored-by: Charlie Cruzan <[email protected]> * [danger] Rebuild danger with the new message Co-authored-by: Charlie Cruzan <[email protected]> </s> remove function message(message: string): void; function warn(message: string): void; function fail(message: string): void; function markdown(message: string): void; </s> add function message(message: string, file?: string, line?: number): void; function warn(message: string, file?: string, line?: number): void; function fail(message: string, file?: string, line?: number): void; function markdown(message: string, file?: string, line?: number): void; </s> add var AndroidPermissionsChecker_1 = require("./AndroidPermissionsChecker"); Object.defineProperty(exports, "checkAndroidPermissions", { enumerable: true, get: function () { return AndroidPermissionsChecker_1.checkAndroidPermissions; } });
https://github.com/expo/expo/commit/a24fb760bcdc8b0fccd8fe6b6c1ce9f3bcb894f3
packages/danger/src/DangerDeclarations.ts
keep keep keep add keep keep keep keep keep
<mask> isa = PBXNativeTarget; <mask> buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "BareExpoTests" */; <mask> buildPhases = ( <mask> 05C668AB4BB217A320BE1977 /* [CP] Check Pods Manifest.lock */, <mask> 00E356EA1AD99517003FC87E /* Sources */, <mask> 00E356EB1AD99517003FC87E /* Frameworks */, <mask> 00E356EC1AD99517003FC87E /* Resources */, <mask> C7D389DD290B549550344876 /* [CP] Embed Pods Frameworks */, <mask> 47DD0EDD3454AE91626FD6F2 /* [CP] Copy Pods Resources */, </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> add A04F3C9AC66B709E16F4F5AB /* [Expo] Configure project */, </s> add B915B6736A073215103D76E4 /* [Expo] Configure project */, </s> add C34A59B047C2543CA455E850 /* [Expo] Configure project */, </s> add 16FCED03E1D4FCCEA7984FA4 /* [Expo] Configure project */, </s> add 5834C135EA791757779CF476 /* [Expo] Configure project */, </s> add 4EE64A1CBBA28379FDF452DA /* [Expo] Configure project */,
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
apps/bare-expo/ios/BareExpo.xcodeproj/project.pbxproj
keep keep add keep keep keep keep keep keep
<mask> 7677BD1511B47107F041C6F8 /* [CP] Check Pods Manifest.lock */, <mask> 21646C4123F2D18200CB927F /* Generate Dynamic Macros */, <mask> FD4C38642228810C00325AF5 /* Start Packager */, <mask> 13B07F871A680F5B00A75B9A /* Sources */, <mask> 13B07F8C1A680F5B00A75B9A /* Frameworks */, <mask> 13B07F8E1A680F5B00A75B9A /* Resources */, <mask> 21646C4223F2D1BA00CB927F /* Copy Bundle Resources Conditionally */, <mask> 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, <mask> 836D52D1830FFB3E14169223 /* [CP] Embed Pods Frameworks */, </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> add 4EE64A1CBBA28379FDF452DA /* [Expo] Configure project */, </s> add 16FCED03E1D4FCCEA7984FA4 /* [Expo] Configure project */, </s> add C34A59B047C2543CA455E850 /* [Expo] Configure project */, </s> add D0DF8D1444FE87409F10169F /* [Expo] Configure project */, </s> add B915B6736A073215103D76E4 /* [Expo] Configure project */, </s> add A04F3C9AC66B709E16F4F5AB /* [Expo] Configure project */,
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
apps/bare-expo/ios/BareExpo.xcodeproj/project.pbxproj
keep keep add keep keep keep keep keep keep
<mask> 93314C9A2612C4EC2FE419FE /* [CP] Check Pods Manifest.lock */, <mask> B2C0264B256BDB3E008FD925 /* Generate Dynamic Macros */, <mask> B2C0264C256BDB3E008FD925 /* Start Packager */, <mask> B2C0264D256BDB3E008FD925 /* Sources */, <mask> B2C02650256BDB3E008FD925 /* Frameworks */, <mask> B2C02653256BDB3E008FD925 /* Resources */, <mask> B2C02657256BDB3E008FD925 /* Copy Bundle Resources Conditionally */, <mask> B2C02658256BDB3E008FD925 /* Bundle React Native code and images */, <mask> 476DB6938AE53029B700D7DE /* [CP] Embed Pods Frameworks */, </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> add 5834C135EA791757779CF476 /* [Expo] Configure project */, </s> add 16FCED03E1D4FCCEA7984FA4 /* [Expo] Configure project */, </s> add C34A59B047C2543CA455E850 /* [Expo] Configure project */, </s> add D0DF8D1444FE87409F10169F /* [Expo] Configure project */, </s> add B915B6736A073215103D76E4 /* [Expo] Configure project */, </s> add A04F3C9AC66B709E16F4F5AB /* [Expo] Configure project */,
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
apps/bare-expo/ios/BareExpo.xcodeproj/project.pbxproj
keep keep keep add keep keep keep keep keep
<mask> buildConfigurationList = 78CEE2E31ACD07D70095B124 /* Build configuration list for PBXNativeTarget "Expo Go (unversioned)" */; <mask> buildPhases = ( <mask> F9FE21357CDA656D80CBF8B4 /* [CP] Check Pods Manifest.lock */, <mask> 78CEE2F21ACDF25E0095B124 /* Generate Dynamic Macros */, <mask> 78CEE2BC1ACD07D70095B124 /* Sources */, <mask> 78CEE2BD1ACD07D70095B124 /* Frameworks */, <mask> 78CEE2BE1ACD07D70095B124 /* Resources */, <mask> 347794D3234BFFC20087B402 /* Copy Bundle Resources Conditionally */, <mask> FCF6D37525B34BC200808BF5 /* Embed App Extensions */, </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> add 16FCED03E1D4FCCEA7984FA4 /* [Expo] Configure project */, </s> add D0DF8D1444FE87409F10169F /* [Expo] Configure project */, </s> add B915B6736A073215103D76E4 /* [Expo] Configure project */, </s> add A04F3C9AC66B709E16F4F5AB /* [Expo] Configure project */, </s> add 5834C135EA791757779CF476 /* [Expo] Configure project */, </s> add 4EE64A1CBBA28379FDF452DA /* [Expo] Configure project */,
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
ios/Exponent.xcodeproj/project.pbxproj
keep keep add keep keep keep keep
<mask> buildConfigurationList = B505BA1720CAF77A0046ACFB /* Build configuration list for PBXNativeTarget "Tests" */; <mask> buildPhases = ( <mask> B9B26483058A19438FCA6016 /* [CP] Check Pods Manifest.lock */, <mask> B505BA0A20CAF77A0046ACFB /* Sources */, <mask> B505BA0B20CAF77A0046ACFB /* Frameworks */, <mask> B505BA0C20CAF77A0046ACFB /* Resources */, <mask> C9D8FB1F6F0BC1A178671F84 /* [CP] Copy Pods Resources */, </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> add D0DF8D1444FE87409F10169F /* [Expo] Configure project */, </s> add A04F3C9AC66B709E16F4F5AB /* [Expo] Configure project */, </s> add C34A59B047C2543CA455E850 /* [Expo] Configure project */, </s> add 16FCED03E1D4FCCEA7984FA4 /* [Expo] Configure project */, </s> add 5834C135EA791757779CF476 /* [Expo] Configure project */, </s> add 4EE64A1CBBA28379FDF452DA /* [Expo] Configure project */,
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
ios/Exponent.xcodeproj/project.pbxproj
keep keep keep add keep keep keep keep keep keep
<mask> isa = PBXNativeTarget; <mask> buildConfigurationList = B513334A1CE649FE00E9FC9E /* Build configuration list for PBXNativeTarget "ExponentIntegrationTests" */; <mask> buildPhases = ( <mask> 2DA4AA338E6D5422567DE1EB /* [CP] Check Pods Manifest.lock */, <mask> B513333C1CE649FE00E9FC9E /* Sources */, <mask> B513333D1CE649FE00E9FC9E /* Frameworks */, <mask> B513333E1CE649FE00E9FC9E /* Resources */, <mask> ); <mask> buildRules = ( <mask> ); </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> add D0DF8D1444FE87409F10169F /* [Expo] Configure project */, </s> add B915B6736A073215103D76E4 /* [Expo] Configure project */, </s> add C34A59B047C2543CA455E850 /* [Expo] Configure project */, </s> add 16FCED03E1D4FCCEA7984FA4 /* [Expo] Configure project */, </s> add 5834C135EA791757779CF476 /* [Expo] Configure project */, </s> add 4EE64A1CBBA28379FDF452DA /* [Expo] Configure project */,
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
ios/Exponent.xcodeproj/project.pbxproj
keep add keep keep keep keep keep keep
<mask> 1638D644853BCA1A2A438A9B /* [CP] Check Pods Manifest.lock */, <mask> F14217DC262CB68600BB97E6 /* Generate Dynamic Macros */, <mask> F14217DD262CB68600BB97E6 /* Sources */, <mask> F142190B262CB68600BB97E6 /* Frameworks */, <mask> F142190E262CB68600BB97E6 /* Resources */, <mask> F142191C262CB68600BB97E6 /* Copy Bundle Resources Conditionally */, <mask> F142191D262CB68600BB97E6 /* Embed App Extensions */, <mask> 6C264FD70642BEF89C6D30C9 /* [CP] Copy Pods Resources */, </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> add C34A59B047C2543CA455E850 /* [Expo] Configure project */, </s> add 5834C135EA791757779CF476 /* [Expo] Configure project */, </s> add 4EE64A1CBBA28379FDF452DA /* [Expo] Configure project */, </s> add D0DF8D1444FE87409F10169F /* [Expo] Configure project */, </s> add B915B6736A073215103D76E4 /* [Expo] Configure project */, </s> add A04F3C9AC66B709E16F4F5AB /* [Expo] Configure project */,
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
ios/Exponent.xcodeproj/project.pbxproj
keep keep keep add keep keep keep keep keep
<mask> public def modules_provider_name <mask> @options.fetch(:providerName, Constants::MODULES_PROVIDER_FILE_NAME) <mask> end <mask> <mask> # For now there is no need to generate the modules provider for testing. <mask> public def should_generate_modules_provider? <mask> return [email protected](:testsOnly, false) <mask> end <mask> </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> remove # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path modules_provider_path = File.join(target.support_files_dir, autolinking_manager.modules_provider_name) </s> add UI.message '- Generating the provider for ' << target_name.green << ' target' do # Get the absolute path to the modules provider modules_provider_path = autolinking_manager.modules_provider_path(target) </s> remove end # module ExpoAutolinkingExtension </s> add # Makes sure that the build script configuring the project is installed, # is up-to-date and is placed before the "Compile Sources" phase. def self.integrate_build_script(autolinking_manager, project, target, native_target) build_phases = native_target.build_phases modules_provider_path = autolinking_manager.modules_provider_path(target) # Look for our own build script phase xcode_build_script = native_target.shell_script_build_phases.find { |script| script.name == Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME } if xcode_build_script.nil? # Inform the user that we added a build script. puts "[Expo] ".blue << "Installing the build script for target " << native_target.name.green # Create a new build script in the target, it's added as the last phase xcode_build_script = native_target.new_shell_script_build_phase(Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME) end # Make sure it is before the "Compile Sources" build phase xcode_build_script_index = build_phases.find_index(xcode_build_script) compile_sources_index = build_phases.find_index { |phase| phase.is_a?(Xcodeproj::Project::PBXSourcesBuildPhase) } if xcode_build_script_index.nil? # This is almost impossible to get here as the script was just created with `new_shell_script_build_phase` # that puts the script at the end of the phases, but let's log it just in case. puts "[Expo] ".blue << "Unable to find the configuring build script in the Xcode project".red end if compile_sources_index.nil? # In this case the project will probably not compile but that's not our fault # and it doesn't block us from updating our build script. puts "[Expo] ".blue << "Unable to find the compilation build phase in the Xcode project".red end # Insert our script before the "Compile Sources" phase when necessary unless compile_sources_index.nil? || xcode_build_script_index < compile_sources_index build_phases.insert( compile_sources_index, build_phases.delete_at(xcode_build_script_index) ) end # Get path to the script that will be added to the target support files support_script_path = File.join(target.support_files_dir, Constants::CONFIGURE_PROJECT_SCRIPT_FILE_NAME) support_script_relative_path = Pathname.new(support_script_path).relative_path_from(project.project_dir) # Write to the shell script so it's always in-sync with the autolinking configuration IO.write( support_script_path, generate_support_script(autolinking_manager, modules_provider_path) ) # Make the support script executable FileUtils.chmod('+x', support_script_path) # Force the build phase script to run on each build (including incremental builds) xcode_build_script.always_out_of_date = '1' # Make sure the build script in Xcode is up to date, but probably it's not going to change # as it just runs the script generated in the target support files xcode_build_script.shell_script = generate_xcode_build_script(support_script_relative_path) end # Generates the shell script of the build script phase. # Try not to modify this since it involves changes in the pbxproj so # it's better to modify the support script instead, if possible. def self.generate_xcode_build_script(script_relative_path) escaped_path = script_relative_path.to_s.gsub(/[^a-zA-Z0-9,\._\+@%\/\-]/) { |char| "\\#{char}" } <<~XCODE_BUILD_SCRIPT # This script configures Expo modules and generates the modules provider file. bash -l -c "./#{escaped_path}" XCODE_BUILD_SCRIPT end # Generates the support script that is executed by the build script phase. def self.generate_support_script(autolinking_manager, modules_provider_path) args = autolinking_manager.base_command_args.map { |arg| "\"#{arg}\"" }.join(' ') <<~SUPPORT_SCRIPT #!/usr/bin/env bash # @generated by expo-modules-autolinking set -eo pipefail function with_node() { # Start with a default NODE_BINARY=$(command -v node) export NODE_BINARY # Override the default with the global environment ENV_PATH="$PODS_ROOT/../.xcode.env" if [[ -f "$ENV_PATH" ]]; then source "$ENV_PATH" fi # Override the global with the local environment LOCAL_ENV_PATH="${ENV_PATH}.local" if [[ -f "$LOCAL_ENV_PATH" ]]; then source "$LOCAL_ENV_PATH" fi if [[ -n "$NODE_BINARY" && -x "$NODE_BINARY" ]]; then echo "Node found at: ${NODE_BINARY}" else cat >&2 << NODE_NOT_FOUND error: Could not find "node" executable while running an Xcode build script. You need to specify the path to your Node.js executable by defining an environment variable named NODE_BINARY in your project's .xcode.env or .xcode.env.local file. You can set this up quickly by running: echo "export NODE_BINARY=\\$(command -v node)" >> .xcode.env in the ios folder of your project. NODE_NOT_FOUND exit 1 fi # Execute argument, if present if [[ "$#" -gt 0 ]]; then "$NODE_BINARY" "$@" fi } with_node --no-warnings --eval "require(\'expo-modules-autolinking\')(process.argv.slice(1))" generate-package-list #{args} --target "#{modules_provider_path}" SUPPORT_SCRIPT end end # module ProjectIntegrator </s> remove private def generate_package_list_command_args(target_path) </s> add public def generate_package_list_command_args(target_path) </s> remove private def node_command_args(command_name) </s> add public def base_command_args </s> remove # Shorthand ref for the autolinking manager. autolinking_manager = target.target_definition.autolinking_manager </s> add # Shorthand ref for the autolinking manager. autolinking_manager = target.target_definition.autolinking_manager </s> add private def node_command_args(command_name) eval_command_args = [ 'node', '--no-warnings', '--eval', 'require(\'expo-modules-autolinking\')(process.argv.slice(1))', command_name, '--platform', 'ios' ] return eval_command_args.concat(base_command_args()) end
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
packages/expo-modules-autolinking/scripts/ios/autolinking_manager.rb
keep keep keep replace keep keep keep replace replace replace replace replace replace replace replace replace replace keep
<mask> end <mask> end <mask> <mask> private def node_command_args(command_name) <mask> search_paths = @options.fetch(:searchPaths, @options.fetch(:modules_paths, nil)) <mask> ignore_paths = @options.fetch(:ignorePaths, nil) <mask> exclude = @options.fetch(:exclude, []) <mask> <mask> args = [ <mask> 'node', <mask> '--no-warnings', <mask> '--eval', <mask> 'require(\'expo-modules-autolinking\')(process.argv.slice(1))', <mask> command_name, <mask> '--platform', <mask> 'ios' <mask> ] <mask> </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> add private def node_command_args(command_name) eval_command_args = [ 'node', '--no-warnings', '--eval', 'require(\'expo-modules-autolinking\')(process.argv.slice(1))', command_name, '--platform', 'ios' ] return eval_command_args.concat(base_command_args()) end </s> add CONFIGURE_PROJECT_BUILD_SCRIPT_NAME = '[Expo] Configure project' CONFIGURE_PROJECT_SCRIPT_FILE_NAME = 'expo-configure-project.sh' </s> remove end # module ExpoAutolinkingExtension </s> add # Makes sure that the build script configuring the project is installed, # is up-to-date and is placed before the "Compile Sources" phase. def self.integrate_build_script(autolinking_manager, project, target, native_target) build_phases = native_target.build_phases modules_provider_path = autolinking_manager.modules_provider_path(target) # Look for our own build script phase xcode_build_script = native_target.shell_script_build_phases.find { |script| script.name == Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME } if xcode_build_script.nil? # Inform the user that we added a build script. puts "[Expo] ".blue << "Installing the build script for target " << native_target.name.green # Create a new build script in the target, it's added as the last phase xcode_build_script = native_target.new_shell_script_build_phase(Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME) end # Make sure it is before the "Compile Sources" build phase xcode_build_script_index = build_phases.find_index(xcode_build_script) compile_sources_index = build_phases.find_index { |phase| phase.is_a?(Xcodeproj::Project::PBXSourcesBuildPhase) } if xcode_build_script_index.nil? # This is almost impossible to get here as the script was just created with `new_shell_script_build_phase` # that puts the script at the end of the phases, but let's log it just in case. puts "[Expo] ".blue << "Unable to find the configuring build script in the Xcode project".red end if compile_sources_index.nil? # In this case the project will probably not compile but that's not our fault # and it doesn't block us from updating our build script. puts "[Expo] ".blue << "Unable to find the compilation build phase in the Xcode project".red end # Insert our script before the "Compile Sources" phase when necessary unless compile_sources_index.nil? || xcode_build_script_index < compile_sources_index build_phases.insert( compile_sources_index, build_phases.delete_at(xcode_build_script_index) ) end # Get path to the script that will be added to the target support files support_script_path = File.join(target.support_files_dir, Constants::CONFIGURE_PROJECT_SCRIPT_FILE_NAME) support_script_relative_path = Pathname.new(support_script_path).relative_path_from(project.project_dir) # Write to the shell script so it's always in-sync with the autolinking configuration IO.write( support_script_path, generate_support_script(autolinking_manager, modules_provider_path) ) # Make the support script executable FileUtils.chmod('+x', support_script_path) # Force the build phase script to run on each build (including incremental builds) xcode_build_script.always_out_of_date = '1' # Make sure the build script in Xcode is up to date, but probably it's not going to change # as it just runs the script generated in the target support files xcode_build_script.shell_script = generate_xcode_build_script(support_script_relative_path) end # Generates the shell script of the build script phase. # Try not to modify this since it involves changes in the pbxproj so # it's better to modify the support script instead, if possible. def self.generate_xcode_build_script(script_relative_path) escaped_path = script_relative_path.to_s.gsub(/[^a-zA-Z0-9,\._\+@%\/\-]/) { |char| "\\#{char}" } <<~XCODE_BUILD_SCRIPT # This script configures Expo modules and generates the modules provider file. bash -l -c "./#{escaped_path}" XCODE_BUILD_SCRIPT end # Generates the support script that is executed by the build script phase. def self.generate_support_script(autolinking_manager, modules_provider_path) args = autolinking_manager.base_command_args.map { |arg| "\"#{arg}\"" }.join(' ') <<~SUPPORT_SCRIPT #!/usr/bin/env bash # @generated by expo-modules-autolinking set -eo pipefail function with_node() { # Start with a default NODE_BINARY=$(command -v node) export NODE_BINARY # Override the default with the global environment ENV_PATH="$PODS_ROOT/../.xcode.env" if [[ -f "$ENV_PATH" ]]; then source "$ENV_PATH" fi # Override the global with the local environment LOCAL_ENV_PATH="${ENV_PATH}.local" if [[ -f "$LOCAL_ENV_PATH" ]]; then source "$LOCAL_ENV_PATH" fi if [[ -n "$NODE_BINARY" && -x "$NODE_BINARY" ]]; then echo "Node found at: ${NODE_BINARY}" else cat >&2 << NODE_NOT_FOUND error: Could not find "node" executable while running an Xcode build script. You need to specify the path to your Node.js executable by defining an environment variable named NODE_BINARY in your project's .xcode.env or .xcode.env.local file. You can set this up quickly by running: echo "export NODE_BINARY=\\$(command -v node)" >> .xcode.env in the ios folder of your project. NODE_NOT_FOUND exit 1 fi # Execute argument, if present if [[ "$#" -gt 0 ]]; then "$NODE_BINARY" "$@" fi } with_node --no-warnings --eval "require(\'expo-modules-autolinking\')(process.argv.slice(1))" generate-package-list #{args} --target "#{modules_provider_path}" SUPPORT_SCRIPT end end # module ProjectIntegrator </s> remove private def generate_package_list_command_args(target_path) </s> add public def generate_package_list_command_args(target_path) </s> add A04F3C9AC66B709E16F4F5AB /* [Expo] Configure project */,
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
packages/expo-modules-autolinking/scripts/ios/autolinking_manager.rb
keep add keep keep keep keep
<mask> end <mask> <mask> private def resolve_command_args <mask> node_command_args('resolve').concat(['--json']) <mask> end <mask> </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> remove private def generate_package_list_command_args(target_path) </s> add public def generate_package_list_command_args(target_path) </s> remove private def node_command_args(command_name) </s> add public def base_command_args </s> remove args = [ 'node', '--no-warnings', '--eval', 'require(\'expo-modules-autolinking\')(process.argv.slice(1))', command_name, '--platform', 'ios' ] </s> add args = [] </s> add # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path public def modules_provider_path(target) File.join(target.support_files_dir, modules_provider_name) end </s> remove end # module ExpoAutolinkingExtension </s> add # Makes sure that the build script configuring the project is installed, # is up-to-date and is placed before the "Compile Sources" phase. def self.integrate_build_script(autolinking_manager, project, target, native_target) build_phases = native_target.build_phases modules_provider_path = autolinking_manager.modules_provider_path(target) # Look for our own build script phase xcode_build_script = native_target.shell_script_build_phases.find { |script| script.name == Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME } if xcode_build_script.nil? # Inform the user that we added a build script. puts "[Expo] ".blue << "Installing the build script for target " << native_target.name.green # Create a new build script in the target, it's added as the last phase xcode_build_script = native_target.new_shell_script_build_phase(Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME) end # Make sure it is before the "Compile Sources" build phase xcode_build_script_index = build_phases.find_index(xcode_build_script) compile_sources_index = build_phases.find_index { |phase| phase.is_a?(Xcodeproj::Project::PBXSourcesBuildPhase) } if xcode_build_script_index.nil? # This is almost impossible to get here as the script was just created with `new_shell_script_build_phase` # that puts the script at the end of the phases, but let's log it just in case. puts "[Expo] ".blue << "Unable to find the configuring build script in the Xcode project".red end if compile_sources_index.nil? # In this case the project will probably not compile but that's not our fault # and it doesn't block us from updating our build script. puts "[Expo] ".blue << "Unable to find the compilation build phase in the Xcode project".red end # Insert our script before the "Compile Sources" phase when necessary unless compile_sources_index.nil? || xcode_build_script_index < compile_sources_index build_phases.insert( compile_sources_index, build_phases.delete_at(xcode_build_script_index) ) end # Get path to the script that will be added to the target support files support_script_path = File.join(target.support_files_dir, Constants::CONFIGURE_PROJECT_SCRIPT_FILE_NAME) support_script_relative_path = Pathname.new(support_script_path).relative_path_from(project.project_dir) # Write to the shell script so it's always in-sync with the autolinking configuration IO.write( support_script_path, generate_support_script(autolinking_manager, modules_provider_path) ) # Make the support script executable FileUtils.chmod('+x', support_script_path) # Force the build phase script to run on each build (including incremental builds) xcode_build_script.always_out_of_date = '1' # Make sure the build script in Xcode is up to date, but probably it's not going to change # as it just runs the script generated in the target support files xcode_build_script.shell_script = generate_xcode_build_script(support_script_relative_path) end # Generates the shell script of the build script phase. # Try not to modify this since it involves changes in the pbxproj so # it's better to modify the support script instead, if possible. def self.generate_xcode_build_script(script_relative_path) escaped_path = script_relative_path.to_s.gsub(/[^a-zA-Z0-9,\._\+@%\/\-]/) { |char| "\\#{char}" } <<~XCODE_BUILD_SCRIPT # This script configures Expo modules and generates the modules provider file. bash -l -c "./#{escaped_path}" XCODE_BUILD_SCRIPT end # Generates the support script that is executed by the build script phase. def self.generate_support_script(autolinking_manager, modules_provider_path) args = autolinking_manager.base_command_args.map { |arg| "\"#{arg}\"" }.join(' ') <<~SUPPORT_SCRIPT #!/usr/bin/env bash # @generated by expo-modules-autolinking set -eo pipefail function with_node() { # Start with a default NODE_BINARY=$(command -v node) export NODE_BINARY # Override the default with the global environment ENV_PATH="$PODS_ROOT/../.xcode.env" if [[ -f "$ENV_PATH" ]]; then source "$ENV_PATH" fi # Override the global with the local environment LOCAL_ENV_PATH="${ENV_PATH}.local" if [[ -f "$LOCAL_ENV_PATH" ]]; then source "$LOCAL_ENV_PATH" fi if [[ -n "$NODE_BINARY" && -x "$NODE_BINARY" ]]; then echo "Node found at: ${NODE_BINARY}" else cat >&2 << NODE_NOT_FOUND error: Could not find "node" executable while running an Xcode build script. You need to specify the path to your Node.js executable by defining an environment variable named NODE_BINARY in your project's .xcode.env or .xcode.env.local file. You can set this up quickly by running: echo "export NODE_BINARY=\\$(command -v node)" >> .xcode.env in the ios folder of your project. NODE_NOT_FOUND exit 1 fi # Execute argument, if present if [[ "$#" -gt 0 ]]; then "$NODE_BINARY" "$@" fi } with_node --no-warnings --eval "require(\'expo-modules-autolinking\')(process.argv.slice(1))" generate-package-list #{args} --target "#{modules_provider_path}" SUPPORT_SCRIPT end end # module ProjectIntegrator </s> add integrate_build_script(autolinking_manager, project, target, native_target)
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
packages/expo-modules-autolinking/scripts/ios/autolinking_manager.rb
keep keep keep keep replace keep keep keep keep keep
<mask> private def resolve_command_args <mask> node_command_args('resolve').concat(['--json']) <mask> end <mask> <mask> private def generate_package_list_command_args(target_path) <mask> node_command_args('generate-package-list').concat([ <mask> '--target', <mask> target_path <mask> ]) <mask> end </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> add private def node_command_args(command_name) eval_command_args = [ 'node', '--no-warnings', '--eval', 'require(\'expo-modules-autolinking\')(process.argv.slice(1))', command_name, '--platform', 'ios' ] return eval_command_args.concat(base_command_args()) end </s> remove private def node_command_args(command_name) </s> add public def base_command_args </s> remove args = [ 'node', '--no-warnings', '--eval', 'require(\'expo-modules-autolinking\')(process.argv.slice(1))', command_name, '--platform', 'ios' ] </s> add args = [] </s> add # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path public def modules_provider_path(target) File.join(target.support_files_dir, modules_provider_name) end </s> remove end # module ExpoAutolinkingExtension </s> add # Makes sure that the build script configuring the project is installed, # is up-to-date and is placed before the "Compile Sources" phase. def self.integrate_build_script(autolinking_manager, project, target, native_target) build_phases = native_target.build_phases modules_provider_path = autolinking_manager.modules_provider_path(target) # Look for our own build script phase xcode_build_script = native_target.shell_script_build_phases.find { |script| script.name == Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME } if xcode_build_script.nil? # Inform the user that we added a build script. puts "[Expo] ".blue << "Installing the build script for target " << native_target.name.green # Create a new build script in the target, it's added as the last phase xcode_build_script = native_target.new_shell_script_build_phase(Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME) end # Make sure it is before the "Compile Sources" build phase xcode_build_script_index = build_phases.find_index(xcode_build_script) compile_sources_index = build_phases.find_index { |phase| phase.is_a?(Xcodeproj::Project::PBXSourcesBuildPhase) } if xcode_build_script_index.nil? # This is almost impossible to get here as the script was just created with `new_shell_script_build_phase` # that puts the script at the end of the phases, but let's log it just in case. puts "[Expo] ".blue << "Unable to find the configuring build script in the Xcode project".red end if compile_sources_index.nil? # In this case the project will probably not compile but that's not our fault # and it doesn't block us from updating our build script. puts "[Expo] ".blue << "Unable to find the compilation build phase in the Xcode project".red end # Insert our script before the "Compile Sources" phase when necessary unless compile_sources_index.nil? || xcode_build_script_index < compile_sources_index build_phases.insert( compile_sources_index, build_phases.delete_at(xcode_build_script_index) ) end # Get path to the script that will be added to the target support files support_script_path = File.join(target.support_files_dir, Constants::CONFIGURE_PROJECT_SCRIPT_FILE_NAME) support_script_relative_path = Pathname.new(support_script_path).relative_path_from(project.project_dir) # Write to the shell script so it's always in-sync with the autolinking configuration IO.write( support_script_path, generate_support_script(autolinking_manager, modules_provider_path) ) # Make the support script executable FileUtils.chmod('+x', support_script_path) # Force the build phase script to run on each build (including incremental builds) xcode_build_script.always_out_of_date = '1' # Make sure the build script in Xcode is up to date, but probably it's not going to change # as it just runs the script generated in the target support files xcode_build_script.shell_script = generate_xcode_build_script(support_script_relative_path) end # Generates the shell script of the build script phase. # Try not to modify this since it involves changes in the pbxproj so # it's better to modify the support script instead, if possible. def self.generate_xcode_build_script(script_relative_path) escaped_path = script_relative_path.to_s.gsub(/[^a-zA-Z0-9,\._\+@%\/\-]/) { |char| "\\#{char}" } <<~XCODE_BUILD_SCRIPT # This script configures Expo modules and generates the modules provider file. bash -l -c "./#{escaped_path}" XCODE_BUILD_SCRIPT end # Generates the support script that is executed by the build script phase. def self.generate_support_script(autolinking_manager, modules_provider_path) args = autolinking_manager.base_command_args.map { |arg| "\"#{arg}\"" }.join(' ') <<~SUPPORT_SCRIPT #!/usr/bin/env bash # @generated by expo-modules-autolinking set -eo pipefail function with_node() { # Start with a default NODE_BINARY=$(command -v node) export NODE_BINARY # Override the default with the global environment ENV_PATH="$PODS_ROOT/../.xcode.env" if [[ -f "$ENV_PATH" ]]; then source "$ENV_PATH" fi # Override the global with the local environment LOCAL_ENV_PATH="${ENV_PATH}.local" if [[ -f "$LOCAL_ENV_PATH" ]]; then source "$LOCAL_ENV_PATH" fi if [[ -n "$NODE_BINARY" && -x "$NODE_BINARY" ]]; then echo "Node found at: ${NODE_BINARY}" else cat >&2 << NODE_NOT_FOUND error: Could not find "node" executable while running an Xcode build script. You need to specify the path to your Node.js executable by defining an environment variable named NODE_BINARY in your project's .xcode.env or .xcode.env.local file. You can set this up quickly by running: echo "export NODE_BINARY=\\$(command -v node)" >> .xcode.env in the ios folder of your project. NODE_NOT_FOUND exit 1 fi # Execute argument, if present if [[ "$#" -gt 0 ]]; then "$NODE_BINARY" "$@" fi } with_node --no-warnings --eval "require(\'expo-modules-autolinking\')(process.argv.slice(1))" generate-package-list #{args} --target "#{modules_provider_path}" SUPPORT_SCRIPT end end # module ProjectIntegrator </s> add integrate_build_script(autolinking_manager, project, target, native_target)
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
packages/expo-modules-autolinking/scripts/ios/autolinking_manager.rb
keep keep keep add keep keep
<mask> module Expo <mask> module Constants <mask> GENERATED_GROUP_NAME = 'ExpoModulesProviders' <mask> MODULES_PROVIDER_FILE_NAME = 'ExpoModulesProvider.swift' <mask> end <mask> end </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> remove end # module ExpoAutolinkingExtension </s> add # Makes sure that the build script configuring the project is installed, # is up-to-date and is placed before the "Compile Sources" phase. def self.integrate_build_script(autolinking_manager, project, target, native_target) build_phases = native_target.build_phases modules_provider_path = autolinking_manager.modules_provider_path(target) # Look for our own build script phase xcode_build_script = native_target.shell_script_build_phases.find { |script| script.name == Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME } if xcode_build_script.nil? # Inform the user that we added a build script. puts "[Expo] ".blue << "Installing the build script for target " << native_target.name.green # Create a new build script in the target, it's added as the last phase xcode_build_script = native_target.new_shell_script_build_phase(Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME) end # Make sure it is before the "Compile Sources" build phase xcode_build_script_index = build_phases.find_index(xcode_build_script) compile_sources_index = build_phases.find_index { |phase| phase.is_a?(Xcodeproj::Project::PBXSourcesBuildPhase) } if xcode_build_script_index.nil? # This is almost impossible to get here as the script was just created with `new_shell_script_build_phase` # that puts the script at the end of the phases, but let's log it just in case. puts "[Expo] ".blue << "Unable to find the configuring build script in the Xcode project".red end if compile_sources_index.nil? # In this case the project will probably not compile but that's not our fault # and it doesn't block us from updating our build script. puts "[Expo] ".blue << "Unable to find the compilation build phase in the Xcode project".red end # Insert our script before the "Compile Sources" phase when necessary unless compile_sources_index.nil? || xcode_build_script_index < compile_sources_index build_phases.insert( compile_sources_index, build_phases.delete_at(xcode_build_script_index) ) end # Get path to the script that will be added to the target support files support_script_path = File.join(target.support_files_dir, Constants::CONFIGURE_PROJECT_SCRIPT_FILE_NAME) support_script_relative_path = Pathname.new(support_script_path).relative_path_from(project.project_dir) # Write to the shell script so it's always in-sync with the autolinking configuration IO.write( support_script_path, generate_support_script(autolinking_manager, modules_provider_path) ) # Make the support script executable FileUtils.chmod('+x', support_script_path) # Force the build phase script to run on each build (including incremental builds) xcode_build_script.always_out_of_date = '1' # Make sure the build script in Xcode is up to date, but probably it's not going to change # as it just runs the script generated in the target support files xcode_build_script.shell_script = generate_xcode_build_script(support_script_relative_path) end # Generates the shell script of the build script phase. # Try not to modify this since it involves changes in the pbxproj so # it's better to modify the support script instead, if possible. def self.generate_xcode_build_script(script_relative_path) escaped_path = script_relative_path.to_s.gsub(/[^a-zA-Z0-9,\._\+@%\/\-]/) { |char| "\\#{char}" } <<~XCODE_BUILD_SCRIPT # This script configures Expo modules and generates the modules provider file. bash -l -c "./#{escaped_path}" XCODE_BUILD_SCRIPT end # Generates the support script that is executed by the build script phase. def self.generate_support_script(autolinking_manager, modules_provider_path) args = autolinking_manager.base_command_args.map { |arg| "\"#{arg}\"" }.join(' ') <<~SUPPORT_SCRIPT #!/usr/bin/env bash # @generated by expo-modules-autolinking set -eo pipefail function with_node() { # Start with a default NODE_BINARY=$(command -v node) export NODE_BINARY # Override the default with the global environment ENV_PATH="$PODS_ROOT/../.xcode.env" if [[ -f "$ENV_PATH" ]]; then source "$ENV_PATH" fi # Override the global with the local environment LOCAL_ENV_PATH="${ENV_PATH}.local" if [[ -f "$LOCAL_ENV_PATH" ]]; then source "$LOCAL_ENV_PATH" fi if [[ -n "$NODE_BINARY" && -x "$NODE_BINARY" ]]; then echo "Node found at: ${NODE_BINARY}" else cat >&2 << NODE_NOT_FOUND error: Could not find "node" executable while running an Xcode build script. You need to specify the path to your Node.js executable by defining an environment variable named NODE_BINARY in your project's .xcode.env or .xcode.env.local file. You can set this up quickly by running: echo "export NODE_BINARY=\\$(command -v node)" >> .xcode.env in the ios folder of your project. NODE_NOT_FOUND exit 1 fi # Execute argument, if present if [[ "$#" -gt 0 ]]; then "$NODE_BINARY" "$@" fi } with_node --no-warnings --eval "require(\'expo-modules-autolinking\')(process.argv.slice(1))" generate-package-list #{args} --target "#{modules_provider_path}" SUPPORT_SCRIPT end end # module ProjectIntegrator </s> remove private def node_command_args(command_name) </s> add public def base_command_args </s> remove args = [ 'node', '--no-warnings', '--eval', 'require(\'expo-modules-autolinking\')(process.argv.slice(1))', command_name, '--platform', 'ios' ] </s> add args = [] </s> add private def node_command_args(command_name) eval_command_args = [ 'node', '--no-warnings', '--eval', 'require(\'expo-modules-autolinking\')(process.argv.slice(1))', command_name, '--platform', 'ios' ] return eval_command_args.concat(base_command_args()) end </s> add A04F3C9AC66B709E16F4F5AB /* [Expo] Configure project */, </s> remove # Shorthand ref for the autolinking manager. autolinking_manager = target.target_definition.autolinking_manager </s> add # Shorthand ref for the autolinking manager. autolinking_manager = target.target_definition.autolinking_manager
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
packages/expo-modules-autolinking/scripts/ios/constants.rb
keep keep keep replace replace replace keep replace replace keep keep keep keep
<mask> # The user target name (without `Pods-` prefix which is a part of `target.name`) <mask> target_name = target.target_definition.name <mask> <mask> UI.message '- Generating the provider for ' << target_name.green << ' target' do <mask> # PBXNativeTarget of the user target <mask> native_target = project.native_targets.find { |native_target| native_target.name == target_name } <mask> <mask> # Shorthand ref for the autolinking manager. <mask> autolinking_manager = target.target_definition.autolinking_manager <mask> <mask> # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path <mask> modules_provider_path = File.join(target.support_files_dir, autolinking_manager.modules_provider_name) <mask> </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> remove # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path modules_provider_path = File.join(target.support_files_dir, autolinking_manager.modules_provider_name) </s> add UI.message '- Generating the provider for ' << target_name.green << ' target' do # Get the absolute path to the modules provider modules_provider_path = autolinking_manager.modules_provider_path(target) </s> add # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path public def modules_provider_path(target) File.join(target.support_files_dir, modules_provider_name) end </s> remove end # module ExpoAutolinkingExtension </s> add # Makes sure that the build script configuring the project is installed, # is up-to-date and is placed before the "Compile Sources" phase. def self.integrate_build_script(autolinking_manager, project, target, native_target) build_phases = native_target.build_phases modules_provider_path = autolinking_manager.modules_provider_path(target) # Look for our own build script phase xcode_build_script = native_target.shell_script_build_phases.find { |script| script.name == Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME } if xcode_build_script.nil? # Inform the user that we added a build script. puts "[Expo] ".blue << "Installing the build script for target " << native_target.name.green # Create a new build script in the target, it's added as the last phase xcode_build_script = native_target.new_shell_script_build_phase(Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME) end # Make sure it is before the "Compile Sources" build phase xcode_build_script_index = build_phases.find_index(xcode_build_script) compile_sources_index = build_phases.find_index { |phase| phase.is_a?(Xcodeproj::Project::PBXSourcesBuildPhase) } if xcode_build_script_index.nil? # This is almost impossible to get here as the script was just created with `new_shell_script_build_phase` # that puts the script at the end of the phases, but let's log it just in case. puts "[Expo] ".blue << "Unable to find the configuring build script in the Xcode project".red end if compile_sources_index.nil? # In this case the project will probably not compile but that's not our fault # and it doesn't block us from updating our build script. puts "[Expo] ".blue << "Unable to find the compilation build phase in the Xcode project".red end # Insert our script before the "Compile Sources" phase when necessary unless compile_sources_index.nil? || xcode_build_script_index < compile_sources_index build_phases.insert( compile_sources_index, build_phases.delete_at(xcode_build_script_index) ) end # Get path to the script that will be added to the target support files support_script_path = File.join(target.support_files_dir, Constants::CONFIGURE_PROJECT_SCRIPT_FILE_NAME) support_script_relative_path = Pathname.new(support_script_path).relative_path_from(project.project_dir) # Write to the shell script so it's always in-sync with the autolinking configuration IO.write( support_script_path, generate_support_script(autolinking_manager, modules_provider_path) ) # Make the support script executable FileUtils.chmod('+x', support_script_path) # Force the build phase script to run on each build (including incremental builds) xcode_build_script.always_out_of_date = '1' # Make sure the build script in Xcode is up to date, but probably it's not going to change # as it just runs the script generated in the target support files xcode_build_script.shell_script = generate_xcode_build_script(support_script_relative_path) end # Generates the shell script of the build script phase. # Try not to modify this since it involves changes in the pbxproj so # it's better to modify the support script instead, if possible. def self.generate_xcode_build_script(script_relative_path) escaped_path = script_relative_path.to_s.gsub(/[^a-zA-Z0-9,\._\+@%\/\-]/) { |char| "\\#{char}" } <<~XCODE_BUILD_SCRIPT # This script configures Expo modules and generates the modules provider file. bash -l -c "./#{escaped_path}" XCODE_BUILD_SCRIPT end # Generates the support script that is executed by the build script phase. def self.generate_support_script(autolinking_manager, modules_provider_path) args = autolinking_manager.base_command_args.map { |arg| "\"#{arg}\"" }.join(' ') <<~SUPPORT_SCRIPT #!/usr/bin/env bash # @generated by expo-modules-autolinking set -eo pipefail function with_node() { # Start with a default NODE_BINARY=$(command -v node) export NODE_BINARY # Override the default with the global environment ENV_PATH="$PODS_ROOT/../.xcode.env" if [[ -f "$ENV_PATH" ]]; then source "$ENV_PATH" fi # Override the global with the local environment LOCAL_ENV_PATH="${ENV_PATH}.local" if [[ -f "$LOCAL_ENV_PATH" ]]; then source "$LOCAL_ENV_PATH" fi if [[ -n "$NODE_BINARY" && -x "$NODE_BINARY" ]]; then echo "Node found at: ${NODE_BINARY}" else cat >&2 << NODE_NOT_FOUND error: Could not find "node" executable while running an Xcode build script. You need to specify the path to your Node.js executable by defining an environment variable named NODE_BINARY in your project's .xcode.env or .xcode.env.local file. You can set this up quickly by running: echo "export NODE_BINARY=\\$(command -v node)" >> .xcode.env in the ios folder of your project. NODE_NOT_FOUND exit 1 fi # Execute argument, if present if [[ "$#" -gt 0 ]]; then "$NODE_BINARY" "$@" fi } with_node --no-warnings --eval "require(\'expo-modules-autolinking\')(process.argv.slice(1))" generate-package-list #{args} --target "#{modules_provider_path}" SUPPORT_SCRIPT end end # module ProjectIntegrator </s> add integrate_build_script(autolinking_manager, project, target, native_target) </s> add A04F3C9AC66B709E16F4F5AB /* [Expo] Configure project */,
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
packages/expo-modules-autolinking/scripts/ios/project_integrator.rb
keep keep keep keep replace replace keep keep keep keep keep
<mask> <mask> # Shorthand ref for the autolinking manager. <mask> autolinking_manager = target.target_definition.autolinking_manager <mask> <mask> # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path <mask> modules_provider_path = File.join(target.support_files_dir, autolinking_manager.modules_provider_name) <mask> <mask> # Run `expo-modules-autolinking` command to generate the file <mask> autolinking_manager.generate_package_list(target_name, modules_provider_path) <mask> <mask> # PBXGroup for generated files per target </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> remove # Shorthand ref for the autolinking manager. autolinking_manager = target.target_definition.autolinking_manager </s> add # Shorthand ref for the autolinking manager. autolinking_manager = target.target_definition.autolinking_manager </s> remove UI.message '- Generating the provider for ' << target_name.green << ' target' do # PBXNativeTarget of the user target native_target = project.native_targets.find { |native_target| native_target.name == target_name } </s> add # PBXNativeTarget of the user target native_target = project.native_targets.find { |native_target| native_target.name == target_name } </s> add # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path public def modules_provider_path(target) File.join(target.support_files_dir, modules_provider_name) end </s> remove end # module ExpoAutolinkingExtension </s> add # Makes sure that the build script configuring the project is installed, # is up-to-date and is placed before the "Compile Sources" phase. def self.integrate_build_script(autolinking_manager, project, target, native_target) build_phases = native_target.build_phases modules_provider_path = autolinking_manager.modules_provider_path(target) # Look for our own build script phase xcode_build_script = native_target.shell_script_build_phases.find { |script| script.name == Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME } if xcode_build_script.nil? # Inform the user that we added a build script. puts "[Expo] ".blue << "Installing the build script for target " << native_target.name.green # Create a new build script in the target, it's added as the last phase xcode_build_script = native_target.new_shell_script_build_phase(Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME) end # Make sure it is before the "Compile Sources" build phase xcode_build_script_index = build_phases.find_index(xcode_build_script) compile_sources_index = build_phases.find_index { |phase| phase.is_a?(Xcodeproj::Project::PBXSourcesBuildPhase) } if xcode_build_script_index.nil? # This is almost impossible to get here as the script was just created with `new_shell_script_build_phase` # that puts the script at the end of the phases, but let's log it just in case. puts "[Expo] ".blue << "Unable to find the configuring build script in the Xcode project".red end if compile_sources_index.nil? # In this case the project will probably not compile but that's not our fault # and it doesn't block us from updating our build script. puts "[Expo] ".blue << "Unable to find the compilation build phase in the Xcode project".red end # Insert our script before the "Compile Sources" phase when necessary unless compile_sources_index.nil? || xcode_build_script_index < compile_sources_index build_phases.insert( compile_sources_index, build_phases.delete_at(xcode_build_script_index) ) end # Get path to the script that will be added to the target support files support_script_path = File.join(target.support_files_dir, Constants::CONFIGURE_PROJECT_SCRIPT_FILE_NAME) support_script_relative_path = Pathname.new(support_script_path).relative_path_from(project.project_dir) # Write to the shell script so it's always in-sync with the autolinking configuration IO.write( support_script_path, generate_support_script(autolinking_manager, modules_provider_path) ) # Make the support script executable FileUtils.chmod('+x', support_script_path) # Force the build phase script to run on each build (including incremental builds) xcode_build_script.always_out_of_date = '1' # Make sure the build script in Xcode is up to date, but probably it's not going to change # as it just runs the script generated in the target support files xcode_build_script.shell_script = generate_xcode_build_script(support_script_relative_path) end # Generates the shell script of the build script phase. # Try not to modify this since it involves changes in the pbxproj so # it's better to modify the support script instead, if possible. def self.generate_xcode_build_script(script_relative_path) escaped_path = script_relative_path.to_s.gsub(/[^a-zA-Z0-9,\._\+@%\/\-]/) { |char| "\\#{char}" } <<~XCODE_BUILD_SCRIPT # This script configures Expo modules and generates the modules provider file. bash -l -c "./#{escaped_path}" XCODE_BUILD_SCRIPT end # Generates the support script that is executed by the build script phase. def self.generate_support_script(autolinking_manager, modules_provider_path) args = autolinking_manager.base_command_args.map { |arg| "\"#{arg}\"" }.join(' ') <<~SUPPORT_SCRIPT #!/usr/bin/env bash # @generated by expo-modules-autolinking set -eo pipefail function with_node() { # Start with a default NODE_BINARY=$(command -v node) export NODE_BINARY # Override the default with the global environment ENV_PATH="$PODS_ROOT/../.xcode.env" if [[ -f "$ENV_PATH" ]]; then source "$ENV_PATH" fi # Override the global with the local environment LOCAL_ENV_PATH="${ENV_PATH}.local" if [[ -f "$LOCAL_ENV_PATH" ]]; then source "$LOCAL_ENV_PATH" fi if [[ -n "$NODE_BINARY" && -x "$NODE_BINARY" ]]; then echo "Node found at: ${NODE_BINARY}" else cat >&2 << NODE_NOT_FOUND error: Could not find "node" executable while running an Xcode build script. You need to specify the path to your Node.js executable by defining an environment variable named NODE_BINARY in your project's .xcode.env or .xcode.env.local file. You can set this up quickly by running: echo "export NODE_BINARY=\\$(command -v node)" >> .xcode.env in the ios folder of your project. NODE_NOT_FOUND exit 1 fi # Execute argument, if present if [[ "$#" -gt 0 ]]; then "$NODE_BINARY" "$@" fi } with_node --no-warnings --eval "require(\'expo-modules-autolinking\')(process.argv.slice(1))" generate-package-list #{args} --target "#{modules_provider_path}" SUPPORT_SCRIPT end end # module ProjectIntegrator </s> add integrate_build_script(autolinking_manager, project, target, native_target) </s> remove private def node_command_args(command_name) </s> add public def base_command_args
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
packages/expo-modules-autolinking/scripts/ios/project_integrator.rb
keep keep keep add keep keep keep keep keep
<mask> project.mark_dirty! <mask> end <mask> end <mask> end <mask> end <mask> <mask> # Remove the generated group if it has nothing left inside <mask> if targets_with_modules_provider.empty? <mask> recursively_remove_group(generated_group) </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> remove end # module ExpoAutolinkingExtension </s> add # Makes sure that the build script configuring the project is installed, # is up-to-date and is placed before the "Compile Sources" phase. def self.integrate_build_script(autolinking_manager, project, target, native_target) build_phases = native_target.build_phases modules_provider_path = autolinking_manager.modules_provider_path(target) # Look for our own build script phase xcode_build_script = native_target.shell_script_build_phases.find { |script| script.name == Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME } if xcode_build_script.nil? # Inform the user that we added a build script. puts "[Expo] ".blue << "Installing the build script for target " << native_target.name.green # Create a new build script in the target, it's added as the last phase xcode_build_script = native_target.new_shell_script_build_phase(Constants::CONFIGURE_PROJECT_BUILD_SCRIPT_NAME) end # Make sure it is before the "Compile Sources" build phase xcode_build_script_index = build_phases.find_index(xcode_build_script) compile_sources_index = build_phases.find_index { |phase| phase.is_a?(Xcodeproj::Project::PBXSourcesBuildPhase) } if xcode_build_script_index.nil? # This is almost impossible to get here as the script was just created with `new_shell_script_build_phase` # that puts the script at the end of the phases, but let's log it just in case. puts "[Expo] ".blue << "Unable to find the configuring build script in the Xcode project".red end if compile_sources_index.nil? # In this case the project will probably not compile but that's not our fault # and it doesn't block us from updating our build script. puts "[Expo] ".blue << "Unable to find the compilation build phase in the Xcode project".red end # Insert our script before the "Compile Sources" phase when necessary unless compile_sources_index.nil? || xcode_build_script_index < compile_sources_index build_phases.insert( compile_sources_index, build_phases.delete_at(xcode_build_script_index) ) end # Get path to the script that will be added to the target support files support_script_path = File.join(target.support_files_dir, Constants::CONFIGURE_PROJECT_SCRIPT_FILE_NAME) support_script_relative_path = Pathname.new(support_script_path).relative_path_from(project.project_dir) # Write to the shell script so it's always in-sync with the autolinking configuration IO.write( support_script_path, generate_support_script(autolinking_manager, modules_provider_path) ) # Make the support script executable FileUtils.chmod('+x', support_script_path) # Force the build phase script to run on each build (including incremental builds) xcode_build_script.always_out_of_date = '1' # Make sure the build script in Xcode is up to date, but probably it's not going to change # as it just runs the script generated in the target support files xcode_build_script.shell_script = generate_xcode_build_script(support_script_relative_path) end # Generates the shell script of the build script phase. # Try not to modify this since it involves changes in the pbxproj so # it's better to modify the support script instead, if possible. def self.generate_xcode_build_script(script_relative_path) escaped_path = script_relative_path.to_s.gsub(/[^a-zA-Z0-9,\._\+@%\/\-]/) { |char| "\\#{char}" } <<~XCODE_BUILD_SCRIPT # This script configures Expo modules and generates the modules provider file. bash -l -c "./#{escaped_path}" XCODE_BUILD_SCRIPT end # Generates the support script that is executed by the build script phase. def self.generate_support_script(autolinking_manager, modules_provider_path) args = autolinking_manager.base_command_args.map { |arg| "\"#{arg}\"" }.join(' ') <<~SUPPORT_SCRIPT #!/usr/bin/env bash # @generated by expo-modules-autolinking set -eo pipefail function with_node() { # Start with a default NODE_BINARY=$(command -v node) export NODE_BINARY # Override the default with the global environment ENV_PATH="$PODS_ROOT/../.xcode.env" if [[ -f "$ENV_PATH" ]]; then source "$ENV_PATH" fi # Override the global with the local environment LOCAL_ENV_PATH="${ENV_PATH}.local" if [[ -f "$LOCAL_ENV_PATH" ]]; then source "$LOCAL_ENV_PATH" fi if [[ -n "$NODE_BINARY" && -x "$NODE_BINARY" ]]; then echo "Node found at: ${NODE_BINARY}" else cat >&2 << NODE_NOT_FOUND error: Could not find "node" executable while running an Xcode build script. You need to specify the path to your Node.js executable by defining an environment variable named NODE_BINARY in your project's .xcode.env or .xcode.env.local file. You can set this up quickly by running: echo "export NODE_BINARY=\\$(command -v node)" >> .xcode.env in the ios folder of your project. NODE_NOT_FOUND exit 1 fi # Execute argument, if present if [[ "$#" -gt 0 ]]; then "$NODE_BINARY" "$@" fi } with_node --no-warnings --eval "require(\'expo-modules-autolinking\')(process.argv.slice(1))" generate-package-list #{args} --target "#{modules_provider_path}" SUPPORT_SCRIPT end end # module ProjectIntegrator </s> remove args = [ 'node', '--no-warnings', '--eval', 'require(\'expo-modules-autolinking\')(process.argv.slice(1))', command_name, '--platform', 'ios' ] </s> add args = [] </s> remove # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path modules_provider_path = File.join(target.support_files_dir, autolinking_manager.modules_provider_name) </s> add UI.message '- Generating the provider for ' << target_name.green << ' target' do # Get the absolute path to the modules provider modules_provider_path = autolinking_manager.modules_provider_path(target) </s> add # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path public def modules_provider_path(target) File.join(target.support_files_dir, modules_provider_name) end </s> remove # Shorthand ref for the autolinking manager. autolinking_manager = target.target_definition.autolinking_manager </s> add # Shorthand ref for the autolinking manager. autolinking_manager = target.target_definition.autolinking_manager </s> remove UI.message '- Generating the provider for ' << target_name.green << ' target' do # PBXNativeTarget of the user target native_target = project.native_targets.find { |native_target| native_target.name == target_name } </s> add # PBXNativeTarget of the user target native_target = project.native_targets.find { |native_target| native_target.name == target_name }
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
packages/expo-modules-autolinking/scripts/ios/project_integrator.rb
keep keep keep keep replace keep
<mask> end <mask> end <mask> end <mask> <mask> end # module ExpoAutolinkingExtension <mask> end # module Expo </s> [autolinking][ios] Generate the modules provider in the build phase script (#21108) </s> add CONFIGURE_PROJECT_BUILD_SCRIPT_NAME = '[Expo] Configure project' CONFIGURE_PROJECT_SCRIPT_FILE_NAME = 'expo-configure-project.sh' </s> add integrate_build_script(autolinking_manager, project, target, native_target) </s> add # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path public def modules_provider_path(target) File.join(target.support_files_dir, modules_provider_name) end </s> remove # Absolute path to `Pods/Target Support Files/<pods target name>/<modules provider file>` within the project path modules_provider_path = File.join(target.support_files_dir, autolinking_manager.modules_provider_name) </s> add UI.message '- Generating the provider for ' << target_name.green << ' target' do # Get the absolute path to the modules provider modules_provider_path = autolinking_manager.modules_provider_path(target) </s> remove # Shorthand ref for the autolinking manager. autolinking_manager = target.target_definition.autolinking_manager </s> add # Shorthand ref for the autolinking manager. autolinking_manager = target.target_definition.autolinking_manager </s> remove UI.message '- Generating the provider for ' << target_name.green << ' target' do # PBXNativeTarget of the user target native_target = project.native_targets.find { |native_target| native_target.name == target_name } </s> add # PBXNativeTarget of the user target native_target = project.native_targets.find { |native_target| native_target.name == target_name }
https://github.com/expo/expo/commit/a2cc5e74550c399188be109d7761995819db7375
packages/expo-modules-autolinking/scripts/ios/project_integrator.rb
keep keep keep add keep keep keep keep keep
<mask> throw TooManyArgumentsError(count: array.count, limit: 10) <mask> } <mask> } <mask> <mask> /** <mask> Picks values under given keys from the dictionary, casted to a specific type. Can throw errors when <mask> - The dictionary is missing some of the given keys (`MissingKeysError`) <mask> - Some of the values cannot be casted to specified type (`CastingValuesError`) <mask> */ </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove fatalError("Given view must subclass UIView") </s> add throw IncompatibleViewError(propName: name, viewType: ViewType.self) </s> remove guard let value = value as? PropType else { fatalError("Given value `\(String(describing: value))` cannot be casted to `\(String(describing: PropType.self))`") </s> add guard let value = try propType.cast(value) as? PropType else { throw Conversions.CastingError<PropType>(value: value) </s> add /** An error that is thrown when the view passed to prop's setter doesn't match the type in setter's definition. */ internal struct IncompatibleViewError: CodedError { let propName: String let viewType: UIView.Type var description: String { "Tried to set prop `\(propName)` on the view that isn't `\(viewType)`" } } </s> remove public func set(value: Any?, onView view: UIView) { // Method's signature must be type-erased for `AnyViewProp` protocol, // so we have to get UIView and cast it to the generic type. // TODO: (@tsapeta) Throw an error instead of crashing the app. </s> add /** Function that sets the underlying prop value for given view. */ public func set(value: Any, onView view: UIView) throws { // Method's signature must be type-erased to conform to `AnyViewProp` protocol. // Given view must be castable to the generic `ViewType` type. </s> remove let setter: SetterType </s> add /** An argument type wrapper for the prop's value type. */ private let propType: AnyArgumentType /** Closure to call to set the actual property on the given view. */ private let setter: SetterType </s> remove Name of the prop. </s> add Name of the view prop that JavaScript refers to.
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Conversions.swift
keep keep keep keep replace replace keep
<mask> <mask> /** <mask> Creates a view prop that defines its name and setter. <mask> */ <mask> public func prop<ViewType: UIView, PropType>(_ name: String, _ setter: @escaping (ViewType, PropType) -> Void) -> AnyDefinition { <mask> return ConcreteViewProp(name, setter) <mask> } </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove public final class ConcreteViewProp<ViewType: UIView, PropType>: AnyViewProp { </s> add public final class ConcreteViewProp<ViewType: UIView, PropType: AnyArgument>: AnyViewProp { </s> remove let setter: SetterType </s> add /** An argument type wrapper for the prop's value type. */ private let propType: AnyArgumentType /** Closure to call to set the actual property on the given view. */ private let setter: SetterType </s> remove init(_ name: String, _ setter: @escaping SetterType) { </s> add internal init(name: String, propType: AnyArgumentType, setter: @escaping SetterType) { </s> add /** Name of the view prop that JavaScript refers to. */ </s> remove Name of the prop. </s> add Name of the view prop that JavaScript refers to. </s> add static func fromNSObject(_ object: Any) -> Any { switch object { case let object as NSArray: return object.map { Conversions.fromNSObject($0) } case let object as NSDictionary: let keyValuePairs: [(String, Any)] = object.map { ($0 as! String, Conversions.fromNSObject($1)) } return Dictionary(uniqueKeysWithValues: keyValuePairs) default: return object } }
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Modules/ModuleDefinitionComponents.swift
keep keep keep keep replace keep keep keep keep keep
<mask> Type-erased protocol for view props classes. <mask> */ <mask> public protocol AnyViewProp: AnyDefinition { <mask> /** <mask> Name of the prop. <mask> */ <mask> var name: String { get } <mask> <mask> /** <mask> Function that sets the underlying prop value for given view. </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove func set(value: Any?, onView: UIView) </s> add func set(value: Any, onView: UIView) throws </s> remove public func set(value: Any?, onView view: UIView) { // Method's signature must be type-erased for `AnyViewProp` protocol, // so we have to get UIView and cast it to the generic type. // TODO: (@tsapeta) Throw an error instead of crashing the app. </s> add /** Function that sets the underlying prop value for given view. */ public func set(value: Any, onView view: UIView) throws { // Method's signature must be type-erased to conform to `AnyViewProp` protocol. // Given view must be castable to the generic `ViewType` type. </s> add /** Name of the view prop that JavaScript refers to. */ </s> remove public final class ConcreteViewProp<ViewType: UIView, PropType>: AnyViewProp { </s> add public final class ConcreteViewProp<ViewType: UIView, PropType: AnyArgument>: AnyViewProp { </s> remove let setter: SetterType </s> add /** An argument type wrapper for the prop's value type. */ private let propType: AnyArgumentType /** Closure to call to set the actual property on the given view. */ private let setter: SetterType </s> add /** An error that is thrown when the view passed to prop's setter doesn't match the type in setter's definition. */ internal struct IncompatibleViewError: CodedError { let propName: String let viewType: UIView.Type var description: String { "Tried to set prop `\(propName)` on the view that isn't `\(viewType)`" } }
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Views/AnyViewProp.swift
keep keep keep keep replace keep
<mask> <mask> /** <mask> Function that sets the underlying prop value for given view. <mask> */ <mask> func set(value: Any?, onView: UIView) <mask> } </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove Name of the prop. </s> add Name of the view prop that JavaScript refers to. </s> remove public func set(value: Any?, onView view: UIView) { // Method's signature must be type-erased for `AnyViewProp` protocol, // so we have to get UIView and cast it to the generic type. // TODO: (@tsapeta) Throw an error instead of crashing the app. </s> add /** Function that sets the underlying prop value for given view. */ public func set(value: Any, onView view: UIView) throws { // Method's signature must be type-erased to conform to `AnyViewProp` protocol. // Given view must be castable to the generic `ViewType` type. </s> remove prop.set(value: value, onView: view) </s> add let value = Conversions.fromNSObject(value) // TODO: @tsapeta: Figure out better way to rethrow errors from here. // Adding `throws` keyword to the function results in different // method signature in Objective-C. Maybe just call `RCTLogError`? try? prop.set(value: value, onView: view) </s> remove init(_ name: String, _ setter: @escaping SetterType) { </s> add internal init(name: String, propType: AnyArgumentType, setter: @escaping SetterType) { </s> remove let setter: SetterType </s> add /** An argument type wrapper for the prop's value type. */ private let propType: AnyArgumentType /** Closure to call to set the actual property on the given view. */ private let setter: SetterType </s> remove public func set_proxiedProperties(_ json: Any?, forView view: UIView, withDefaultView defaultView: UIView) { guard let json = json as? [String: Any?], </s> add public func set_proxiedProperties(_ json: Any, forView view: UIView, withDefaultView defaultView: UIView) { guard let json = json as? [String: Any],
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Views/AnyViewProp.swift
keep keep keep keep replace keep keep keep keep keep
<mask> <mask> /** <mask> Specialized class for the view prop. Specifies the prop name and its setter. <mask> */ <mask> public final class ConcreteViewProp<ViewType: UIView, PropType>: AnyViewProp { <mask> public typealias SetterType = (ViewType, PropType) -> Void <mask> <mask> public let name: String <mask> <mask> let setter: SetterType </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove public func prop<ViewType: UIView, PropType>(_ name: String, _ setter: @escaping (ViewType, PropType) -> Void) -> AnyDefinition { return ConcreteViewProp(name, setter) </s> add public func prop<ViewType: UIView, PropType: AnyArgument>( _ name: String, _ setter: @escaping (ViewType, PropType) -> Void ) -> AnyDefinition { return ConcreteViewProp( name: name, propType: ArgumentType(PropType.self), setter: setter ) </s> remove let setter: SetterType </s> add /** An argument type wrapper for the prop's value type. */ private let propType: AnyArgumentType /** Closure to call to set the actual property on the given view. */ private let setter: SetterType </s> add /** Name of the view prop that JavaScript refers to. */ </s> remove Name of the prop. </s> add Name of the view prop that JavaScript refers to. </s> remove init(_ name: String, _ setter: @escaping SetterType) { </s> add internal init(name: String, propType: AnyArgumentType, setter: @escaping SetterType) { </s> remove public func set_proxiedProperties(_ json: Any?, forView view: UIView, withDefaultView defaultView: UIView) { guard let json = json as? [String: Any?], </s> add public func set_proxiedProperties(_ json: Any, forView view: UIView, withDefaultView defaultView: UIView) { guard let json = json as? [String: Any],
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Views/ConcreteViewProp.swift
keep add keep keep keep keep
<mask> public typealias SetterType = (ViewType, PropType) -> Void <mask> <mask> public let name: String <mask> <mask> /** <mask> An argument type wrapper for the prop's value type. </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove let setter: SetterType </s> add /** An argument type wrapper for the prop's value type. */ private let propType: AnyArgumentType /** Closure to call to set the actual property on the given view. */ private let setter: SetterType </s> remove public final class ConcreteViewProp<ViewType: UIView, PropType>: AnyViewProp { </s> add public final class ConcreteViewProp<ViewType: UIView, PropType: AnyArgument>: AnyViewProp { </s> remove public func prop<ViewType: UIView, PropType>(_ name: String, _ setter: @escaping (ViewType, PropType) -> Void) -> AnyDefinition { return ConcreteViewProp(name, setter) </s> add public func prop<ViewType: UIView, PropType: AnyArgument>( _ name: String, _ setter: @escaping (ViewType, PropType) -> Void ) -> AnyDefinition { return ConcreteViewProp( name: name, propType: ArgumentType(PropType.self), setter: setter ) </s> add /** An error that is thrown when the view passed to prop's setter doesn't match the type in setter's definition. */ internal struct IncompatibleViewError: CodedError { let propName: String let viewType: UIView.Type var description: String { "Tried to set prop `\(propName)` on the view that isn't `\(viewType)`" } } </s> remove public func set(value: Any?, onView view: UIView) { // Method's signature must be type-erased for `AnyViewProp` protocol, // so we have to get UIView and cast it to the generic type. // TODO: (@tsapeta) Throw an error instead of crashing the app. </s> add /** Function that sets the underlying prop value for given view. */ public func set(value: Any, onView view: UIView) throws { // Method's signature must be type-erased to conform to `AnyViewProp` protocol. // Given view must be castable to the generic `ViewType` type. </s> remove init(_ name: String, _ setter: @escaping SetterType) { </s> add internal init(name: String, propType: AnyArgumentType, setter: @escaping SetterType) {
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Views/ConcreteViewProp.swift
keep keep keep replace keep replace keep keep keep keep
<mask> <mask> public let name: String <mask> <mask> let setter: SetterType <mask> <mask> init(_ name: String, _ setter: @escaping SetterType) { <mask> self.name = name <mask> self.setter = setter <mask> } <mask> </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> add self.propType = propType </s> remove public func prop<ViewType: UIView, PropType>(_ name: String, _ setter: @escaping (ViewType, PropType) -> Void) -> AnyDefinition { return ConcreteViewProp(name, setter) </s> add public func prop<ViewType: UIView, PropType: AnyArgument>( _ name: String, _ setter: @escaping (ViewType, PropType) -> Void ) -> AnyDefinition { return ConcreteViewProp( name: name, propType: ArgumentType(PropType.self), setter: setter ) </s> remove public final class ConcreteViewProp<ViewType: UIView, PropType>: AnyViewProp { </s> add public final class ConcreteViewProp<ViewType: UIView, PropType: AnyArgument>: AnyViewProp { </s> remove public func set(value: Any?, onView view: UIView) { // Method's signature must be type-erased for `AnyViewProp` protocol, // so we have to get UIView and cast it to the generic type. // TODO: (@tsapeta) Throw an error instead of crashing the app. </s> add /** Function that sets the underlying prop value for given view. */ public func set(value: Any, onView view: UIView) throws { // Method's signature must be type-erased to conform to `AnyViewProp` protocol. // Given view must be castable to the generic `ViewType` type. </s> add /** Name of the view prop that JavaScript refers to. */
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Views/ConcreteViewProp.swift
keep keep keep add keep keep keep keep
<mask> private let setter: SetterType <mask> <mask> internal init(name: String, propType: AnyArgumentType, setter: @escaping SetterType) { <mask> self.name = name <mask> self.setter = setter <mask> } <mask> <mask> /** </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove init(_ name: String, _ setter: @escaping SetterType) { </s> add internal init(name: String, propType: AnyArgumentType, setter: @escaping SetterType) { </s> remove let setter: SetterType </s> add /** An argument type wrapper for the prop's value type. */ private let propType: AnyArgumentType /** Closure to call to set the actual property on the given view. */ private let setter: SetterType </s> remove public func prop<ViewType: UIView, PropType>(_ name: String, _ setter: @escaping (ViewType, PropType) -> Void) -> AnyDefinition { return ConcreteViewProp(name, setter) </s> add public func prop<ViewType: UIView, PropType: AnyArgument>( _ name: String, _ setter: @escaping (ViewType, PropType) -> Void ) -> AnyDefinition { return ConcreteViewProp( name: name, propType: ArgumentType(PropType.self), setter: setter ) </s> remove public final class ConcreteViewProp<ViewType: UIView, PropType>: AnyViewProp { </s> add public final class ConcreteViewProp<ViewType: UIView, PropType: AnyArgument>: AnyViewProp { </s> remove public func set(value: Any?, onView view: UIView) { // Method's signature must be type-erased for `AnyViewProp` protocol, // so we have to get UIView and cast it to the generic type. // TODO: (@tsapeta) Throw an error instead of crashing the app. </s> add /** Function that sets the underlying prop value for given view. */ public func set(value: Any, onView view: UIView) throws { // Method's signature must be type-erased to conform to `AnyViewProp` protocol. // Given view must be castable to the generic `ViewType` type. </s> add /** An error that is thrown when the view passed to prop's setter doesn't match the type in setter's definition. */ internal struct IncompatibleViewError: CodedError { let propName: String let viewType: UIView.Type var description: String { "Tried to set prop `\(propName)` on the view that isn't `\(viewType)`" } }
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Views/ConcreteViewProp.swift
keep keep keep keep replace replace replace replace keep replace keep keep keep
<mask> self.name = name <mask> self.setter = setter <mask> } <mask> <mask> public func set(value: Any?, onView view: UIView) { <mask> // Method's signature must be type-erased for `AnyViewProp` protocol, <mask> // so we have to get UIView and cast it to the generic type. <mask> // TODO: (@tsapeta) Throw an error instead of crashing the app. <mask> guard let view = view as? ViewType else { <mask> fatalError("Given view must subclass UIView") <mask> } <mask> guard let value = value as? PropType else { <mask> fatalError("Given value `\(String(describing: value))` cannot be casted to `\(String(describing: PropType.self))`") </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove guard let value = value as? PropType else { fatalError("Given value `\(String(describing: value))` cannot be casted to `\(String(describing: PropType.self))`") </s> add guard let value = try propType.cast(value) as? PropType else { throw Conversions.CastingError<PropType>(value: value) </s> remove public func set_proxiedProperties(_ json: Any?, forView view: UIView, withDefaultView defaultView: UIView) { guard let json = json as? [String: Any?], </s> add public func set_proxiedProperties(_ json: Any, forView view: UIView, withDefaultView defaultView: UIView) { guard let json = json as? [String: Any], </s> remove init(_ name: String, _ setter: @escaping SetterType) { </s> add internal init(name: String, propType: AnyArgumentType, setter: @escaping SetterType) { </s> remove prop.set(value: value, onView: view) </s> add let value = Conversions.fromNSObject(value) // TODO: @tsapeta: Figure out better way to rethrow errors from here. // Adding `throws` keyword to the function results in different // method signature in Objective-C. Maybe just call `RCTLogError`? try? prop.set(value: value, onView: view) </s> remove let setter: SetterType </s> add /** An argument type wrapper for the prop's value type. */ private let propType: AnyArgumentType /** Closure to call to set the actual property on the given view. */ private let setter: SetterType
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Views/ConcreteViewProp.swift
keep keep keep keep replace replace keep keep keep keep
<mask> // TODO: (@tsapeta) Throw an error instead of crashing the app. <mask> guard let view = view as? ViewType else { <mask> fatalError("Given view must subclass UIView") <mask> } <mask> guard let value = value as? PropType else { <mask> fatalError("Given value `\(String(describing: value))` cannot be casted to `\(String(describing: PropType.self))`") <mask> } <mask> setter(view, value) <mask> } <mask> } </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove fatalError("Given view must subclass UIView") </s> add throw IncompatibleViewError(propName: name, viewType: ViewType.self) </s> remove public func set(value: Any?, onView view: UIView) { // Method's signature must be type-erased for `AnyViewProp` protocol, // so we have to get UIView and cast it to the generic type. // TODO: (@tsapeta) Throw an error instead of crashing the app. </s> add /** Function that sets the underlying prop value for given view. */ public func set(value: Any, onView view: UIView) throws { // Method's signature must be type-erased to conform to `AnyViewProp` protocol. // Given view must be castable to the generic `ViewType` type. </s> remove public func set_proxiedProperties(_ json: Any?, forView view: UIView, withDefaultView defaultView: UIView) { guard let json = json as? [String: Any?], </s> add public func set_proxiedProperties(_ json: Any, forView view: UIView, withDefaultView defaultView: UIView) { guard let json = json as? [String: Any], </s> remove prop.set(value: value, onView: view) </s> add let value = Conversions.fromNSObject(value) // TODO: @tsapeta: Figure out better way to rethrow errors from here. // Adding `throws` keyword to the function results in different // method signature in Objective-C. Maybe just call `RCTLogError`? try? prop.set(value: value, onView: view) </s> add /** An error that is thrown when the view passed to prop's setter doesn't match the type in setter's definition. */ internal struct IncompatibleViewError: CodedError { let propName: String let viewType: UIView.Type var description: String { "Tried to set prop `\(propName)` on the view that isn't `\(viewType)`" } } </s> add static func fromNSObject(_ object: Any) -> Any { switch object { case let object as NSArray: return object.map { Conversions.fromNSObject($0) } case let object as NSDictionary: let keyValuePairs: [(String, Any)] = object.map { ($0 as! String, Conversions.fromNSObject($1)) } return Dictionary(uniqueKeysWithValues: keyValuePairs) default: return object } }
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Views/ConcreteViewProp.swift
keep keep keep add
<mask> } <mask> setter(view, value) <mask> } <mask> } </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove guard let value = value as? PropType else { fatalError("Given value `\(String(describing: value))` cannot be casted to `\(String(describing: PropType.self))`") </s> add guard let value = try propType.cast(value) as? PropType else { throw Conversions.CastingError<PropType>(value: value) </s> remove fatalError("Given view must subclass UIView") </s> add throw IncompatibleViewError(propName: name, viewType: ViewType.self) </s> remove prop.set(value: value, onView: view) </s> add let value = Conversions.fromNSObject(value) // TODO: @tsapeta: Figure out better way to rethrow errors from here. // Adding `throws` keyword to the function results in different // method signature in Objective-C. Maybe just call `RCTLogError`? try? prop.set(value: value, onView: view) </s> add static func fromNSObject(_ object: Any) -> Any { switch object { case let object as NSArray: return object.map { Conversions.fromNSObject($0) } case let object as NSDictionary: let keyValuePairs: [(String, Any)] = object.map { ($0 as! String, Conversions.fromNSObject($1)) } return Dictionary(uniqueKeysWithValues: keyValuePairs) default: return object } } </s> add self.propType = propType </s> remove func set(value: Any?, onView: UIView) </s> add func set(value: Any, onView: UIView) throws
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Views/ConcreteViewProp.swift
keep keep keep keep replace replace keep keep keep keep keep
<mask> /** <mask> The setter for `proxiedProperties` prop. In Objective-C style, this function is generated by `RCT_CUSTOM_VIEW_PROPERTY` macro. <mask> */ <mask> @objc <mask> public func set_proxiedProperties(_ json: Any?, forView view: UIView, withDefaultView defaultView: UIView) { <mask> guard let json = json as? [String: Any?], <mask> let props = wrappedModuleHolder.definition.viewManager?.propsDict() else { <mask> return <mask> } <mask> for (key, value) in json { <mask> if let prop = props[key] { </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove prop.set(value: value, onView: view) </s> add let value = Conversions.fromNSObject(value) // TODO: @tsapeta: Figure out better way to rethrow errors from here. // Adding `throws` keyword to the function results in different // method signature in Objective-C. Maybe just call `RCTLogError`? try? prop.set(value: value, onView: view) </s> remove public func set(value: Any?, onView view: UIView) { // Method's signature must be type-erased for `AnyViewProp` protocol, // so we have to get UIView and cast it to the generic type. // TODO: (@tsapeta) Throw an error instead of crashing the app. </s> add /** Function that sets the underlying prop value for given view. */ public func set(value: Any, onView view: UIView) throws { // Method's signature must be type-erased to conform to `AnyViewProp` protocol. // Given view must be castable to the generic `ViewType` type. </s> remove guard let value = value as? PropType else { fatalError("Given value `\(String(describing: value))` cannot be casted to `\(String(describing: PropType.self))`") </s> add guard let value = try propType.cast(value) as? PropType else { throw Conversions.CastingError<PropType>(value: value) </s> remove init(_ name: String, _ setter: @escaping SetterType) { </s> add internal init(name: String, propType: AnyArgumentType, setter: @escaping SetterType) { </s> remove public final class ConcreteViewProp<ViewType: UIView, PropType>: AnyViewProp { </s> add public final class ConcreteViewProp<ViewType: UIView, PropType: AnyArgument>: AnyViewProp { </s> remove fatalError("Given view must subclass UIView") </s> add throw IncompatibleViewError(propName: name, viewType: ViewType.self)
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Views/ViewModuleWrapper.swift
keep keep keep keep replace keep keep keep keep keep
<mask> return <mask> } <mask> for (key, value) in json { <mask> if let prop = props[key] { <mask> prop.set(value: value, onView: view) <mask> } <mask> } <mask> } <mask> <mask> /** </s> [sweet][ios] Use argument conversions in view props setters (#15132) </s> remove public func set_proxiedProperties(_ json: Any?, forView view: UIView, withDefaultView defaultView: UIView) { guard let json = json as? [String: Any?], </s> add public func set_proxiedProperties(_ json: Any, forView view: UIView, withDefaultView defaultView: UIView) { guard let json = json as? [String: Any], </s> add /** An error that is thrown when the view passed to prop's setter doesn't match the type in setter's definition. */ internal struct IncompatibleViewError: CodedError { let propName: String let viewType: UIView.Type var description: String { "Tried to set prop `\(propName)` on the view that isn't `\(viewType)`" } } </s> add static func fromNSObject(_ object: Any) -> Any { switch object { case let object as NSArray: return object.map { Conversions.fromNSObject($0) } case let object as NSDictionary: let keyValuePairs: [(String, Any)] = object.map { ($0 as! String, Conversions.fromNSObject($1)) } return Dictionary(uniqueKeysWithValues: keyValuePairs) default: return object } } </s> remove func set(value: Any?, onView: UIView) </s> add func set(value: Any, onView: UIView) throws </s> remove guard let value = value as? PropType else { fatalError("Given value `\(String(describing: value))` cannot be casted to `\(String(describing: PropType.self))`") </s> add guard let value = try propType.cast(value) as? PropType else { throw Conversions.CastingError<PropType>(value: value) </s> add self.propType = propType
https://github.com/expo/expo/commit/a3f4993b085cdde19981e6240342df5368c0b507
packages/expo-modules-core/ios/Swift/Views/ViewModuleWrapper.swift
keep add keep keep keep keep
<mask> "date-format": "^2.0.0", <mask> "expo": "^33.0.0-alpha.web.3", <mask> "expo-cli": "^2.13.0", <mask> "expo-constants": "^5.0.0-rc.0", <mask> "expo-contacts": "^5.0.0-rc.0", <mask> "expo-document-picker": "^5.0.0-rc.0", </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> add "expo-secure-store": "^5.0.0-rc.0", "expo-sharing": "^3.0.0-rc.0", "expo-sms": "^5.0.0-rc.0", "expo-speech": "^5.0.0-rc.0", "expo-task-manager": "^5.0.0-rc.0", </s> add "expo-web-browser": "^5.0.0-rc.0", </s> remove import { Contacts } from 'expo'; </s> add import * as Contacts from 'expo-contacts'; </s> remove import { FileSystem, MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library'; import * as FileSystem from 'expo-file-system'; </s> remove import { MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library'; </s> remove import { FaceDetector } from 'expo'; </s> add import * as FaceDetector from 'expo-face-detector';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/package.json
keep keep add keep keep keep keep
<mask> "expo-permissions": "^5.0.0-rc.0", <mask> "expo-print": "^5.0.0-rc.0", <mask> "expo-processing": "~2.0.0", <mask> "expo-three": "^3.0.0-alpha.6", <mask> "expo-web-browser": "^5.0.0-rc.0", <mask> "fbemitter": "^2.1.1", <mask> "gl-mat4": "^1.1.4", </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> add "expo-web-browser": "^5.0.0-rc.0", </s> add "expo-ads-admob": "^5.0.0-rc.0", "expo-ads-facebook": "^5.0.0-rc.0", "expo-app-auth": "^5.0.0-rc.0", "expo-asset": "^4.0.0", "expo-av": "^5.0.0-rc.0", "expo-background-fetch": "^5.0.0-rc.0", "expo-barcode-scanner": "^5.0.0-rc.0", "expo-blur": "^5.0.0-rc.0", "expo-calendar": "^5.0.0-rc.0", "expo-camera": "^5.0.0-rc.0", </s> remove import { Contacts } from 'expo'; </s> add import * as Contacts from 'expo-contacts'; </s> remove import { FileSystem, MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library'; import * as FileSystem from 'expo-file-system'; </s> remove import { MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library'; </s> remove import { FaceDetector } from 'expo'; </s> add import * as FaceDetector from 'expo-face-detector';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/package.json
keep add keep keep keep keep
<mask> "expo-task-manager": "^5.0.0-rc.0", <mask> "expo-three": "^3.0.0-alpha.6", <mask> "fbemitter": "^2.1.1", <mask> "gl-mat4": "^1.1.4", <mask> "hsv2rgb": "^1.1.0", <mask> "i18n-js": "^3.1.0", </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> add "expo-secure-store": "^5.0.0-rc.0", "expo-sharing": "^3.0.0-rc.0", "expo-sms": "^5.0.0-rc.0", "expo-speech": "^5.0.0-rc.0", "expo-task-manager": "^5.0.0-rc.0", </s> add "expo-ads-admob": "^5.0.0-rc.0", "expo-ads-facebook": "^5.0.0-rc.0", "expo-app-auth": "^5.0.0-rc.0", "expo-asset": "^4.0.0", "expo-av": "^5.0.0-rc.0", "expo-background-fetch": "^5.0.0-rc.0", "expo-barcode-scanner": "^5.0.0-rc.0", "expo-blur": "^5.0.0-rc.0", "expo-calendar": "^5.0.0-rc.0", "expo-camera": "^5.0.0-rc.0", </s> remove import { Contacts } from 'expo'; </s> add import * as Contacts from 'expo-contacts'; </s> remove import { FileSystem, MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library'; import * as FileSystem from 'expo-file-system'; </s> remove import { MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library'; </s> remove import { FaceDetector } from 'expo'; </s> add import * as FaceDetector from 'expo-face-detector';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/package.json
keep keep add keep keep keep keep keep
<mask> "react-dom": "^16.8.6", <mask> "react-native": "0.59.8", <mask> "react-native-is-iphonex": "^1.0.1", <mask> "react-native-paper": "github:brentvatne/react-native-paper#@brent/fix-bottom-navigation-rn-57", <mask> "react-native-platform-touchable": "^1.1.1", <mask> "react-native-svg": "9.4.0", <mask> "react-native-web": "^0.11.0", <mask> "react-native-webview": "5.8.1", </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> add "react-native-svg": "9.4.0", </s> add "react-native-webview": "5.8.1", </s> remove import { Svg } from 'expo'; </s> add import * as Svg from 'react-native-svg'; </s> remove import { Contacts } from 'expo'; </s> add import * as Contacts from 'expo-contacts'; </s> remove import { FileSystem, MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library'; import * as FileSystem from 'expo-file-system'; </s> remove import { MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/package.json
keep keep keep add keep keep keep keep
<mask> "react-native-is-iphonex": "^1.0.1", <mask> "react-native-maps": "0.24.2", <mask> "react-native-paper": "github:brentvatne/react-native-paper#@brent/fix-bottom-navigation-rn-57", <mask> "react-native-platform-touchable": "^1.1.1", <mask> "react-native-web": "^0.11.0", <mask> "react-native-webview": "5.8.1", <mask> "react-navigation": "^3.4.0-rc.0", <mask> "react-navigation-header-buttons": "^1.2.1", </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> add "react-native-maps": "0.24.2", </s> add "react-native-webview": "5.8.1", </s> remove import { Svg } from 'expo'; </s> add import * as Svg from 'react-native-svg'; </s> remove import { Contacts } from 'expo'; </s> add import * as Contacts from 'expo-contacts'; </s> remove import { FileSystem, MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library'; import * as FileSystem from 'expo-file-system'; </s> remove import { MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/package.json
keep keep keep add keep keep keep keep keep keep
<mask> "react-native-paper": "github:brentvatne/react-native-paper#@brent/fix-bottom-navigation-rn-57", <mask> "react-native-platform-touchable": "^1.1.1", <mask> "react-native-svg": "9.4.0", <mask> "react-native-web": "^0.11.0", <mask> "react-navigation": "^3.4.0-rc.0", <mask> "react-navigation-header-buttons": "^1.2.1", <mask> "react-navigation-material-bottom-tabs": "1.0.0", <mask> "regl": "^1.3.0", <mask> "three": "^0.88.0", <mask> "url": "^0.11.0", </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> add "react-native-svg": "9.4.0", </s> add "react-native-maps": "0.24.2", </s> remove import { Svg } from 'expo'; </s> add import * as Svg from 'react-native-svg'; </s> remove import { Contacts } from 'expo'; </s> add import * as Contacts from 'expo-contacts'; </s> remove import { FileSystem, MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library'; import * as FileSystem from 'expo-file-system'; </s> remove import { MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/package.json
replace keep keep keep keep keep
<mask> import { Constants, Notifications } from 'expo'; <mask> <mask> // In this test app we contact the Expo push service directly. You *never* <mask> // should do this in a real app. You should always store the push tokens on your <mask> // own server or use the local notification API if you want to notify this user. <mask> const PUSH_ENDPOINT = 'https://expo.io/--/api/v2/push/send'; </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> remove import { Svg } from 'expo'; </s> add import * as Svg from 'react-native-svg'; </s> remove import { Svg } from 'expo'; </s> add import * as Svg from 'react-native-svg'; </s> remove import { Svg } from 'expo'; </s> add import * as Svg from 'react-native-svg'; </s> remove import { Svg } from 'expo'; </s> add import * as Svg from 'react-native-svg'; </s> remove import { Svg } from 'expo'; </s> add import * as Svg from 'react-native-svg'; </s> remove import { Contacts } from 'expo'; </s> add import * as Contacts from 'expo-contacts';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/src/api/registerForPushNotificationsAsync.ts
keep keep replace keep keep keep keep keep
<mask> import React from 'react'; <mask> import { StyleProp, ViewStyle } from 'react-native'; <mask> import { Asset } from 'expo'; <mask> <mask> import Player from './Player'; <mask> <mask> type PlaybackSource = <mask> | number </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> remove import { Asset } from 'expo'; </s> add import { Asset } from 'expo-asset'; </s> remove import { GL } from 'expo'; </s> add import * as GL from 'expo-gl'; </s> remove import { MediaLibrary } from 'expo'; </s> add import * as MediaLibrary from 'expo-media-library'; </s> remove import { Asset } from 'expo'; </s> add import { Asset } from 'expo-asset'; </s> remove import { Haptics } from 'expo'; </s> add import * as Haptics from 'expo-haptics'; </s> remove import { Contacts } from 'expo'; </s> add import * as Contacts from 'expo-contacts';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/src/screens/AV/AudioPlayer.tsx
keep replace keep keep keep keep keep
<mask> import React from 'react'; <mask> import { Asset } from 'expo'; <mask> import { ScrollView, StyleSheet, PixelRatio } from 'react-native'; <mask> import { Audio } from 'expo-av'; <mask> <mask> import ListButton from '../../components/ListButton'; <mask> import HeadingText from '../../components/HeadingText'; </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> remove import { Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; </s> remove import { Asset } from 'expo'; </s> add import { Asset } from 'expo-asset'; </s> remove import { Permissions, Notifications } from 'expo'; </s> add import { Notifications } from 'expo'; import * as Permissions from 'expo-permissions'; </s> remove import { Calendar } from 'expo'; </s> add import * as Calendar from 'expo-calendar'; </s> remove import { ImagePicker, Permissions, Video } from 'expo'; </s> add import { Video } from 'expo-av'; import * as Permissions from 'expo-permissions'; import * as ImagePicker from 'expo-image-picker'; </s> remove import { Constants } from 'expo'; </s> add import Constants from 'expo-constants';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/src/screens/AV/AudioScreen.tsx
keep replace keep keep keep keep keep
<mask> import React from 'react'; <mask> import { Permissions } from 'expo'; <mask> import { Audio } from 'expo-av'; <mask> import { Ionicons } from '@expo/vector-icons'; <mask> import { <mask> ScrollView, <mask> StyleSheet, </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> remove import { Asset } from 'expo'; </s> add import { Asset } from 'expo-asset'; </s> remove import { Contacts, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as Contacts from 'expo-contacts'; </s> remove import { Asset } from 'expo'; </s> add import { Asset } from 'expo-asset'; </s> remove import { FaceDetector } from 'expo'; </s> add import * as FaceDetector from 'expo-face-detector'; </s> remove import { MediaLibrary, Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions'; import * as MediaLibrary from 'expo-media-library'; </s> remove import { ImagePicker, Permissions, Video } from 'expo'; </s> add import { Video } from 'expo-av'; import * as Permissions from 'expo-permissions'; import * as ImagePicker from 'expo-image-picker';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/src/screens/AV/Recorder.tsx
keep replace keep keep keep keep keep
<mask> import React from 'react'; <mask> import { Asset } from 'expo'; <mask> import { Video } from 'expo-av'; <mask> <mask> import Player from './Player'; <mask> import { StyleProp, ViewStyle } from 'react-native'; <mask> </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> remove import { Asset } from 'expo'; </s> add import { Asset } from 'expo-asset'; </s> remove import { Asset } from 'expo'; </s> add import { Asset } from 'expo-asset'; </s> remove import { ImagePicker, Permissions, Video } from 'expo'; </s> add import { Video } from 'expo-av'; import * as Permissions from 'expo-permissions'; import * as ImagePicker from 'expo-image-picker'; </s> remove import { GL } from 'expo'; </s> add import * as GL from 'expo-gl'; </s> remove import { MediaLibrary } from 'expo'; </s> add import * as MediaLibrary from 'expo-media-library'; </s> remove import { Permissions } from 'expo'; </s> add import * as Permissions from 'expo-permissions';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/src/screens/AV/VideoPlayer.tsx
keep keep replace keep keep keep keep keep
<mask> import React from 'react'; <mask> import { StyleSheet, View, Platform } from 'react-native'; <mask> import { AdMobBanner, AdMobRewarded, AdMobInterstitial } from 'expo'; <mask> import Button from '../components/Button'; <mask> <mask> export default class AdMobScreen extends React.Component { <mask> static navigationOptions = { <mask> title: 'AdMob', </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> remove import { KeepAwake } from 'expo'; </s> add import KeepAwake from 'expo-keep-awake'; </s> remove import { MailComposer } from 'expo'; </s> add import * as MailComposer from 'expo-mail-composer'; </s> remove import { IntentLauncher } from 'expo'; </s> add import * as IntentLauncher from 'expo-intent-launcher'; </s> remove import { Facebook } from 'expo'; </s> add import * as Facebook from 'expo-facebook'; </s> remove import { BlurView } from 'expo'; </s> add import { BlurView } from 'expo-blur'; </s> remove import { GL } from 'expo'; </s> add import * as GL from 'expo-gl';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/src/screens/AdMobScreen.tsx
replace keep keep keep keep keep
<mask> import { AppAuth } from 'expo'; <mask> import React from 'react'; <mask> import { AsyncStorage, Button, StyleSheet, Text, View } from 'react-native'; <mask> <mask> const GUID = '603386649315-vp4revvrcgrcjme51ebuhbkbspl048l9'; <mask> const config = { </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> remove import { AuthSession, Constants } from 'expo'; </s> add import { AuthSession } from 'expo'; import Constants from 'expo-constants'; </s> remove import { BackgroundFetch, TaskManager } from 'expo'; </s> add import * as TaskManager from 'expo-task-manager'; import * as BackgroundFetch from 'expo-background-fetch'; </s> remove import { Constants, DangerZone } from 'expo'; </s> add import { DangerZone } from 'expo'; import Constants from 'expo-constants'; </s> remove import { BarCodeScanner, Permissions, Svg, ScreenOrientation } from 'expo'; </s> add import { ScreenOrientation } from 'expo'; import * as Svg from 'react-native-svg'; import * as Permissions from 'expo-permissions'; import { BarCodeScanner } from 'expo-barcode-scanner'; </s> remove import { MapView } from 'expo'; </s> add import MapView from 'react-native-maps'; </s> remove import { BlurView } from 'expo'; </s> add import { BlurView } from 'expo-blur';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/src/screens/AppAuthScreen.tsx
keep keep replace keep keep keep keep keep
<mask> import React from 'react'; <mask> import { Button, StyleSheet, Text, View } from 'react-native'; <mask> import { AuthSession, Constants } from 'expo'; <mask> <mask> const auth0ClientId = '8wmGum25h3KU2grnmZtFvMQeitmIdSDS'; <mask> const auth0Domain = 'https://expo-testing.auth0.com'; <mask> <mask> /** </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> remove import { AppAuth } from 'expo'; </s> add import * as AppAuth from 'expo-app-auth'; </s> remove import { Constants, DangerZone } from 'expo'; </s> add import { DangerZone } from 'expo'; import Constants from 'expo-constants'; </s> remove import { Constants } from 'expo'; </s> add import Constants from 'expo-constants'; </s> remove import { BarCodeScanner, Permissions, Svg, ScreenOrientation } from 'expo'; </s> add import { ScreenOrientation } from 'expo'; import * as Svg from 'react-native-svg'; import * as Permissions from 'expo-permissions'; import { BarCodeScanner } from 'expo-barcode-scanner'; </s> remove import { MapView } from 'expo'; </s> add import MapView from 'react-native-maps'; </s> remove import { BlurView } from 'expo'; </s> add import { BlurView } from 'expo-blur';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/src/screens/AuthSessionScreen.tsx
keep keep keep replace keep keep keep keep keep
<mask> import React from 'react'; <mask> import format from 'date-format'; <mask> import { NavigationEvents } from 'react-navigation'; <mask> import { BackgroundFetch, TaskManager } from 'expo'; <mask> import { AppState, AsyncStorage, StyleSheet, Text, View, AppStateStatus } from 'react-native'; <mask> <mask> import Button from '../components/Button'; <mask> <mask> const BACKGROUND_FETCH_TASK = 'background-fetch'; </s> [ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219) * [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies </s> remove import { BlurView, Location, MapView, Notifications, TaskManager } from 'expo'; </s> add import { Notifications } from 'expo'; import * as TaskManager from 'expo-task-manager'; import MapView from 'react-native-maps'; import * as Location from 'expo-location'; import { BlurView } from 'expo-blur'; </s> remove import { Calendar } from 'expo'; </s> add import * as Calendar from 'expo-calendar'; </s> remove import { AppAuth } from 'expo'; </s> add import * as AppAuth from 'expo-app-auth'; </s> remove import { Haptics } from 'expo'; </s> add import * as Haptics from 'expo-haptics'; </s> remove import { BarCodeScanner, Permissions, Svg, ScreenOrientation } from 'expo'; </s> add import { ScreenOrientation } from 'expo'; import * as Svg from 'react-native-svg'; import * as Permissions from 'expo-permissions'; import { BarCodeScanner } from 'expo-barcode-scanner'; </s> remove import { MediaLibrary } from 'expo'; </s> add import * as MediaLibrary from 'expo-media-library';
https://github.com/expo/expo/commit/a47a147235a4b64230b86da45b8763472c68a18d
apps/native-component-list/src/screens/BackgroundFetchScreen.tsx