Skip to content

Commit

Permalink
update modal
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzapanther committed Nov 18, 2023
1 parent 1d81965 commit bcac825
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 13 deletions.
10 changes: 5 additions & 5 deletions ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 53;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -354,7 +354,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = 7L82KYV6RG;
INFOPLIST_FILE = App/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Wildwood Assembly";
Expand All @@ -364,7 +364,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.5;
MARKETING_VERSION = 1.0.10;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
PRODUCT_BUNDLE_IDENTIFIER = com.wildwoodag.church;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -383,7 +383,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = 7L82KYV6RG;
INFOPLIST_FILE = App/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Wildwood Assembly";
Expand All @@ -393,7 +393,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.5;
MARKETING_VERSION = 1.0.10;
PRODUCT_BUNDLE_IDENTIFIER = com.wildwoodag.church;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand Down
1 change: 1 addition & 0 deletions ios/App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ install! 'cocoapods', :disable_input_output_paths => true
def capacitor_pods
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorDialog', :path => '../../node_modules/@capacitor/dialog'
pod 'CapgoCapacitorUpdater', :path => '../../node_modules/@capgo/capacitor-updater'
end

Expand Down
12 changes: 9 additions & 3 deletions ios/App/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ PODS:
- Capacitor (5.3.0):
- CapacitorCordova
- CapacitorCordova (5.3.0)
- CapgoCapacitorUpdater (5.2.32):
- CapacitorDialog (5.0.6):
- Capacitor
- CapgoCapacitorUpdater (5.3.9):
- Alamofire
- Capacitor
- SSZipArchive
Expand All @@ -14,6 +16,7 @@ PODS:
DEPENDENCIES:
- "Capacitor (from `../../node_modules/@capacitor/ios`)"
- "CapacitorCordova (from `../../node_modules/@capacitor/ios`)"
- "CapacitorDialog (from `../../node_modules/@capacitor/dialog`)"
- "CapgoCapacitorUpdater (from `../../node_modules/@capgo/capacitor-updater`)"

SPEC REPOS:
Expand All @@ -27,17 +30,20 @@ EXTERNAL SOURCES:
:path: "../../node_modules/@capacitor/ios"
CapacitorCordova:
:path: "../../node_modules/@capacitor/ios"
CapacitorDialog:
:path: "../../node_modules/@capacitor/dialog"
CapgoCapacitorUpdater:
:path: "../../node_modules/@capgo/capacitor-updater"

SPEC CHECKSUMS:
Alamofire: 0e92e751b3e9e66d7982db43919d01f313b8eb91
Capacitor: 1ac9165943bc4f2137642d218c5ba05df811de69
CapacitorCordova: b9374d68e63ce29e96ab5db994cf14fbefd722c9
CapgoCapacitorUpdater: befd2d743b160c70b4a6aac6dd6ad360ac9d040e
CapacitorDialog: 0f3c15dfe9414b83bc64aef4078f1b92bcfead26
CapgoCapacitorUpdater: 399a4f3b10e9e732da6df768d8450d92967c7ace
SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef
Version: de5907f2c5d0f3cf21708db7801d1d5401139486

PODFILE CHECKSUM: e94eabb7b1c611ef74f7afd1153658a61f85181b
PODFILE CHECKSUM: 75d5a5e0b51204ba17b6d697673f341de6b4aab8

COCOAPODS: 1.12.1
12 changes: 10 additions & 2 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"dependencies": {
"@capacitor/android": "^5.3.0",
"@capacitor/assets": "^3.0.0",
"@capacitor/cli": "^5.3.0",
"@capacitor/core": "^5.3.0",
"@capacitor/dialog": "^5.0.6",
"@capacitor/ios": "^5.3.0",
"@capgo/capacitor-updater": "^5.3.9",
"@capgo/cli": "^3.13.16",
"parcel": "^2.9.3",
"@capacitor/cli": "^5.3.0"
"parcel": "^2.9.3"
},
"devDependencies": {},
"targets": {
"wild": {
"source": "src/app.js",
Expand Down
18 changes: 18 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
import { CapacitorUpdater } from '@capgo/capacitor-updater';

import { Dialog } from '@capacitor/dialog'

CapacitorUpdater.addListener('updateAvailable', async (res) => {
try {
const { value } = await Dialog.confirm({
title: 'Update Available',
message: `Version ${res.bundle.version} is available. Would you like to update now?`,
})

if (value)
CapacitorUpdater.set(res.bundle)

}
catch (error) {
console.log(error)
}
})

CapacitorUpdater.notifyAppReady();
console.log('CapacitorUpdater Loaded');

0 comments on commit bcac825

Please sign in to comment.