Skip to content

Commit

Permalink
v2.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
putuadityabayu committed Oct 16, 2021
1 parent f337901 commit 3fc641d
Show file tree
Hide file tree
Showing 82 changed files with 9,160 additions and 4,962 deletions.
6 changes: 3 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ android {
applicationId "com.portalnesia.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 21
versionName "2.12.0"
versionCode 22
versionName "2.13.0"
}
splits {
abi {
Expand Down Expand Up @@ -234,7 +234,7 @@ dependencies {
implementation "com.github.bumptech.glide:okhttp3-integration:4.11.0"
implementation "com.github.stfalcon-studio:StfalconImageViewer:master-SNAPSHOT"
implementation "io.grpc:grpc-okhttp:1.32.2"
addUnimodulesDependencies([exclude:['expo-keep-awake','expo-linear-gradient','expo-sqlite','expo-sharing','expo-image-manipulator','unimodules-barcode-scanner-interface','unimodules-camera-interface','unimodules-face-detector-interface','unimodules-sensors-interface','expo-local-authentication']])
addUnimodulesDependencies([exclude:['expo-keep-awake','expo-linear-gradient','expo-sqlite','expo-sharing','expo-image-manipulator','unimodules-barcode-scanner-interface','unimodules-camera-interface','unimodules-face-detector-interface','unimodules-sensors-interface','expo-local-authentication','expo-task-manager','expo-background-fetch']])

if (enableHermes) {
def hermesPath = "../../node_modules/hermes-engine/android/";
Expand Down
6 changes: 6 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>

<queries>
<intent>
<action android:name="com.google.android.youtube.api.service.START" />
</intent>
</queries>

<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:fullBackupContent="@xml/backup" android:theme="@style/AppTheme" android:hardwareAccelerated="true">
<meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://datas.portalnesia.com/updates" />
<meta-data android:name="expo.modules.updates.EXPO_SDK_VERSION" android:value="42.0.0" />
Expand Down
5,220 changes: 2,617 additions & 2,603 deletions android/app/src/main/assets/index.android.bundle

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public List<Package> getPackageList() {
new expo.modules.ads.admob.AdMobPackage(),
new expo.modules.application.ApplicationPackage(),
new expo.modules.av.AVPackage(),
new expo.modules.backgroundfetch.BackgroundFetchPackage(),
new expo.modules.cellular.CellularPackage(),
new expo.modules.clipboard.ClipboardPackage(),
new expo.modules.constants.ConstantsPackage(),
Expand All @@ -30,7 +29,6 @@ public List<Package> getPackageList() {
new expo.modules.permissions.PermissionsPackage(),
new expo.modules.securestore.SecureStorePackage(),
new expo.modules.splashscreen.SplashScreenPackage(),
new expo.modules.taskManager.TaskManagerPackage(),
new expo.modules.updates.UpdatesPackage(),
new expo.modules.webbrowser.WebBrowserPackage()
);
Expand Down
40 changes: 20 additions & 20 deletions android/app/src/main/res/raw/licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"licenseUrl": "https://github.com/native-html/plugins",
"parents": "portal-native"
},
"@portalnesia/react-native-core@1.0.5": {
"@portalnesia/react-native-core@1.2.0": {
"licenses": "MIT",
"repository": "https://github.com/portalnesia/portalnesia",
"licenseUrl": "https://github.com/portalnesia/portalnesia",
Expand Down Expand Up @@ -173,7 +173,7 @@
"licenseUrl": "https://github.com/sindresorhus/array-move/raw/master/license",
"parents": "portal-native"
},
"axios@0.21.1": {
"axios@0.21.4": {
"licenses": "MIT",
"repository": "https://github.com/axios/axios",
"licenseUrl": "https://github.com/axios/axios/raw/master/LICENSE",
Expand Down Expand Up @@ -209,7 +209,7 @@
"licenseUrl": "https://github.com/expo/expo",
"parents": "portal-native"
},
"expo-asset@8.3.2": {
"expo-asset@8.3.3": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
Expand All @@ -227,12 +227,6 @@
"licenseUrl": "https://github.com/expo/expo",
"parents": "portal-native"
},
"expo-background-fetch@9.2.2": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
"parents": "portal-native"
},
"expo-cellular@3.2.0": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
Expand Down Expand Up @@ -317,7 +311,7 @@
"licenseUrl": "https://github.com/expo/expo",
"parents": "portal-native"
},
"expo-notifications@0.12.2": {
"expo-notifications@0.12.3": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
Expand Down Expand Up @@ -353,13 +347,7 @@
"licenseUrl": "https://github.com/expo/expo",
"parents": "portal-native"
},
"expo-task-manager@9.2.2": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
"parents": "portal-native"
},
"expo-updates@0.8.0": {
"expo-updates@0.8.5": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
Expand All @@ -376,7 +364,7 @@
"licenseUrl": "https://github.com/expo/expo",
"parents": "portal-native"
},
"expo@42.0.0": {
"expo@42.0.5": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo",
Expand Down Expand Up @@ -484,6 +472,12 @@
"licenseUrl": "https://github.com/EkoLabs/react-native-background-downloader/raw/master/LICENSE",
"parents": "portal-native"
},
"react-native-background-timer@2.4.1": {
"licenses": "MIT",
"repository": "https://github.com/ocetnik/react-native-background-timer",
"licenseUrl": "https://github.com/ocetnik/react-native-background-timer/raw/master/LICENSE",
"parents": "portal-native"
},
"react-native-biometrics@2.1.4": {
"licenses": "MIT",
"repository": "https://github.com/SelfLender/react-native-biometrics",
Expand Down Expand Up @@ -614,7 +608,7 @@
"licenseUrl": "https://github.com/react-native-kit/react-native-track-player/raw/master/LICENSE",
"parents": "portal-native"
},
"react-native-unimodules@0.14.3": {
"react-native-unimodules@0.14.10": {
"licenses": "MIT",
"repository": "https://github.com/expo/expo",
"licenseUrl": "https://github.com/expo/expo/raw/master/LICENSE.md",
Expand Down Expand Up @@ -650,6 +644,12 @@
"licenseUrl": "https://github.com/facebook/react-native/raw/master/LICENSE",
"parents": "portal-native"
},
"react-navigation-collapsible@5.10.2": {
"licenses": "MIT",
"repository": "https://github.com/benevbright/react-navigation-collapsible",
"licenseUrl": "https://github.com/benevbright/react-navigation-collapsible/raw/master/LICENSE",
"parents": "portal-native"
},
"react-redux@7.2.4": {
"licenses": "MIT",
"repository": "github:reduxjs/react-redux",
Expand Down Expand Up @@ -692,7 +692,7 @@
"licenseUrl": "https://github.com/vercel/swr/raw/master/LICENSE",
"parents": "portal-native"
},
"url-parse@1.5.1": {
"url-parse@1.5.3": {
"licenses": "MIT",
"repository": "https://github.com/unshiftio/url-parse",
"licenseUrl": "https://github.com/unshiftio/url-parse/raw/master/LICENSE",
Expand Down
4 changes: 3 additions & 1 deletion android/app/src/main/res/raw/locale_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@
},
"security":{
"logout":"You must \"LOGOUT\" to remove this device session",
"auth_help":"Instead of using a password, you can use your fingerprint to authenticate your account"
"auth_help":"Instead of using a password, you can use your fingerprint to authenticate your account",
"lock_with":"Lock with %{type}",
"lock_help":"Lock your phone with fingerprint after exiting app or 1 minutes after app is backgrounded"
},
"notification":{
"title_feature":"Features & Promotion",
Expand Down
4 changes: 3 additions & 1 deletion android/app/src/main/res/raw/locale_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@
},
"security":{
"logout":"Anda harus \"LOGOUT\" untuk menghapus perangkat ini",
"auth_help":"Alih-alih menggunakan kata sandi, Anda dapat menggunakan sidik jari untuk mengontentikasi akun Anda"
"auth_help":"Alih-alih menggunakan kata sandi, Anda dapat menggunakan sidik jari untuk mengontentikasi akun Anda",
"lock_with":"Kunci dengan %{type}",
"lock_help":"Kunci perangkat Anda menggunakan sidik jari setelah keluar dari aplikasi atau 1 menit setelah aplikasi berjalan di latar belakang"
},
"notification":{
"title_feature":"Fitur & Promosi",
Expand Down
84 changes: 84 additions & 0 deletions android/app/src/main/res/raw/node_modules_axios_package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"name": "axios",
"version": "0.21.4",
"description": "Promise based HTTP client for the browser and node.js",
"main": "index.js",
"scripts": {
"test": "grunt test",
"start": "node ./sandbox/server.js",
"build": "NODE_ENV=production grunt build",
"preversion": "npm test",
"version": "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
"postversion": "git push && git push --tags",
"examples": "node ./examples/server.js",
"coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"fix": "eslint --fix lib/**/*.js"
},
"repository": {
"type": "git",
"url": "https://github.com/axios/axios.git"
},
"keywords": [
"xhr",
"http",
"ajax",
"promise",
"node"
],
"author": "Matt Zabriskie",
"license": "MIT",
"bugs": {
"url": "https://github.com/axios/axios/issues"
},
"homepage": "https://axios-http.com",
"devDependencies": {
"coveralls": "^3.0.0",
"es6-promise": "^4.2.4",
"grunt": "^1.3.0",
"grunt-banner": "^0.6.0",
"grunt-cli": "^1.2.0",
"grunt-contrib-clean": "^1.1.0",
"grunt-contrib-watch": "^1.0.0",
"grunt-eslint": "^23.0.0",
"grunt-karma": "^4.0.0",
"grunt-mocha-test": "^0.13.3",
"grunt-ts": "^6.0.0-beta.19",
"grunt-webpack": "^4.0.2",
"istanbul-instrumenter-loader": "^1.0.0",
"jasmine-core": "^2.4.1",
"karma": "^6.3.2",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^2.1.0",
"karma-jasmine": "^1.1.1",
"karma-jasmine-ajax": "^0.1.13",
"karma-safari-launcher": "^1.0.0",
"karma-sauce-launcher": "^4.3.6",
"karma-sinon": "^1.0.5",
"karma-sourcemap-loader": "^0.3.8",
"karma-webpack": "^4.0.2",
"load-grunt-tasks": "^3.5.2",
"minimist": "^1.2.0",
"mocha": "^8.2.1",
"sinon": "^4.5.0",
"terser-webpack-plugin": "^4.2.3",
"typescript": "^4.0.5",
"url-search-params": "^0.10.0",
"webpack": "^4.44.2",
"webpack-dev-server": "^3.11.0"
},
"browser": {
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
},
"jsdelivr": "dist/axios.min.js",
"unpkg": "dist/axios.min.js",
"typings": "./index.d.ts",
"dependencies": {
"follow-redirects": "^1.14.0"
},
"bundlesize": [
{
"path": "./dist/axios.min.js",
"threshold": "5kB"
}
]
}
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Portalnesia",
"slug": "portalnesia",
"scheme": "pn",
"version": "2.12.0",
"version": "2.13.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"backgroundColor": "#ffffff",
Expand All @@ -16,7 +16,7 @@
"silentLaunch": true
},
"extra": {
"minimumVersion": "2.12.0"
"minimumVersion": "2.13.0"
},
"splash": {
"image": "./assets/splash.png",
Expand Down
3 changes: 2 additions & 1 deletion components/HOC/withTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ export default function withTooltip<P>(Component: React.ComponentType<P>){
const onPress=()=>setVisible(true)

const render=()=> <Component {...props} onLongPress={onPress} />
const handleVisible=React.useCallback(()=>setVisible(false),[])

if(tooltip) {
return (
<Tooltip
anchor={render}
visible={visible}
onBackdropPress={()=>setVisible(false)}
onBackdropPress={handleVisible}
style={{maxWidth:width-100}}
>
{tooltip}
Expand Down
3 changes: 2 additions & 1 deletion components/global/Ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ export function showInterstisial(){
await AdMobInterstitial.requestAdAsync({servePersonalizedAds:personalized})
await AdMobInterstitial.showAdAsync();
} catch(e){

console.log("showAds Error",e);
log("showAds Error",{extra: String(e)});
}
}
return {showAds}
Expand Down
14 changes: 7 additions & 7 deletions components/global/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,23 @@ export const LoadingComponent=React.memo((props)=>(
))

const Button=React.forwardRef(({size,onPress,onLongPress,disabled,loading,status,appearance,outlined,children,text,accessoryLeft: accessLeft,accessoryRight: accessRight,...others},ref)=>{
const stat = outlined ? "basic" : text ? "basic" : status;
const appear = outlined ? "outline" : text ? "ghost" : appearance;
const stat = React.useMemo(()=>(outlined ? "basic" : text ? "basic" : status),[outlined,text,status]);
const appear = React.useMemo(()=>(outlined ? "outline" : text ? "ghost" : appearance),[outlined,text,appearance]);
const theme = useTheme();

const accessoryLeft = (props)=>{
const accessoryLeft = React.useCallback((props)=>{
if(typeof children === 'undefined') {
if(loading) return <LoadingComponent {...props} />
}
return accessLeft ? accessLeft(props) : null;
}
const accessoryRight=(props)=>{
},[loading,accessLeft,children])

const accessoryRight=React.useCallback((props)=>{
if(typeof children !== 'undefined') {
if(loading) return <LoadingComponent {...props} />
}
return accessRight ? accessRight(props) : null;
}
},[loading,accessRight,children])

if(text || (appearance==='ghost' && status==='basic')) {
return (
Expand Down Expand Up @@ -67,7 +68,6 @@ const Button=React.forwardRef(({size,onPress,onLongPress,disabled,loading,status
onLongPress={onLongPress}
ref={ref}
{...others}

>
{children}
</Btn>
Expand Down
2 changes: 1 addition & 1 deletion components/global/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const sliderWidth = viewportWidth;
export const itemWidth = slideWidth - itemHorizontalMargin;

const Carousel = React.forwardRef(function({data,renderItem,loop,autoplay,...other},ref){
const loops = autoplay ? true : loop;
const loops = React.useMemo(()=>(autoplay ? true : loop),[loop,autoplay]);
return (
<Carousell
ref={ref}
Expand Down
Loading

0 comments on commit 3fc641d

Please sign in to comment.