From 33ec892ec8b65bf3dcb994eed93cf401e8bb5857 Mon Sep 17 00:00:00 2001 From: bagasbanuna Date: Fri, 28 Nov 2025 16:35:18 +0800 Subject: [PATCH 1/2] Prebuild : untuk Maps box ### No issue --- android/app/build.gradle | 8 +++++++ android/build.gradle | 22 +++++++++++++++++++ app.config.js | 2 +- .../project.pbxproj | 4 ++-- ios/HIPMIBadungConnect/Info.plist | 19 +++++++++------- ios/Podfile | 10 +++++++++ 6 files changed, 54 insertions(+), 11 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 32e09c1..f672a69 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -82,6 +82,14 @@ def enableMinifyInReleaseBuilds = (findProperty('android.enableMinifyInReleaseBu def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+' android { +// @generated begin @rnmapbox/maps-libcpp - expo prebuild (DO NOT MODIFY) sync-e24830a5a3e854b398227dfe9630aabfaa1cadd1 +packagingOptions { + pickFirst 'lib/x86/libc++_shared.so' + pickFirst 'lib/x86_64/libc++_shared.so' + pickFirst 'lib/arm64-v8a/libc++_shared.so' + pickFirst 'lib/armeabi-v7a/libc++_shared.so' + } +// @generated end @rnmapbox/maps-libcpp ndkVersion rootProject.ext.ndkVersion buildToolsVersion rootProject.ext.buildToolsVersion diff --git a/android/build.gradle b/android/build.gradle index e39704a..3461bfd 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -23,3 +23,25 @@ allprojects { apply plugin: "expo-root-project" apply plugin: "com.facebook.react.rootproject" +// @generated begin @rnmapbox/maps-v2-maven - expo prebuild (DO NOT MODIFY) sync-d4ccbfdff48fdba3138b02a8ba41b9722af001d8 + +allprojects { + repositories { + maven { + url 'https://api.mapbox.com/downloads/v2/releases/maven' + // Authentication is no longer required as per Mapbox's removal of download token requirement + // See: https://github.com/mapbox/mapbox-maps-flutter/issues/775 + // Keeping this as optional for backward compatibility + def token = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: System.getenv('RNMAPBOX_MAPS_DOWNLOAD_TOKEN') + if (token) { + authentication { basic(BasicAuthentication) } + credentials { + username = 'mapbox' + password = token + } + } + } + } +} + +// @generated end @rnmapbox/maps-v2-maven \ No newline at end of file diff --git a/app.config.js b/app.config.js index 799b203..7d324e2 100644 --- a/app.config.js +++ b/app.config.js @@ -19,7 +19,7 @@ export default { "NSLocationWhenInUseUsageDescription": "Aplikasi membutuhkan akses lokasi untuk menampilkan peta.", }, associatedDomains: ["applinks:cld-dkr-staging-hipmi.wibudev.com"], - buildNumber: "8", + buildNumber: "9", }, android: { diff --git a/ios/HIPMIBadungConnect.xcodeproj/project.pbxproj b/ios/HIPMIBadungConnect.xcodeproj/project.pbxproj index f4b773c..94f5563 100644 --- a/ios/HIPMIBadungConnect.xcodeproj/project.pbxproj +++ b/ios/HIPMIBadungConnect.xcodeproj/project.pbxproj @@ -401,7 +401,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = HIPMIBadungConnect/HIPMIBadungConnect.entitlements; - CURRENT_PROJECT_VERSION = 2; + CURRENT_PROJECT_VERSION = 3; DEVELOPMENT_TEAM = BMY6GT6W3D; ENABLE_BITCODE = NO; GCC_PREPROCESSOR_DEFINITIONS = ( @@ -438,7 +438,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = HIPMIBadungConnect/HIPMIBadungConnect.entitlements; - CURRENT_PROJECT_VERSION = 2; + CURRENT_PROJECT_VERSION = 3; DEVELOPMENT_TEAM = BMY6GT6W3D; INFOPLIST_FILE = HIPMIBadungConnect/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 15.1; diff --git a/ios/HIPMIBadungConnect/Info.plist b/ios/HIPMIBadungConnect/Info.plist index dedab2d..dab20b7 100644 --- a/ios/HIPMIBadungConnect/Info.plist +++ b/ios/HIPMIBadungConnect/Info.plist @@ -39,7 +39,7 @@ CFBundleVersion - 8 + 9 ITSAppUsesNonExemptEncryption LSMinimumSystemVersion @@ -53,15 +53,18 @@ NSAllowsLocalNetworking - - + NSCameraUsageDescription + Allow $(PRODUCT_NAME) to access your camera + NSLocationAlwaysAndWhenInUseUsageDescription + Allow $(PRODUCT_NAME) to access your location + NSLocationAlwaysUsageDescription + Allow $(PRODUCT_NAME) to access your location + NSLocationWhenInUseUsageDescription + Aplikasi membutuhkan akses lokasi untuk menampilkan peta. + NSMicrophoneUsageDescription + Allow $(PRODUCT_NAME) to access your microphone NSPhotoLibraryUsageDescription Untuk mengunggah dokumen dan media bisnis seperti foto profil, logo usaha, poster lowongan, atau bukti transaksi di berbagai fitur aplikasi: Profile, Portofolio, Job Vacancy, Investasi, dan Donasi. - - - NSCameraUsageDescription - Untuk mengambil foto langsung saat mengunggah dokumen bisnis seperti foto profil, logo usaha, poster, atau bukti pembayaran di fitur Profile, Portofolio, Job Vacancy, Investasi, dan Donasi. - NSUserActivityTypes $(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route diff --git a/ios/Podfile b/ios/Podfile index e5d0bff..3156718 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -33,6 +33,13 @@ target 'HIPMIBadungConnect' do use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks'] use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS'] +# @generated begin pre_installer - expo prebuild (DO NOT MODIFY) sync-c8812095000d6054b846ce74840f0ffb540c2757 + pre_install do |installer| +# @generated begin @rnmapbox/maps-pre_installer - expo prebuild (DO NOT MODIFY) sync-ea4905840bf9fcea0acc62e92aa2e784f9d760f8 + $RNMapboxMaps.pre_install(installer) +# @generated end @rnmapbox/maps-pre_installer + end +# @generated end pre_installer use_react_native!( :path => config[:reactNativePath], :hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes', @@ -42,6 +49,9 @@ target 'HIPMIBadungConnect' do ) post_install do |installer| +# @generated begin @rnmapbox/maps-post_installer - expo prebuild (DO NOT MODIFY) sync-c4e8f90e96f6b6c6ea9241dd7b52ab5f57f7bf36 + $RNMapboxMaps.post_install(installer) +# @generated end @rnmapbox/maps-post_installer react_native_post_install( installer, config[:reactNativePath], -- 2.49.1 From 69452ff4e7031b57e39497da16001bd23629d697 Mon Sep 17 00:00:00 2001 From: bagasbanuna Date: Fri, 28 Nov 2025 17:27:59 +0800 Subject: [PATCH 2/2] Fix loader fetch data di Forum dan Forumku ### No Issue --- context/AuthContext.tsx | 2 +- screens/Forum/ViewBeranda2.tsx | 3 +-- screens/Forum/ViewForumku2.tsx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/context/AuthContext.tsx b/context/AuthContext.tsx index 2d92e7d..4e14f7b 100644 --- a/context/AuthContext.tsx +++ b/context/AuthContext.tsx @@ -145,7 +145,7 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => { await AsyncStorage.setItem("userData", JSON.stringify(dataUser)); return dataUser; } catch (error: any) { - console.log(error.response?.data?.message + "user" || "Gagal mengambil data user"); + console.log("[LOAD USER DATA]",error.response?.data?.message + "user" || "Gagal mengambil data user"); } finally { setIsLoading(false); } diff --git a/screens/Forum/ViewBeranda2.tsx b/screens/Forum/ViewBeranda2.tsx index 3a76141..5e88267 100644 --- a/screens/Forum/ViewBeranda2.tsx +++ b/screens/Forum/ViewBeranda2.tsx @@ -203,10 +203,9 @@ export default function Forum_ViewBeranda2() { /> } onEndReached={loadMore} - // ListHeaderComponent={ListHeaderComponent} ListFooterComponent={ListFooterComponent} ListEmptyComponent={ - _.isEmpty(listData) ? : + loading && _.isEmpty(listData) ? : } // ------------------------ /> diff --git a/screens/Forum/ViewForumku2.tsx b/screens/Forum/ViewForumku2.tsx index 5c758e2..535b3b1 100644 --- a/screens/Forum/ViewForumku2.tsx +++ b/screens/Forum/ViewForumku2.tsx @@ -207,7 +207,7 @@ export default function View_Forumku2() { ListHeaderComponent={randerHeaderComponent()} ListFooterComponent={ListFooterComponent} ListEmptyComponent={ - _.isEmpty(listData) ? : + loading && _.isEmpty(listData) ? : } /> -- 2.49.1