Skip to content

Commit c72e737

Browse files
authored
Merge pull request #1547 from numbersprotocol/develop
Bump version to 0.55.0
2 parents a6d1928 + d5a8a0e commit c72e737

File tree

6 files changed

+36
-22
lines changed

6 files changed

+36
-22
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.55.0 - 2022-04-22
9+
10+
### Added
11+
12+
- Add custom camera ux
13+
14+
### Changed
15+
16+
- Show buy NUM button at wallets page
17+
818
## 0.54.2 - 2022-04-21
919

1020
### Changed

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ android {
66
applicationId "io.numbersprotocol.capturelite"
77
minSdkVersion rootProject.ext.minSdkVersion
88
targetSdkVersion rootProject.ext.targetSdkVersion
9-
versionCode 372
10-
versionName "0.54.2"
9+
versionCode 380
10+
versionName "0.55.0"
1111
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1212
}
1313
buildFeatures {

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "capture-lite",
3-
"version": "0.54.2",
3+
"version": "0.55.0",
44
"author": "numbersprotocol",
55
"homepage": "https://numbersprotocol.io/",
66
"scripts": {

src/app/features/settings/go-pro/go-pro-media-viewer-with-native-player/go-pro-media-viewer-with-native-player.component.ts

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, OnDestroy, OnInit } from '@angular/core';
22
import { ActivatedRoute, Router } from '@angular/router';
3-
import { NavController } from '@ionic/angular';
3+
import { NavController, Platform } from '@ionic/angular';
44
import { PreviewVideo } from '@numbersprotocol/preview-video';
55
import { GoProFile } from '../go-pro-media-file';
66

@@ -19,7 +19,8 @@ export class GoProMediaViewerWithNativePlayerComponent
1919
constructor(
2020
private readonly route: ActivatedRoute,
2121
private readonly router: Router,
22-
private readonly navController: NavController
22+
private readonly navController: NavController,
23+
private readonly platform: Platform
2324
) {
2425
this.route.queryParams.subscribe(_ => {
2526
const state = this.router.getCurrentNavigation()?.extras.state;
@@ -31,22 +32,26 @@ export class GoProMediaViewerWithNativePlayerComponent
3132

3233
ngOnInit(): void {
3334
if (!this.mediaFile?.url) return;
34-
PreviewVideo.playFullScreenFromRemote({ url: this.mediaFile.url });
35-
PreviewVideo.addListener('iosPlayerDismissed', (_info: any) => {
36-
// eslint-disable-next-line no-console
37-
console.log('ITS WORKING');
38-
this.navController.back();
39-
});
35+
if (this.platform.is('hybrid')) {
36+
PreviewVideo.playFullScreenFromRemote({ url: this.mediaFile.url });
37+
this.onIOSPlayerDismissedListener = PreviewVideo.addListener(
38+
'iosPlayerDismissed',
39+
(_info: any) => this.navController.back()
40+
);
41+
}
4042
}
4143

4244
ngOnDestroy(): void {
43-
PreviewVideo.stopFullScreen();
44-
// TODO: check if .remove() really get called
45-
this.onIOSPlayerDismissedListener?.remove();
45+
if (this.platform.is('hybrid')) {
46+
PreviewVideo.stopFullScreen();
47+
this.onIOSPlayerDismissedListener?.remove();
48+
}
4649
}
4750

4851
dismiss() {
49-
PreviewVideo.stopFullScreen();
52+
if (this.platform.is('hybrid')) {
53+
PreviewVideo.stopFullScreen();
54+
}
5055
this.navController.back();
5156
}
5257
}

src/app/features/wallets/wallets.page.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,13 @@ <h3 class="num-text">NUM</h3>
4949
>
5050
</ion-row>
5151
<ion-row id="buy-deposit-withdraw-row">
52-
<!-- TODO: uncomment buy button when purchase operations are fixed -->
53-
<!-- <ion-button
52+
<ion-button
5453
(click)="onBuyNumBtnClicked()"
5554
id="buy-num-btn"
5655
size="small"
5756
class="num-operation-btn"
5857
>{{ t('buy') }} NUM</ion-button
59-
> -->
58+
>
6059
<ion-button
6160
class="deposit-withdraw-num-btn num-operation-btn"
6261
color="#7E7E7E"

0 commit comments

Comments
 (0)