Skip to content

Commit 53b8e6a

Browse files
authored
Merge pull request #3346 from numbersprotocol/fix-resolve-camera-functionality
fix: resolve camera functionality Ref #3340 - Update @numbersprotocol/preview-camera from 0.0.19 to 0.0.20 - Upgrade androidx.window from 1.0.0-alpha09 to 1.4.0 via updated preview-camera plugin - Fix camera not opening issue caused by androidx.window dependency conflict - Resolve Google Play Console warning about outdated SDK version - Update app version to 0.103.1 across all platforms (Android: 1031, iOS: 1031) - Update CHANGELOG.md with comprehensive release notes and version links The preview-camera plugin now uses WindowMetricsCalculator instead of the deprecated WindowManager API, ensuring compatibility with modern Android versions and compliance with Google Play Store requirements. Fixes camera functionality that was broken by androidx.window version conflicts and addresses the Google Play Store deprecation warning for androidx.window:1.0.0-alpha09.
2 parents c12d6ba + 9d1ebe0 commit 53b8e6a

File tree

6 files changed

+30
-20
lines changed

6 files changed

+30
-20
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.103.1] - 2025-09-01
11+
12+
### Fixed
13+
14+
1. Fix camera not opening issue caused by androidx.window dependency conflict
15+
2. Update @numbersprotocol/preview-camera to version 0.0.20 with proper WindowMetricsCalculator implementation
16+
3. Resolve Google Play Console warning about outdated androidx.window:window SDK version
17+
18+
### Changed
19+
20+
1. Upgrade androidx.window from 1.0.0-alpha09 to 1.4.0 via updated preview-camera plugin
21+
2. Migrate from deprecated WindowManager to stable WindowMetricsCalculator API in preview-camera plugin
22+
1023
## [0.103.0] - 2025-08-27
1124

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

2469-
[unreleased]: https://github.com/numbersprotocol/capture-lite/compare/0.103.0...HEAD
2482+
[unreleased]: https://github.com/numbersprotocol/capture-lite/compare/0.103.1...HEAD
2483+
[0.103.1]: https://github.com/numbersprotocol/capture-lite/compare/0.103.0...0.103.1
24702484
[0.103.0]: https://github.com/numbersprotocol/capture-lite/compare/0.102.0...0.103.0
24712485
[0.102.0]: https://github.com/numbersprotocol/capture-lite/compare/0.101.1...0.102.0
24722486
[0.101.1]: https://github.com/numbersprotocol/capture-lite/compare/0.101.0...0.101.1

android/app/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "io.numbersprotocol.capturelite"
88
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
10-
versionCode 1030
11-
versionName "0.103.0"
10+
versionCode 1031
11+
versionName "0.103.1"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1313
}
1414
buildFeatures {
@@ -38,9 +38,6 @@ dependencies {
3838
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
3939
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
4040
implementation project(':capacitor-cordova-android-plugins')
41-
42-
// Override outdated androidx.window:window dependency used by preview-camera plugin
43-
implementation "androidx.window:window:$androidxWindowVersion"
4441
}
4542

4643
apply from: 'capacitor.build.gradle'

android/variables.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ ext {
99
androidxFragmentVersion = '1.8.4'
1010
coreSplashScreenVersion = '1.0.1'
1111
androidxWebkitVersion = '1.12.1'
12-
androidxWindowVersion = '1.2.0'
1312
junitVersion = '4.13.2'
1413
androidxJunitVersion = '1.2.1'
1514
androidxEspressoCoreVersion = '3.6.1'

ios/App/App.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,13 +388,13 @@
388388
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
389389
CODE_SIGN_IDENTITY = "iPhone Distribution";
390390
CODE_SIGN_STYLE = Manual;
391-
CURRENT_PROJECT_VERSION = 1030;
391+
CURRENT_PROJECT_VERSION = 1031;
392392
DEVELOPMENT_TEAM = G7NB5YCKAP;
393393
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = G7NB5YCKAP;
394394
INFOPLIST_FILE = App/Info.plist;
395395
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
396396
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
397-
MARKETING_VERSION = 0.103.0;
397+
MARKETING_VERSION = 0.103.1;
398398
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
399399
PRODUCT_BUNDLE_IDENTIFIER = io.numbersprotocol.capturelite;
400400
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -415,13 +415,13 @@
415415
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
416416
CODE_SIGN_IDENTITY = "iPhone Distribution";
417417
CODE_SIGN_STYLE = Manual;
418-
CURRENT_PROJECT_VERSION = 1030;
418+
CURRENT_PROJECT_VERSION = 1031;
419419
DEVELOPMENT_TEAM = G7NB5YCKAP;
420420
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = G7NB5YCKAP;
421421
INFOPLIST_FILE = App/Info.plist;
422422
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
423423
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
424-
MARKETING_VERSION = 0.103.0;
424+
MARKETING_VERSION = 0.103.1;
425425
PRODUCT_BUNDLE_IDENTIFIER = io.numbersprotocol.capturelite;
426426
PRODUCT_NAME = "$(TARGET_NAME)";
427427
PROVISIONING_PROFILE_SPECIFIER = NumbersAppDistributionV6;

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "capture-lite",
3-
"version": "0.103.0",
3+
"version": "0.103.1",
44
"author": "numbersprotocol",
55
"homepage": "https://numbersprotocol.io/",
66
"scripts": {
@@ -62,7 +62,7 @@
6262
"@ngx-formly/core": "^5.10.22",
6363
"@ngx-formly/material": "^5.10.22",
6464
"@ngx-formly/schematics": "^5.10.22",
65-
"@numbersprotocol/preview-camera": "github:numbersprotocol/preview-camera#0.0.19",
65+
"@numbersprotocol/preview-camera": "github:numbersprotocol/preview-camera#0.0.20",
6666
"@numbersprotocol/preview-video": "github:numbersprotocol/preview-video#0.0.5",
6767
"@pqina/angular-pintura": "^8.44.1",
6868
"@pqina/pintura": "^8.44.1",

0 commit comments

Comments
 (0)