Skip to content

Commit

Permalink
Merge pull request #79 from e-picsa/fix/http-req-caching
Browse files Browse the repository at this point in the history
Fix/http req caching
  • Loading branch information
chrismclarke authored Oct 22, 2022
2 parents 41f47a1 + 842854c commit 00568e1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
4 changes: 2 additions & 2 deletions apps/picsa-apps/extension-app-native/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "io.picsa.extension"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 3012004
versionName "3.12.4"
versionCode 3012005
versionName "3.12.5"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@
"@capacitor-community/firebase-analytics",
"@capacitor-community/firebase-crashlytics",
"@capacitor-firebase/performance"
]
],
"server": {
"cleartext": true
}
}
19 changes: 11 additions & 8 deletions apps/picsa-apps/extension-app-native/capacitor.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ const config: CapacitorConfig = {
'@capacitor-community/firebase-crashlytics',
'@capacitor-firebase/performance',
],
/**
* uncomment and replace with local ip to serve live-reload
* TODO - could create script to automatially toggle when serving native
**/
// server: {
// url: 'http://192.168.50.67:4200',
// cleartext: true,
// },
server: {
/** Uncomment and replace with local ip to serve live-reload */

// url: 'http://192.168.50.67:4200',

/**
* NOTE - cleartext still required for caching fetch requests even when not serving locally
* https://stackoverflow.com/questions/60906953/ionic-5-capacitor-err-cleartext-not-permitted-in-android
*/
cleartext: true,
},
};

export default config;
2 changes: 1 addition & 1 deletion libs/environments/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import packageJson from '../../../package.json';

export const APP_VERSION = {
number: packageJson.version,
date: '2022-10-21',
date: '2022-10-22',
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "picsa-apps",
"version": "3.12.4",
"version": "3.12.5",
"license": "See LICENSE",
"scripts": {
"ng": "nx",
Expand Down

0 comments on commit 00568e1

Please sign in to comment.