Skip to content

Commit

Permalink
feat: upgrade native dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Dec 16, 2024
1 parent 63e8dc9 commit 218f05d
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 23 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

// MapLibre SDK
implementation "org.maplibre.gl:android-sdk:11.5.0"
implementation "org.maplibre.gl:android-sdk:11.7.0"
implementation "org.maplibre.gl:android-sdk-turf:6.0.1"

// Dependencies
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/setup/iOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Add the following to your `ios/Podfile`:
end
```

Running `pod install` will add version `6.5.4` of the MapLibre SDK.
Running `pod install` will add version `6.8.1` of the MapLibre SDK.

```sh
# Go to the ios directory
Expand All @@ -33,7 +33,7 @@ until this is fixed upstream. iOS devs can open the workspace in Xcode and run f

## Installing a specific version

The current default MapLibre version is `6.5.4`.
The current default MapLibre version is `6.8.1`.
If you want to install a different version, you can override as follows in
your `Podfile`:

Expand All @@ -42,7 +42,7 @@ $MLRN_SPM_Spec = {
url: "https://github.com/maplibre/maplibre-gl-native-distribution",
requirement: {
kind: "upToNextMajorVersion",
minimumVersion: "6.5.4"
minimumVersion: "6.8.1"
},
product_name: "MapLibre"
}
Expand Down
2 changes: 1 addition & 1 deletion maplibre-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def $MLRN.post_install(installer)
url: "https://github.com/maplibre/maplibre-gl-native-distribution",
requirement: {
kind: "exactVersion",
version: "6.5.4"
version: "6.8.1"
},
product_name: "MapLibre"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@
attributes = {
LastUpgradeCheck = 1210;
TargetAttributes = {
00E356ED1AD99517003FC87E = {
CreatedOnToolsVersion = 6.2;
TestTargetID = 13B07F861A680F5B00A75B9A;
};
13B07F861A680F5B00A75B9A = {
LastSwiftMigration = 1120;
};
Expand Down Expand Up @@ -394,10 +390,7 @@
"-DFOLLY_CFG_NO_COROUTINES=1",
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
);
OTHER_LDFLAGS = (
"$(inherited)",
" ",
);
OTHER_LDFLAGS = "$(inherited) ";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
Expand Down Expand Up @@ -466,10 +459,7 @@
"-DFOLLY_CFG_NO_COROUTINES=1",
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
);
OTHER_LDFLAGS = (
"$(inherited)",
" ",
);
OTHER_LDFLAGS = "$(inherited) ";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
Expand Down Expand Up @@ -506,7 +496,7 @@
repositoryURL = "https://github.com/maplibre/maplibre-gl-native-distribution";
requirement = {
kind = exactVersion;
version = 6.5.4;
version = 6.8.1;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/maplibre/maplibre-gl-native-distribution",
"state" : {
"revision" : "abe762f1e19e03a4c6943d2aad92c219da384b29",
"version" : "6.5.4"
"revision" : "b84a0decbe9ca1caeff1402efdce71349c09d790",
"version" : "6.8.1"
}
}
],
Expand Down
8 changes: 7 additions & 1 deletion scripts/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,13 @@ async function generate() {
},
);

return layoutProps.concat(paintProps);
const props = [...layoutProps, ...paintProps];

return props.filter((prop) => {
// TODO: Codegen adoptions for native style code
// https://github.com/maplibre/maplibre-react-native/issues/562
return !["textVariableAnchorOffset"].includes(prop.name);
});
}

function getSupportedLayers() {
Expand Down
3 changes: 2 additions & 1 deletion scripts/templates/MapLibreRNStyles.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export interface Transition {
delay: number;
}

export type FormattedString = string; /* TODO */
<% /* TODO */ %>
export type FormattedString = string;

export type ExpressionName =
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/types/MapLibreRNStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface Transition {
delay: number;
}

export type FormattedString = string; /* TODO */
export type FormattedString = string;

export type ExpressionName =
// Types
Expand Down

0 comments on commit 218f05d

Please sign in to comment.