Add cookie manager
This commit is contained in:
parent
8d65b4386c
commit
fe836e1f5a
|
@ -4,6 +4,7 @@ import android.app.Application;
|
|||
import android.content.Context;
|
||||
import com.facebook.react.PackageList;
|
||||
import com.facebook.react.ReactApplication;
|
||||
import com.reactnativecommunity.cookies.CookieManagerPackage;
|
||||
import com.reactnativecommunity.asyncstorage.AsyncStoragePackage;
|
||||
import com.facebook.react.ReactInstanceManager;
|
||||
import com.facebook.react.ReactNativeHost;
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
rootProject.name = 'Skolplattformen'
|
||||
include ':@react-native-community_cookies'
|
||||
project(':@react-native-community_cookies').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/cookies/android')
|
||||
include ':@react-native-async-storage_async-storage'
|
||||
project(':@react-native-async-storage_async-storage').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-async-storage/async-storage/android')
|
||||
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
|
||||
|
|
|
@ -55,6 +55,8 @@ target 'Skolplattformen' do
|
|||
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
|
||||
|
||||
|
||||
pod 'react-native-cookies', :path => '../node_modules/@react-native-community/cookies'
|
||||
|
||||
target 'SkolplattformenTests' do
|
||||
inherit! :complete
|
||||
# Pods for testing
|
||||
|
|
|
@ -233,6 +233,8 @@ PODS:
|
|||
- React-cxxreact (= 0.62.2)
|
||||
- React-jsi (= 0.62.2)
|
||||
- React-jsinspector (0.62.2)
|
||||
- react-native-cookies (5.0.1):
|
||||
- React-Core
|
||||
- react-native-maps (0.27.1):
|
||||
- React
|
||||
- react-native-safe-area-context (3.1.9):
|
||||
|
@ -334,6 +336,7 @@ DEPENDENCIES:
|
|||
- React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
|
||||
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
|
||||
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
|
||||
- "react-native-cookies (from `../node_modules/@react-native-community/cookies`)"
|
||||
- react-native-maps (from `../node_modules/react-native-maps`)
|
||||
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
|
||||
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
|
||||
|
@ -399,6 +402,8 @@ EXTERNAL SOURCES:
|
|||
:path: "../node_modules/react-native/ReactCommon/jsiexecutor"
|
||||
React-jsinspector:
|
||||
:path: "../node_modules/react-native/ReactCommon/jsinspector"
|
||||
react-native-cookies:
|
||||
:path: "../node_modules/@react-native-community/cookies"
|
||||
react-native-maps:
|
||||
:path: "../node_modules/react-native-maps"
|
||||
react-native-safe-area-context:
|
||||
|
@ -464,6 +469,7 @@ SPEC CHECKSUMS:
|
|||
React-jsi: b6dc94a6a12ff98e8877287a0b7620d365201161
|
||||
React-jsiexecutor: 1540d1c01bb493ae3124ed83351b1b6a155db7da
|
||||
React-jsinspector: 512e560d0e985d0e8c479a54a4e5c147a9c83493
|
||||
react-native-cookies: ce50e42ace7cf0dd47769260ca5bbe8eee607e4e
|
||||
react-native-maps: f4b89da81626ad7f151a8bfcb79733295d31ce5c
|
||||
react-native-safe-area-context: b6e0e284002381d2ff29fa4fff42b4d8282e3c94
|
||||
React-RCTActionSheet: f41ea8a811aac770e0cc6e0ad6b270c644ea8b7c
|
||||
|
@ -485,6 +491,6 @@ SPEC CHECKSUMS:
|
|||
Yoga: 3ebccbdd559724312790e7742142d062476b698e
|
||||
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
|
||||
|
||||
PODFILE CHECKSUM: 3dbde066021659fc3f7c9ef9450c4ae2041d4bfb
|
||||
PODFILE CHECKSUM: b23c996f6d50dc3e4f20060bfcf3fb5be14643fd
|
||||
|
||||
COCOAPODS: 1.10.0
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
import init from '@skolplattformen/embedded-api'
|
||||
export const api = init(fetch) // keep a static version of this object so we can keep the session alive
|
||||
import CookieManager from '@react-native-community/cookies'
|
||||
|
||||
// keep a static version of this object so we can keep the session alive
|
||||
export const api = init(fetch, () => CookieManager.clearAll())
|
||||
|
||||
export function * fillChild (child) {
|
||||
console.log(`loading notifications for ${child.name}...`)
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
"@eva-design/eva": "2.0.0",
|
||||
"@eva-design/material": "^2.0.0",
|
||||
"@react-native-async-storage/async-storage": "^1.13.2",
|
||||
"@react-native-community/cookies": "^5.0.1",
|
||||
"@react-native-community/masked-view": "^0.1.10",
|
||||
"@react-navigation/material-top-tabs": "^5.3.10",
|
||||
"@react-navigation/native": "^5.8.10",
|
||||
|
@ -2099,6 +2100,17 @@
|
|||
"resolved": "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-4.10.1.tgz",
|
||||
"integrity": "sha512-ael2f1onoPF3vF7YqHGWy7NnafzGu+yp88BbFbP0ydoCP2xGSUzmZVw0zakPTC040Id+JQ9WeFczujMkDy6jYQ=="
|
||||
},
|
||||
"node_modules/@react-native-community/cookies": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@react-native-community/cookies/-/cookies-5.0.1.tgz",
|
||||
"integrity": "sha512-Is/kWBmYBFtX4DOImfglK5Bz2w3PdpgMGTqdVQSbZlFdSDw32lwFMk1mLSAzL5EcUEDwJJbcEATbU3JGSZSVXw==",
|
||||
"dependencies": {
|
||||
"invariant": "^2.2.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react-native": ">= 0.60.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@react-native-community/eslint-config": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-1.1.0.tgz",
|
||||
|
@ -18786,6 +18798,14 @@
|
|||
"resolved": "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-4.10.1.tgz",
|
||||
"integrity": "sha512-ael2f1onoPF3vF7YqHGWy7NnafzGu+yp88BbFbP0ydoCP2xGSUzmZVw0zakPTC040Id+JQ9WeFczujMkDy6jYQ=="
|
||||
},
|
||||
"@react-native-community/cookies": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@react-native-community/cookies/-/cookies-5.0.1.tgz",
|
||||
"integrity": "sha512-Is/kWBmYBFtX4DOImfglK5Bz2w3PdpgMGTqdVQSbZlFdSDw32lwFMk1mLSAzL5EcUEDwJJbcEATbU3JGSZSVXw==",
|
||||
"requires": {
|
||||
"invariant": "^2.2.4"
|
||||
}
|
||||
},
|
||||
"@react-native-community/eslint-config": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-1.1.0.tgz",
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
"@eva-design/eva": "2.0.0",
|
||||
"@eva-design/material": "^2.0.0",
|
||||
"@react-native-async-storage/async-storage": "^1.13.2",
|
||||
"@react-native-community/cookies": "^5.0.1",
|
||||
"@react-native-community/masked-view": "^0.1.10",
|
||||
"@react-navigation/material-top-tabs": "^5.3.10",
|
||||
"@react-navigation/native": "^5.8.10",
|
||||
|
|
Loading…
Reference in New Issue