Skip to content

Commit

Permalink
refactor ios podspec name
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhdang198 committed Feb 19, 2024
1 parent 7dc8324 commit 71a265f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ target 'RNMaplibreExample' do
)

# default version
pod 'maplibre-react-native', :path => '../../', :inhibit_warnings => false
pod 'vietmap-react-native', :path => '../../', :inhibit_warnings => false

use_native_modules!

Expand Down
2 changes: 0 additions & 2 deletions example/ios/RNMaplibreExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@
dependencies = (
);
name = RNMaplibreExample;
packageProductDependencies = (
);
productName = RNMaplibreExample;
productReference = 13B07F961A680F5B00A75B9A /* RNMaplibreExample.app */;
productType = "com.apple.product-type.application";
Expand Down
2 changes: 1 addition & 1 deletion javascript/Maplibre.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import {UserTrackingMode} from './components/Camera';

// types:
export enum StyleURL {
Default = 'https://maps.vietmap.vn/api/maps/light/styles.json?apikey=6411732992b3c4def7a117893215b9163a15e69065c0874d',
Default = 'https://maps.vietmap.vn/api/maps/light/styles.json?apikey=1dc93048adb6292feb26ee444d2630c2e6e3596061a34d4c',
}

/** @deprecated UserTrackingModes is deprecated use UserTrackingMode */
Expand Down
8 changes: 4 additions & 4 deletions javascript/utils/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Logger {
effectiveLevel({level, message, tag}: Log): LogLevel {
if (level === 'warning') {
if (
tag === 'Mbgl-HttpRequest' &&
tag === 'Vmgl-HttpRequest' &&
message.startsWith('Request failed due to a permanent error: Canceled')
) {
// this seems to happening too much to show a warning every time
Expand All @@ -120,11 +120,11 @@ class Logger {
const {message} = log;
const level = this.effectiveLevel(log);
if (level === 'error') {
console.error('Mapbox error', message, log);
console.error('Vietmap error', message, log);
} else if (level === 'warning') {
console.warn('Mapbox warning', message, log);
console.warn('Vietmap warning', message, log);
} else {
console.log(`Mapbox [${level}]`, message, log);
console.log(`Vietmap [${level}]`, message, log);
}
}
}
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
{
"name": "@maplibre/maplibre-react-native",
"description": "A MapLibre GL Native plugin for creating maps in React Native",
"version": "9.1.0",
"name": "@vietmap/vietmap-gl-react-native",
"description": "A Vietmap GL Native plugin for creating maps in React Native",
"version": "0.0.1",
"publishConfig": {
"access": "public"
},
"author": "MapLibre",
"author": "VietMap",
"main": "./javascript/index.ts",
"keywords": [
"maps",
"ios",
"android",
"maplibre",
"react-native",
"mapbox"
"mapbox",
"vietmap"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/maplibre/maplibre-react-native"
"url": "https://github.com/vietmap-company/vietmap-gl-react-native"
},
"scripts": {
"fetch:style:spec": "./scripts/download-style-spec.sh",
Expand Down
10 changes: 5 additions & 5 deletions maplibre-react-native.podspec → vietmap-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ def $RNMBGL.post_install(installer)
end

Pod::Spec.new do |s|
s.name = "maplibre-react-native"
s.summary = "React Native Component for Maplibre Native"
s.name = "vietmap-react-native"
s.summary = "React Native Component for Vietmap GL Native"
s.version = package['version']
s.authors = { "Ian Wagner" => "[email protected]" } # TODO: MapLibre email?
s.homepage = "https://github.com/maplibre/maplibre-react-native"
s.source = { :git => "https://github.com/maplibre/maplibre-react-native.git" }
s.authors = { "Vietmap" => "[email protected]" } # TODO: MapLibre email?
s.homepage = "https://maps.vietmap.vn"
s.source = { :git => "https://github.com/vietmap-company/vietmap-gl-react-native.git" }
s.license = "MIT"
s.platform = :ios, "8.0"

Expand Down

0 comments on commit 71a265f

Please sign in to comment.