@situm/cordova 3.1.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG_UNRELEASED.md +2 -4
- package/README.md +320 -170
- package/example/.browserslistrc +16 -0
- package/example/.editorconfig +16 -0
- package/example/.eslintrc.json +46 -0
- package/example/README.md +163 -0
- package/example/android/app/build.gradle +54 -0
- package/example/android/app/capacitor.build.gradle +27 -0
- package/example/android/app/proguard-rules.pro +21 -0
- package/example/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +26 -0
- package/example/android/app/src/main/AndroidManifest.xml +42 -0
- package/example/android/app/src/main/java/com/situm/capacitor_example/MainActivity.java +5 -0
- package/example/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/example/android/app/src/main/res/drawable/splash.png +0 -0
- package/example/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
- package/example/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
- package/example/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
- package/example/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
- package/example/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
- package/example/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
- package/example/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
- package/example/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
- package/example/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
- package/example/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
- package/example/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
- package/example/android/app/src/main/res/layout/activity_main.xml +12 -0
- package/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/values/ic_launcher_background.xml +4 -0
- package/example/android/app/src/main/res/values/strings.xml +7 -0
- package/example/android/app/src/main/res/values/styles.xml +22 -0
- package/example/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/example/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +18 -0
- package/example/android/build.gradle +29 -0
- package/example/android/capacitor.settings.gradle +27 -0
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/example/android/gradle.properties +22 -0
- package/example/android/gradlew +244 -0
- package/example/android/gradlew.bat +92 -0
- package/example/android/settings.gradle +5 -0
- package/example/android/variables.gradle +16 -0
- package/example/angular.json +145 -0
- package/example/capacitor.config.json +1 -0
- package/example/capacitor.config.ts +12 -0
- package/example/docs/assets/sdk_preview.png +0 -0
- package/example/docs/assets/wyf_preview.png +0 -0
- package/example/ionic.config.json +7 -0
- package/example/ios/App/App/AppDelegate.swift +49 -0
- package/example/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/example/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/example/ios/App/App/Assets.xcassets/Contents.json +6 -0
- package/example/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
- package/example/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/example/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/example/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/example/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
- package/example/ios/App/App/Base.lproj/Main.storyboard +19 -0
- package/example/ios/App/App/Info.plist +55 -0
- package/example/ios/App/App.xcodeproj/project.pbxproj +408 -0
- package/example/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/example/ios/App/App.xcworkspace/contents.xcworkspacedata +10 -0
- package/example/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/example/ios/App/Podfile +32 -0
- package/example/karma.conf.js +44 -0
- package/example/package-lock.json +17234 -0
- package/example/package.json +73 -0
- package/example/src/app/app.component.html +3 -0
- package/example/src/app/app.component.scss +0 -0
- package/example/src/app/app.component.spec.ts +16 -0
- package/example/src/app/app.component.ts +12 -0
- package/example/src/app/app.routes.ts +8 -0
- package/example/src/app/sdk/sdk.page.html +109 -0
- package/example/src/app/sdk/sdk.page.scss +24 -0
- package/example/src/app/sdk/sdk.page.spec.ts +18 -0
- package/example/src/app/sdk/sdk.page.ts +440 -0
- package/example/src/app/tabs/tabs.page.html +13 -0
- package/example/src/app/tabs/tabs.page.scss +1 -0
- package/example/src/app/tabs/tabs.page.spec.ts +27 -0
- package/example/src/app/tabs/tabs.page.ts +19 -0
- package/example/src/app/tabs/tabs.routes.ts +31 -0
- package/example/src/app/utils/request.permissions.ts +68 -0
- package/example/src/app/wyf/wyf.page.html +22 -0
- package/example/src/app/wyf/wyf.page.scss +8 -0
- package/example/src/app/wyf/wyf.page.spec.ts +18 -0
- package/example/src/app/wyf/wyf.page.ts +47 -0
- package/example/src/assets/icon/favicon.png +0 -0
- package/example/src/assets/icon/situm-logo-whitebg.svg +67 -0
- package/example/src/assets/shapes.svg +1 -0
- package/example/src/constants.ts.example +6 -0
- package/example/src/environments/environment.prod.ts +3 -0
- package/example/src/environments/environment.ts +16 -0
- package/example/src/global.scss +26 -0
- package/example/src/index.html +26 -0
- package/example/src/main.ts +20 -0
- package/example/src/polyfills.ts +55 -0
- package/example/src/test.ts +14 -0
- package/example/src/theme/variables.scss +244 -0
- package/example/src/zone-flags.ts +6 -0
- package/example/tsconfig.app.json +15 -0
- package/example/tsconfig.json +30 -0
- package/example/tsconfig.spec.json +18 -0
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/www/map-view-controller.js +1 -1
- package/www/map-view.js +3 -3
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "situm-capacitor-example",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"author": "Ionic Framework",
|
|
5
|
+
"homepage": "https://ionicframework.com/",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"ng": "ng",
|
|
8
|
+
"start": "ng serve",
|
|
9
|
+
"build": "ng build",
|
|
10
|
+
"watch": "ng build --watch --configuration development",
|
|
11
|
+
"test": "ng test",
|
|
12
|
+
"lint": "ng lint"
|
|
13
|
+
},
|
|
14
|
+
"private": true,
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@angular/animations": "^17.0.2",
|
|
17
|
+
"@angular/common": "^17.0.2",
|
|
18
|
+
"@angular/compiler": "^17.0.2",
|
|
19
|
+
"@angular/core": "^17.0.2",
|
|
20
|
+
"@angular/forms": "^17.0.2",
|
|
21
|
+
"@angular/platform-browser": "^17.0.2",
|
|
22
|
+
"@angular/platform-browser-dynamic": "^17.0.2",
|
|
23
|
+
"@angular/router": "^17.0.2",
|
|
24
|
+
"@capacitor/android": "5.5.1",
|
|
25
|
+
"@capacitor/app": "5.0.6",
|
|
26
|
+
"@capacitor/camera": "^5.0.7",
|
|
27
|
+
"@capacitor/core": "^5.5.1",
|
|
28
|
+
"@capacitor/filesystem": "^5.1.4",
|
|
29
|
+
"@capacitor/geolocation": "^5.0.6",
|
|
30
|
+
"@capacitor/haptics": "5.0.6",
|
|
31
|
+
"@capacitor/ios": "5.5.1",
|
|
32
|
+
"@capacitor/keyboard": "5.0.6",
|
|
33
|
+
"@capacitor/preferences": "^5.0.6",
|
|
34
|
+
"@capacitor/status-bar": "5.0.6",
|
|
35
|
+
"@ionic/angular": "^7.5.0",
|
|
36
|
+
"@situm/cordova": "file:..",
|
|
37
|
+
"cordova.plugins.diagnostic": "^7.1.4",
|
|
38
|
+
"ionicons": "^7.2.1",
|
|
39
|
+
"rxjs": "^7.8.1",
|
|
40
|
+
"tslib": "^2.3.0",
|
|
41
|
+
"zone.js": "~0.14.2"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@angular-devkit/build-angular": "^17.0.0",
|
|
45
|
+
"@angular-eslint/builder": "^17.0.0",
|
|
46
|
+
"@angular-eslint/eslint-plugin": "^17.0.0",
|
|
47
|
+
"@angular-eslint/eslint-plugin-template": "^17.0.0",
|
|
48
|
+
"@angular-eslint/schematics": "^17.0.0",
|
|
49
|
+
"@angular-eslint/template-parser": "^17.0.0",
|
|
50
|
+
"@angular/cli": "^17.0.0",
|
|
51
|
+
"@angular/compiler-cli": "^17.0.2",
|
|
52
|
+
"@angular/language-service": "^17.0.2",
|
|
53
|
+
"@capacitor/cli": "^5.5.1",
|
|
54
|
+
"@ionic/angular-toolkit": "^9.0.0",
|
|
55
|
+
"@types/jasmine": "~5.1.0",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
57
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
58
|
+
"eslint": "^7.26.0",
|
|
59
|
+
"eslint-plugin-import": "2.22.1",
|
|
60
|
+
"eslint-plugin-jsdoc": "30.7.6",
|
|
61
|
+
"eslint-plugin-prefer-arrow": "1.2.2",
|
|
62
|
+
"jasmine-core": "~5.1.0",
|
|
63
|
+
"jasmine-spec-reporter": "~5.0.0",
|
|
64
|
+
"karma": "~6.4.0",
|
|
65
|
+
"karma-chrome-launcher": "~3.2.0",
|
|
66
|
+
"karma-coverage": "~2.2.0",
|
|
67
|
+
"karma-jasmine": "~5.1.0",
|
|
68
|
+
"karma-jasmine-html-reporter": "~2.1.0",
|
|
69
|
+
"ts-node": "^8.3.0",
|
|
70
|
+
"typescript": "~5.2.2"
|
|
71
|
+
},
|
|
72
|
+
"description": "An Ionic project"
|
|
73
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
+
import { AppComponent } from './app.component';
|
|
4
|
+
|
|
5
|
+
describe('AppComponent', () => {
|
|
6
|
+
it('should create the app', () => {
|
|
7
|
+
TestBed.overrideComponent(AppComponent, {
|
|
8
|
+
add: {
|
|
9
|
+
imports: [RouterTestingModule]
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
const fixture = TestBed.createComponent(AppComponent);
|
|
13
|
+
const app = fixture.componentInstance;
|
|
14
|
+
expect(app).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { IonApp, IonRouterOutlet } from '@ionic/angular/standalone';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-root',
|
|
6
|
+
templateUrl: 'app.component.html',
|
|
7
|
+
standalone: true,
|
|
8
|
+
imports: [IonApp, IonRouterOutlet],
|
|
9
|
+
})
|
|
10
|
+
export class AppComponent {
|
|
11
|
+
constructor() {}
|
|
12
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<ion-header [translucent]="true">
|
|
2
|
+
<ion-toolbar mode="md">
|
|
3
|
+
<ion-thumbnail slot="start">
|
|
4
|
+
<img src="../../assets/icon/situm-logo-whitebg.svg" />
|
|
5
|
+
</ion-thumbnail>
|
|
6
|
+
<ion-title slot="start"> Situm Capacitor Example </ion-title>
|
|
7
|
+
</ion-toolbar>
|
|
8
|
+
</ion-header>
|
|
9
|
+
|
|
10
|
+
<ion-content [fullscreen]="true">
|
|
11
|
+
<ion-card>
|
|
12
|
+
<ion-card-header>
|
|
13
|
+
<ion-card-title mode="md">
|
|
14
|
+
<ion-icon name="locate" color="primary" />
|
|
15
|
+
Positioning
|
|
16
|
+
</ion-card-title>
|
|
17
|
+
</ion-card-header>
|
|
18
|
+
|
|
19
|
+
<ion-card-content>
|
|
20
|
+
<ion-row>
|
|
21
|
+
<ion-button
|
|
22
|
+
size="small"
|
|
23
|
+
(click)="startPositioning()"
|
|
24
|
+
[disabled]="positioning"
|
|
25
|
+
>
|
|
26
|
+
startPositioning()
|
|
27
|
+
</ion-button>
|
|
28
|
+
<ion-button
|
|
29
|
+
size="small"
|
|
30
|
+
(click)="stopPositioning()"
|
|
31
|
+
[disabled]="!positioning"
|
|
32
|
+
>
|
|
33
|
+
stopPositioning()
|
|
34
|
+
</ion-button>
|
|
35
|
+
</ion-row>
|
|
36
|
+
</ion-card-content>
|
|
37
|
+
</ion-card>
|
|
38
|
+
|
|
39
|
+
<ion-card>
|
|
40
|
+
<ion-card-header>
|
|
41
|
+
<ion-card-title mode="md">
|
|
42
|
+
<ion-icon name="cloud-download" color="primary" />
|
|
43
|
+
Fetch Resources
|
|
44
|
+
</ion-card-title>
|
|
45
|
+
</ion-card-header>
|
|
46
|
+
|
|
47
|
+
<ion-card-content>
|
|
48
|
+
<ion-button size="small" (click)="fetchBuildingInfo()">
|
|
49
|
+
fetchBuildingInfo()
|
|
50
|
+
</ion-button>
|
|
51
|
+
<ion-button size="small" (click)="fetchPois()"> fetchPois() </ion-button>
|
|
52
|
+
<ion-button size="small" (click)="fetchPoiCategories()">
|
|
53
|
+
fetchPoiCategories()
|
|
54
|
+
</ion-button>
|
|
55
|
+
<ion-button size="small" (click)="fetchGeofences()">
|
|
56
|
+
fetchGeofences()
|
|
57
|
+
</ion-button>
|
|
58
|
+
<ion-button size="small" (click)="invalidateCache()">
|
|
59
|
+
invalidateCache()
|
|
60
|
+
</ion-button>
|
|
61
|
+
</ion-card-content>
|
|
62
|
+
</ion-card>
|
|
63
|
+
|
|
64
|
+
<ion-card>
|
|
65
|
+
<ion-card-header>
|
|
66
|
+
<ion-card-title mode="md">
|
|
67
|
+
<ion-icon name="map" color="primary" />
|
|
68
|
+
Cartography
|
|
69
|
+
</ion-card-title>
|
|
70
|
+
</ion-card-header>
|
|
71
|
+
|
|
72
|
+
<ion-card-content>
|
|
73
|
+
<ion-card>
|
|
74
|
+
<ion-item id="open-picker" *ngIf="!currentPoi"> Pick a POI </ion-item>
|
|
75
|
+
<ion-item id="open-picker" *ngIf="currentPoi">
|
|
76
|
+
{{ currentPoi.identifier }} - {{ currentPoi.poiName }}
|
|
77
|
+
</ion-item>
|
|
78
|
+
</ion-card>
|
|
79
|
+
<ion-picker
|
|
80
|
+
trigger="open-picker"
|
|
81
|
+
[columns]="pickerColumns"
|
|
82
|
+
[buttons]="pickerButtons"
|
|
83
|
+
/>
|
|
84
|
+
<ion-row class="ion-justify-content-center">
|
|
85
|
+
<ion-button size="small" (click)="selectPoi()">
|
|
86
|
+
selectPoi()
|
|
87
|
+
</ion-button>
|
|
88
|
+
<ion-button size="small" (click)="navigateToPoi()">
|
|
89
|
+
navigateToPoi()
|
|
90
|
+
</ion-button>
|
|
91
|
+
</ion-row>
|
|
92
|
+
</ion-card-content>
|
|
93
|
+
</ion-card>
|
|
94
|
+
|
|
95
|
+
<ion-card>
|
|
96
|
+
<ion-card-content>
|
|
97
|
+
<ion-item>
|
|
98
|
+
<ion-label>{{ currentStatus }}</ion-label>
|
|
99
|
+
</ion-item>
|
|
100
|
+
|
|
101
|
+
<ion-textarea
|
|
102
|
+
class="custom"
|
|
103
|
+
[readonly]="true"
|
|
104
|
+
placeholder="{{ currentPositioningInfo }}"
|
|
105
|
+
style="height: 60vh"
|
|
106
|
+
/>
|
|
107
|
+
</ion-card-content>
|
|
108
|
+
</ion-card>
|
|
109
|
+
</ion-content>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
ion-toolbar {
|
|
2
|
+
align-items: center;
|
|
3
|
+
--padding-start: 20px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
ion-thumbnail {
|
|
7
|
+
--size: 30px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
ion-button {
|
|
11
|
+
color: white;
|
|
12
|
+
text-transform: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
ion-item.custom {
|
|
16
|
+
--padding-start: 10px;
|
|
17
|
+
--padding-end: 0px;
|
|
18
|
+
--margin-end: 0px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
ion-textarea.custom {
|
|
22
|
+
--placeholder-color: black;
|
|
23
|
+
--placeholder-opacity: 1;
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SDKPage } from './sdk.page';
|
|
4
|
+
|
|
5
|
+
describe('SDKPage', () => {
|
|
6
|
+
let component: SDKPage;
|
|
7
|
+
let fixture: ComponentFixture<SDKPage>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
fixture = TestBed.createComponent(SDKPage);
|
|
11
|
+
component = fixture.componentInstance;
|
|
12
|
+
fixture.detectChanges();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it('should create', () => {
|
|
16
|
+
expect(component).toBeTruthy();
|
|
17
|
+
});
|
|
18
|
+
});
|