Skip to content

Commit

Permalink
v2.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
putuadityabayu committed Aug 29, 2021
1 parent ebbf782 commit ccffada
Show file tree
Hide file tree
Showing 9 changed files with 1,630 additions and 1,624 deletions.
9 changes: 5 additions & 4 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 19
versionName "2.10.0"
versionCode 20
versionName "2.11.0"
}
splits {
abi {
Expand Down Expand Up @@ -225,14 +225,15 @@ dependencies {
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
exclude group:'com.facebook.flipper'
}
implementation "com.google.android.gms:play-services-safetynet:17.0.0"
implementation "com.google.android.gms:play-services-auth:19.0.0"
implementation "com.google.android.gms:play-services-safetynet:17.0.1"
implementation "com.google.android.gms:play-services-auth:19.2.0"
implementation "com.github.bumptech.glide:glide:4.11.0"
implementation "com.github.bumptech.glide:annotations:4.11.0"
annotationProcessor("com.github.bumptech.glide:compiler:4.11.0")
annotationProcessor("com.android.support:support-annotations:28.0.0-alpha3")
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']])

if (enableHermes) {
Expand Down
3,205 changes: 1,603 additions & 1,602 deletions android/app/src/main/assets/index.android.bundle

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions android/app/src/main/java/com/portalnesia/app/PNModules.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,9 @@ public void installApkView(String pathname,final Promise promise) {
@ReactMethod
public void installApk(String pathname,final Promise promise) {
try {
//if(Build.VERSION.SDK_INT > Build.VERSION_CODES.M) {
// uri = FileProvider.getUriForFile(reactContext,reactContext.getPackageName() + ".fileprovider",file);
//}

Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE);
intent.setData(getApkUri(pathname));
Uri uri = Uri.parse(pathname);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(uri,"application/vnd.android.package-archive");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
reactContext.startActivity(intent);
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
}
dependencies {
classpath('com.android.tools.build:gradle:4.1.3')
classpath("com.google.gms:google-services:4.3.5")
classpath("com.google.gms:google-services:4.3.10")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.7.1")
classpath("com.google.firebase:perf-plugin:1.4.0")
// classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32")
Expand Down
7 changes: 5 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.10.1",
"version": "2.11.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"backgroundColor": "#ffffff",
Expand All @@ -16,7 +16,7 @@
"silentLaunch": true
},
"extra": {
"minimumVersion": "2.10.0"
"minimumVersion": "2.11.0"
},
"splash": {
"image": "./assets/splash.png",
Expand All @@ -40,6 +40,9 @@
},
"useNextNotificationsApi": true,
"googleServicesFile": "./android/app/google-services.json"
},
"notification": {
"icon":"./android/app/src/main/res/mipmap-xxxhdpi/ic_notif_icon.png"
}
}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"bundle": "npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res",
"export": "expo export -p https://datas.portalnesia.com/updates -t bare",
"licenses": "npm-license-crawler -onlyDirectDependencies -json licenses.json",
"build-release": "cd android && gradlew assembleRelease -x bundleReleaseJsAndAssets",
"build-manifest":"cd android && gradlew createReleaseExpoManifest",
"build-release": "cd android && gradlew assembleRelease -x bundleReleaseJsAndAssets -x createReleaseExpoManifest",
"build-debug": "cd android && gradlew assembleDebug"
},
"dependencies": {
Expand Down Expand Up @@ -151,7 +152,7 @@
},
"private": true,
"name": "portal-native",
"version": "2.10.1",
"version": "2.11.0",
"author": "Putu Aditya <aditya@portalnesia.com>",
"license": "MIT"
}
11 changes: 8 additions & 3 deletions screens/Setting/Security.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default function SecuritySettingScreen({navigation,route}){

React.useEffect(()=>{
if(data) {
//console.log(data);
setSession(data?.sessions)
setFingerprint(biometricsExist && data?.security_key);
}
Expand All @@ -66,8 +65,11 @@ export default function SecuritySettingScreen({navigation,route}){
if(prompt) {
const res = await PNpost(`/setting/native_keys/add`,{public_key,recaptcha})
if(!Boolean(res?.error)) {
setFingerprint(true);
setNotif(false,"Success",res?.msg);
mutate({
...data,
security_key:true
})
}
}
} catch(e){
Expand All @@ -83,7 +85,10 @@ export default function SecuritySettingScreen({navigation,route}){
const res = await PNpost(`/setting/native_keys/delete`,{recaptcha})
if(!Boolean(res?.error)) {
setNotif(false,"Success",res?.msg);
setFingerprint(false);
mutate({
...data,
security_key:false
})
}
}
else {
Expand Down
2 changes: 0 additions & 2 deletions utils/VerifyApps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Alert} from 'react-native'

import PNSafety from '@pn/module/Safety'
import Portalnesia from '@pn/module/Portalnesia'
import API from '@pn/utils/axios'
Expand All @@ -8,7 +7,6 @@ import { log, logError } from './log'
import * as Secure from 'expo-secure-store'
import moment from 'moment'
import NetInfo from '@react-native-community/netinfo'

async function alertWarning(msg: string) {
return new Promise<void>(res=>{
Alert.alert(
Expand Down

0 comments on commit ccffada

Please sign in to comment.