Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Live Update plugin #801

Merged
merged 4 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions android/app/capacitor.build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies {
implementation project(':capawesome-capacitor-badge')
implementation project(':capawesome-capacitor-cloudinary')
implementation project(':capawesome-capacitor-file-picker')
implementation project(':capawesome-capacitor-live-update')
implementation project(':capawesome-capacitor-managed-configurations')
implementation project(':capawesome-capacitor-photo-editor')
implementation project(':capawesome-capacitor-screen-orientation')
Expand Down
18 changes: 11 additions & 7 deletions android/app/src/main/assets/capacitor.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@
"npmClient": "npm",
"webDir": "www",
"plugins": {
"SplashScreen": {
"launchShowDuration": 0
},
"PrivacyScreen": {
"enable": false,
"imageName": "Splash"
},
"Badge": {
"persist": true,
"autoClear": true
},
"DatetimePicker": {
"theme": "auto"
},
"LiveUpdate": {
"appId": "259cba88-20ee-48e4-8dd2-5829d5471702",
"autoCleanup": true
},
"PrivacyScreen": {
"enable": false,
"imageName": "Splash"
},
"SplashScreen": {
"launchShowDuration": 0
}
},
"cordova": {}
Expand Down
4 changes: 4 additions & 0 deletions android/app/src/main/assets/capacitor.plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
"pkg": "@capawesome/capacitor-file-picker",
"classpath": "io.capawesome.capacitorjs.plugins.filepicker.FilePickerPlugin"
},
{
"pkg": "@capawesome/capacitor-live-update",
"classpath": "io.capawesome.capacitorjs.plugins.liveupdate.LiveUpdatePlugin"
},
{
"pkg": "@capawesome/capacitor-managed-configurations",
"classpath": "io.capawesome.capacitorjs.plugins.managedconfigurations.ManagedConfigurationsPlugin"
Expand Down
3 changes: 3 additions & 0 deletions android/capacitor.settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ project(':capawesome-capacitor-cloudinary').projectDir = new File('../node_modul
include ':capawesome-capacitor-file-picker'
project(':capawesome-capacitor-file-picker').projectDir = new File('../node_modules/@capawesome/capacitor-file-picker/android')

include ':capawesome-capacitor-live-update'
project(':capawesome-capacitor-live-update').projectDir = new File('../node_modules/@capawesome/capacitor-live-update/android')

include ':capawesome-capacitor-managed-configurations'
project(':capawesome-capacitor-managed-configurations').projectDir = new File('../node_modules/@capawesome/capacitor-managed-configurations/android')

Expand Down
18 changes: 11 additions & 7 deletions capacitor.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@
"npmClient": "npm",
"webDir": "www",
"plugins": {
"SplashScreen": {
"launchShowDuration": 0
},
"PrivacyScreen": {
"enable": false,
"imageName": "Splash"
},
"Badge": {
"persist": true,
"autoClear": true
},
"DatetimePicker": {
"theme": "auto"
},
"LiveUpdate": {
"appId": "259cba88-20ee-48e4-8dd2-5829d5471702",
"autoCleanup": true
},
"PrivacyScreen": {
"enable": false,
"imageName": "Splash"
},
"SplashScreen": {
"launchShowDuration": 0
}
},
"cordova": {}
Expand Down
18 changes: 11 additions & 7 deletions ios/App/App/capacitor.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@
"npmClient": "npm",
"webDir": "www",
"plugins": {
"SplashScreen": {
"launchShowDuration": 0
},
"PrivacyScreen": {
"enable": false,
"imageName": "Splash"
},
"Badge": {
"persist": true,
"autoClear": true
},
"DatetimePicker": {
"theme": "auto"
},
"LiveUpdate": {
"appId": "259cba88-20ee-48e4-8dd2-5829d5471702",
"autoCleanup": true
},
"PrivacyScreen": {
"enable": false,
"imageName": "Splash"
},
"SplashScreen": {
"launchShowDuration": 0
}
},
"cordova": {}
Expand Down
1 change: 1 addition & 0 deletions ios/App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def capacitor_pods
pod 'CapawesomeCapacitorBadge', :path => '../../node_modules/@capawesome/capacitor-badge'
pod 'CapawesomeCapacitorCloudinary', :path => '../../node_modules/@capawesome/capacitor-cloudinary'
pod 'CapawesomeCapacitorFilePicker', :path => '../../node_modules/@capawesome/capacitor-file-picker'
pod 'CapawesomeCapacitorLiveUpdate', :path => '../../node_modules/@capawesome/capacitor-live-update'
pod 'CapawesomeCapacitorManagedConfigurations', :path => '../../node_modules/@capawesome/capacitor-managed-configurations'
pod 'CapawesomeCapacitorPhotoEditor', :path => '../../node_modules/@capawesome/capacitor-photo-editor'
pod 'CapawesomeCapacitorScreenOrientation', :path => '../../node_modules/@capawesome/capacitor-screen-orientation'
Expand Down
18 changes: 16 additions & 2 deletions ios/App/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PODS:
- Alamofire (5.9.0)
- Capacitor (5.3.0):
- CapacitorCordova
- CapacitorApp (5.0.6):
Expand Down Expand Up @@ -29,6 +30,10 @@ PODS:
- Cloudinary (= 3.3.0)
- CapawesomeCapacitorFilePicker (5.1.1-dev.fbc4f0a.1703929046):
- Capacitor
- CapawesomeCapacitorLiveUpdate (5.0.0):
- Alamofire (~> 5.9.0)
- Capacitor
- SSZipArchive (~> 2.2)
- CapawesomeCapacitorManagedConfigurations (5.0.0):
- Capacitor
- CapawesomeCapacitorPhotoEditor (5.0.0):
Expand All @@ -46,6 +51,7 @@ PODS:
- Cloudinary (3.3.0):
- Cloudinary/ios (= 3.3.0)
- Cloudinary/ios (3.3.0)
- SSZipArchive (2.4.3)

DEPENDENCIES:
- "Capacitor (from `../../node_modules/@capacitor/ios`)"
Expand All @@ -63,6 +69,7 @@ DEPENDENCIES:
- "CapawesomeCapacitorBadge (from `../../node_modules/@capawesome/capacitor-badge`)"
- "CapawesomeCapacitorCloudinary (from `../../node_modules/@capawesome/capacitor-cloudinary`)"
- "CapawesomeCapacitorFilePicker (from `../../node_modules/@capawesome/capacitor-file-picker`)"
- "CapawesomeCapacitorLiveUpdate (from `../../node_modules/@capawesome/capacitor-live-update`)"
- "CapawesomeCapacitorManagedConfigurations (from `../../node_modules/@capawesome/capacitor-managed-configurations`)"
- "CapawesomeCapacitorPhotoEditor (from `../../node_modules/@capawesome/capacitor-photo-editor`)"
- "CapawesomeCapacitorScreenOrientation (from `../../node_modules/@capawesome/capacitor-screen-orientation`)"
Expand All @@ -73,7 +80,9 @@ DEPENDENCIES:

SPEC REPOS:
trunk:
- Alamofire
- Cloudinary
- SSZipArchive

EXTERNAL SOURCES:
Capacitor:
Expand Down Expand Up @@ -106,6 +115,8 @@ EXTERNAL SOURCES:
:path: "../../node_modules/@capawesome/capacitor-cloudinary"
CapawesomeCapacitorFilePicker:
:path: "../../node_modules/@capawesome/capacitor-file-picker"
CapawesomeCapacitorLiveUpdate:
:path: "../../node_modules/@capawesome/capacitor-live-update"
CapawesomeCapacitorManagedConfigurations:
:path: "../../node_modules/@capawesome/capacitor-managed-configurations"
CapawesomeCapacitorPhotoEditor:
Expand All @@ -122,6 +133,7 @@ EXTERNAL SOURCES:
:path: "../../node_modules/@capawesome-team/capacitor-printer"

SPEC CHECKSUMS:
Alamofire: 02b772c9910e8eba1a079227c32fbd9e46c90a24
Capacitor: 1ac9165943bc4f2137642d218c5ba05df811de69
CapacitorApp: 024e1b1bea5f883d79f6330d309bc441c88ad04a
CapacitorCamera: 084b0b228bba7d00587910337b1c89e93b1d32ab
Expand All @@ -137,15 +149,17 @@ SPEC CHECKSUMS:
CapawesomeCapacitorBadge: 2b9919ea79b85bdc5455143cf6607c9e25bec9ae
CapawesomeCapacitorCloudinary: b26aa866e62b502e3c4dd2b2fc36446d34e28d4f
CapawesomeCapacitorFilePicker: 20fbe15f6cc9021d8a0061e1e180bd97ac6f8006
CapawesomeCapacitorLiveUpdate: ab492d67a8a4fd64bd94a949ddfbf8f86c155f34
CapawesomeCapacitorManagedConfigurations: 87db7aa30986c411b7a285d273b780acaca9b91a
CapawesomeCapacitorPhotoEditor: 26744e6317c4d781f6479336bd989dc3edb5498b
CapawesomeCapacitorScreenOrientation: 5b7cfb76348775e4b824bf460e5c52212b94c8d1
CapawesomeTeamCapacitorDatetimePicker: 7e264d511d7bef99abbc80adb360bb97d98d7f9d
CapawesomeTeamCapacitorFileCompressor: 4f7e0128e953b80dee40ed5edf86e035243f31ad
CapawesomeTeamCapacitorFileOpener: 066077ffd3c179311e2fc0e484125d68b55d45dc
CapawesomeTeamCapacitorPrinter: cf87f99164a86f5ff8ed53b47783e388bd2b4dcd
CapawesomeTeamCapacitorPrinter: 16901a3c7a02ca702b146c62d2ff217dd2210676
Cloudinary: c6a6a66b8b9aac18dce2ad54eb0243ea5e5119b8
SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef

PODFILE CHECKSUM: 897e2c21f1ae1673b8adc76ab4f747b09509cf57
PODFILE CHECKSUM: 2a23a17f6cb04ec563052a37dbda24e05137e960

COCOAPODS: 1.15.2
19 changes: 19 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@capawesome/capacitor-badge": "5.0.0",
"@capawesome/capacitor-cloudinary": "5.1.0",
"@capawesome/capacitor-file-picker": "5.1.1-dev.fbc4f0a.1703929046",
"@capawesome/capacitor-live-update": "5.0.0",
"@capawesome/capacitor-managed-configurations": "5.0.0",
"@capawesome/capacitor-photo-editor": "5.0.0",
"@capawesome/capacitor-screen-orientation": "5.0.0",
Expand Down
7 changes: 7 additions & 0 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ const routes: Routes = [
m => m.KeepAwakePageModule,
),
},
{
path: 'live-update',
loadChildren: () =>
import('./modules/live-update/live-update.module').then(
m => m.LiveUpdatePageModule,
),
},
{
path: 'managed-configurations',
loadChildren: () =>
Expand Down
4 changes: 4 additions & 0 deletions src/app/modules/home/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export class HomePage {
name: 'Keep Awake',
url: '/keep-awake',
},
{
name: 'Live Update',
url: '/live-update',
},
{
name: 'Managed Configuration',
url: '/managed-configurations',
Expand Down
17 changes: 17 additions & 0 deletions src/app/modules/live-update/live-update-routing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { LiveUpdatePage } from './live-update.page';

const routes: Routes = [
{
path: '',
component: LiveUpdatePage,
},
];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class LiveUpdatePageRoutingModule {}
12 changes: 12 additions & 0 deletions src/app/modules/live-update/live-update.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';

import { LiveUpdatePageRoutingModule } from './live-update-routing.module';

import { SharedModule } from '@app/shared';
import { LiveUpdatePage } from './live-update.page';

@NgModule({
imports: [SharedModule, LiveUpdatePageRoutingModule],
declarations: [LiveUpdatePage],
})
export class LiveUpdatePageModule {}
Loading