Skip to content

Commit

Permalink
Merge branch 'release-0.69.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
bafu committed Nov 9, 2022
2 parents f10d995 + fa2e1a4 commit 653c62b
Show file tree
Hide file tree
Showing 19 changed files with 86 additions and 39 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

To check the difference between the last releaes and the latest dev status, click the link above.

## [0.69.1] - 2022-11-08

### Fixed

1. Reload only iframe without feature creators' section (#2290)
1. Update camera's HD icon from LOW/HD to HD with/without background (#2264)
1. Fix the wording of asset listing target from CaptureClub to Capture App (#2276)
1. Improve the wording of canNotPerformMintAndShareAction (#2277)

## [0.69.0] - 2022-11-01

### Changed
Expand Down Expand Up @@ -1892,7 +1901,8 @@ This is the first release! _Capture Lite_ is a cross-platform app adapted from [
- Web - see the demo [here](https://github.com/numbersprotocol/capture-lite#demo-app)
- Android - the APK file `app-debug.apk` is attached to this release

[unreleased]: https://github.com/numbersprotocol/capture-lite/compare/0.69.0...HEAD
[unreleased]: https://github.com/numbersprotocol/capture-lite/compare/0.69.1...HEAD
[0.69.1]: https://github.com/numbersprotocol/capture-lite/compare/0.69.0...0.69.1
[0.69.0]: https://github.com/numbersprotocol/capture-lite/compare/0.68.0...0.69.0
[0.68.0]: https://github.com/numbersprotocol/capture-lite/compare/0.67.1...0.68.0
[0.67.1]: https://github.com/numbersprotocol/capture-lite/compare/0.67.0...0.67.1
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "io.numbersprotocol.capturelite"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 450
versionName "0.69.0"
versionCode 451
versionName "0.69.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
Expand Down
4 changes: 2 additions & 2 deletions ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.7;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 0.69.0;
MARKETING_VERSION = 0.69.1;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
PRODUCT_BUNDLE_IDENTIFIER = io.numbersprotocol.capturelite;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -397,7 +397,7 @@
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.7;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 0.69.0;
MARKETING_VERSION = 0.69.1;
PRODUCT_BUNDLE_IDENTIFIER = io.numbersprotocol.capturelite;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = NumbersAppDistributionV4;
Expand Down
2 changes: 1 addition & 1 deletion ios/App/ExportOptions.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>provisioningProfiles</key>
<dict>
<key>io.numbersprotocol.capturelite</key>
<string>NumbersAppDistributionV2</string>
<string>NumbersAppDistributionV4</string>
</dict>
<key>signingCertificate</key>
<string>Apple Distribution</string>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capture-lite",
"version": "0.69.0",
"version": "0.69.1",
"author": "numbersprotocol",
"homepage": "https://numbersprotocol.io/",
"scripts": {
Expand Down
7 changes: 2 additions & 5 deletions src/app/features/home/custom-camera/custom-camera.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ mat-icon.flash-camera-button {

mat-icon.camera-quality-button {
position: absolute;
top: 4px;
left: 48px;
font-size: 56px;
width: 56px;
height: 56px;
top: 16px;
left: 64px;
}

mat-icon.close-camera-button {
Expand Down
6 changes: 2 additions & 4 deletions src/app/features/home/details/actions/actions.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class ActionsPage {
concatMap(([response, cid]) => {
if (response.count > 0) {
throw new Error(
this.translocoService.translate('message.hasListedInCaptureClub')
this.translocoService.translate('message.hasListedInCaptureApp')
);
}
return of(cid);
Expand All @@ -107,9 +107,7 @@ export class ActionsPage {
);
if (listedAsSeries) {
throw new Error(
this.translocoService.translate(
'message.hasListedInCaptureClub'
)
this.translocoService.translate('message.hasListedInCaptureApp')
);
}
if (response.next == null) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/home/details/details.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export class DetailsPage {
switchMap(response => {
if (response.count === 0 || !response.results[0].enabled) {
throw new Error(
this.translocoService.translate('message.notListedInCaptureClub')
this.translocoService.translate('message.notListedInCaptureApp')
);
}
return this.diaBackendStoreService.unpublish$(response.results[0].id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"
>
<iframe
[src]="bubbleIframeUrlWithCachedJWTToken | safeResourceUrl"
[src]="bubbleIframeUrlWithCachedJWTToken"
class="bubble-iframe"
></iframe>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { Component } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { combineLatest } from 'rxjs';
import { map } from 'rxjs/operators';
import { DiaBackendAuthService } from '../../../../shared/dia-backend/auth/dia-backend-auth.service';
import { BUBBLE_IFRAME_URL } from '../../../../shared/dia-backend/secret';
import { IframeService } from '../../../../shared/iframe/iframe.service';
import { NetworkService } from '../../../../shared/network/network.service';

@Component({
Expand All @@ -10,17 +13,22 @@ import { NetworkService } from '../../../../shared/network/network.service';
styleUrls: ['./explore-tab.component.scss'],
})
export class ExploreTabComponent {
readonly bubbleIframeUrlWithCachedJWTToke$ =
this.diaBackendAuthService.cachedQueryJWTToken$.pipe(
map(token => {
return `${BUBBLE_IFRAME_URL}/?token=${token.access}&refresh_token=${token.refresh}`;
})
);
readonly bubbleIframeUrlWithCachedJWTToke$ = combineLatest([
this.diaBackendAuthService.cachedQueryJWTToken$,
this.iframeService.exploreTabRefreshRequested$,
]).pipe(
map(([token, _]) => {
const url = `${BUBBLE_IFRAME_URL}/?token=${token.access}&refresh_token=${token.refresh}`;
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
})
);

readonly networkConnected$ = this.networkService.connected$;

constructor(
private readonly networkService: NetworkService,
private readonly diaBackendAuthService: DiaBackendAuthService
private readonly diaBackendAuthService: DiaBackendAuthService,
private readonly iframeService: IframeService,
private readonly sanitizer: DomSanitizer
) {}
}
7 changes: 5 additions & 2 deletions src/app/features/home/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { DiaBackendService } from '../../shared/dia-backend/service/dia-backend-
import { DiaBackendTransactionRepository } from '../../shared/dia-backend/transaction/dia-backend-transaction-repository.service';
import { DiaBackendWalletService } from '../../shared/dia-backend/wallet/dia-backend-wallet.service';
import { ErrorService } from '../../shared/error/error.service';
import { IframeService } from '../../shared/iframe/iframe.service';
import { MigrationService } from '../../shared/migration/service/migration.service';
import { OnboardingService } from '../../shared/onboarding/onboarding.service';
import { UserGuideService } from '../../shared/user-guide/user-guide.service';
Expand Down Expand Up @@ -85,7 +86,8 @@ export class HomePage {
private readonly goProBluetoothService: GoProBluetoothService,
private readonly diaBackendWalletService: DiaBackendWalletService,
private readonly userGuideService: UserGuideService,
private readonly platform: Platform
private readonly platform: Platform,
private readonly iframeService: IframeService
) {
this.downloadExpiredPostCaptures();
}
Expand Down Expand Up @@ -344,7 +346,8 @@ export class HomePage {
// eslint-disable-next-line class-methods-use-this
navigateToExploreTab() {
if (this.selectedTabIndex === 0) {
window.location.reload();
// window.location.reload();
this.iframeService.refreshExploreTabIframe();
}
}

Expand Down
16 changes: 16 additions & 0 deletions src/app/shared/iframe/iframe.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';

import { IframeService } from './iframe.service';

describe('IframeService', () => {
let service: IframeService;

beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(IframeService);
});

it('should be created', () => {
expect(service).toBeTruthy();
});
});
13 changes: 13 additions & 0 deletions src/app/shared/iframe/iframe.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';

@Injectable({
providedIn: 'root',
})
export class IframeService {
readonly exploreTabRefreshRequested$ = new BehaviorSubject(new Date());

refreshExploreTabIframe() {
this.exploreTabRefreshRequested$.next(new Date());
}
}
2 changes: 2 additions & 0 deletions src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { CapacitorPluginsModule } from './capacitor-plugins/capacitor-plugins.mo
import { ContactSelectionDialogComponent } from './contact-selection-dialog/contact-selection-dialog.component';
import { FriendInvitationDialogComponent } from './contact-selection-dialog/friend-invitation-dialog/friend-invitation-dialog.component';
import { ExportPrivateKeyModalComponent } from './export-private-key-modal/export-private-key-modal.component';
import { IframeService } from './iframe/iframe.service';
import { MaterialModule } from './material/material.module';
import { MediaRebrandedComponent } from './media/component/media-rebranded.component';
import { MediaComponent } from './media/component/media.component';
Expand Down Expand Up @@ -60,6 +61,7 @@ const providers = [
GoProWifiService,
GoProMediaService,
UserGuideService,
IframeService,
];

@NgModule({
Expand Down
6 changes: 3 additions & 3 deletions src/assets/i18n/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@
"mintNftAlert": "Once the NFT is minted, photo and its information can be accessed publicly. Do you still want to proceed?",
"sentSuccessfully": "Sent Successfully",
"confirmCopyPrivateKey": "Warning: Please do not expose your private key to anyone. Lost of private key may cause your account to be lost permanently.",
"hasListedInCaptureClub": "This asset has already been listed in CaptureClub.",
"notListedInCaptureClub": "This asset is not listed in CaptureClub"
"hasListedInCaptureApp": "This asset has already been listed in Capture App.",
"notListedInCaptureApp": "This asset is not listed in Capture App"
},
"error": {
"validationError": "Invalid operation. Please check your input again.",
Expand Down Expand Up @@ -279,7 +279,7 @@
"remove": "Remove"
},
"error": {
"canNotPerformMintAndShareAction": "Can not perform Mint & Share action",
"canNotPerformMintAndShareAction": "This asset is minted so that can not perform Mint & Share action",
"canNotPerformOpenNetworkActions": "Can not perform open Network Actions page",
"transferOwnershipActionIsUnavailable": "Transfer ownership action is unavailable. Please try again later.",
"viewOnCaptureClubIsUnavailable": "View on CaptureClub action is unavailable. Please try again later.",
Expand Down
6 changes: 3 additions & 3 deletions src/assets/i18n/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@
"mintNftAlert": "NFT 代幣鑄造後,影像以及所有資訊都將可被公開檢視。確定要繼續嗎?",
"sentSuccessfully": "成功送出",
"confirmCopyPrivateKey": "警告:請不要向任何人揭露您的金鑰,未保管好金鑰可能導致您永遠失去您的帳號。",
"hasListedInCaptureClub": "該資產已在 CaptureClub 上架。",
"notListedInCaptureClub": "該資產未上架 CaptureClub"
"hasListedInCaptureApp": "該資產已在 Capture App 上架。",
"notListedInCaptureApp": "該資產未上架 Capture App"
},
"error": {
"validationError": "操作或輸入有誤,請確認您的操作正確。",
Expand Down Expand Up @@ -279,7 +279,7 @@
"remove": "移除"
},
"error": {
"canNotPerformMintAndShareAction": "無法執行鑄造及分享",
"canNotPerformMintAndShareAction": "該資產已鑄造完成,無法再次鑄造與分享",
"canNotPerformOpenNetworkActions": "無法打開網絡動作頁面",
"transferOwnershipActionIsUnavailable": "暫時無法轉換所有權,請稍後再試。",
"viewOnCaptureClubIsUnavailable": "暫時無法在 CaptureClub 觀看,請稍後再試。",
Expand Down
4 changes: 2 additions & 2 deletions src/assets/images/icons/capture-rebrand-camera-hq.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/assets/images/icons/capture-rebrand-camera-low.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 653c62b

Please sign in to comment.