Skip to content

Commit 83fcde4

Browse files
metsmakristelmerilain
authored andcommitted
Update version number and packages
IB-8447, IB-8528, IB-8527, IB-8433, IB-8306, IB-8529 Signed-off-by: Raul Metsma <[email protected]>
1 parent efb30bc commit 83fcde4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+3207
-3230
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ jobs:
8585
- name: Prepare vcpkg
8686
uses: lukka/run-vcpkg@v11
8787
with:
88-
vcpkgGitCommitId: 5ee5eee0d3e9c6098b24d263e9099edcdcef6631
88+
vcpkgGitCommitId: 031ad89ce6c575df35a8e58707ad2c898446c63e
8989
vcpkgJsonGlob: ./vcpkg.json
9090
runVcpkgInstall: true
9191
env:
9292
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
9393
- name: Build
9494
run: |
95-
cmake --preset ${{ matrix.target }} "-GUnix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=libdigidocpp.${{ matrix.target }}
95+
cmake --preset ${{ matrix.target }} "-GUnix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo
9696
cmake --build --preset ${{ matrix.target }}
9797
cmake --build --preset ${{ matrix.target }} --target install/strip
9898
zip -q -r libdigidocpp.${{ matrix.target }}.zip libdigidocpp.${{ matrix.target }}
@@ -161,15 +161,12 @@ jobs:
161161
path: libdigidocpp*.*
162162
windows:
163163
name: Build on Windows
164-
runs-on: ${{ matrix.image }}
164+
runs-on: windows-2025
165165
strategy:
166166
matrix:
167167
toolset: [143]
168168
platform: [x86, x64, arm64]
169169
include:
170-
- toolset: 143
171-
image: windows-2022
172-
vcvars: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvarsall.bat"
173170
- platform: x86
174171
setenv: amd64_x86
175172
- platform: x64
@@ -185,18 +182,15 @@ jobs:
185182
- name: Prepare vcpkg
186183
uses: lukka/run-vcpkg@v11
187184
with:
188-
vcpkgGitCommitId: 5ee5eee0d3e9c6098b24d263e9099edcdcef6631
185+
vcpkgGitCommitId: 031ad89ce6c575df35a8e58707ad2c898446c63e
189186
vcpkgJsonGlob: ./vcpkg.json
190187
runVcpkgInstall: true
191188
runVcpkgFormatString: "[`install`, `--recurse`, `--clean-after-build`, `--x-install-root`, `$[env.VCPKG_INSTALLED_DIR]`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `tests`]"
192189
env:
193190
VCPKG_DEFAULT_TRIPLET: ${{ matrix.platform }}-windows
194191
VCPKG_INSTALLED_DIR: ${{ github.workspace }}/vcpkg_installed_${{ matrix.platform }}
195192
- name: Install dependencies
196-
run: |
197-
choco install doxygen.install -y > $null
198-
Invoke-WebRequest -UserAgent "Wget" "https://sourceforge.net/projects/swig/files/swigwin/swigwin-4.2.1/swigwin-4.2.1.zip/download" -OutFile swig.zip
199-
tar xf swig.zip
193+
run: winget install --silent --accept-source-agreements --accept-package-agreements swig doxygen
200194
- uses: actions/setup-java@v4
201195
with:
202196
distribution: 'temurin'
@@ -208,8 +202,9 @@ jobs:
208202
architecture: ${{ matrix.platform }}
209203
- name: Build
210204
run: |
211-
& "${{ matrix.vcvars }}" ${{ matrix.setenv }} "&&" pwsh build.ps1 `
212-
-swig ${{ github.workspace }}/swigwin-4.2.1/swig.exe `
205+
$swig = (Get-Item "$env:LOCALAPPDATA\Microsoft\WinGet\Links\swig.exe").Target
206+
& "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvarsall.bat" ${{ matrix.setenv }} "&&" pwsh build.ps1 `
207+
-swig $swig `
213208
-doxygen "C:/Program files/doxygen/bin/doxygen.exe" `
214209
-boost
215210
- name: Archive artifacts

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ endif()
55
if(POLICY CMP0177)
66
cmake_policy(SET CMP0177 NEW)
77
endif()
8-
project(libdigidocpp VERSION 4.2.0)
8+
project(libdigidocpp VERSION 4.3.0)
99
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
1010
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX})
1111

@@ -35,7 +35,7 @@ set( BUILD_TOOLS YES CACHE BOOL "Build digidoc-tool" )
3535
set( BUILD_SHARED_LIBS YES CACHE BOOL "Build library as SHARED or STATIC" )
3636
set( SIGNCERT "" CACHE STRING "Common name of certificate to used sign binaries, empty skip signing" )
3737
set( CROSSSIGNCERT "" CACHE STRING "Common name of certificate to used cross sign binaries, empty skip signing" )
38-
set(CMAKE_CXX_STANDARD 17)
38+
set(CMAKE_CXX_STANDARD 20)
3939
set(CMAKE_CXX_STANDARD_REQUIRED YES)
4040
set(CMAKE_C_VISIBILITY_PRESET hidden)
4141
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

CMakePresets.json

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,32 @@
1111
"CMAKE_BUILD_TYPE": "Debug"
1212
}
1313
},
14-
{
15-
"name": "base",
16-
"displayName": "Base build config",
17-
"hidden": true,
18-
"inherits": "default",
19-
"environment": {
20-
"DEST": "/Library/libdigidocpp$env{DEST_SUFFIX}"
21-
},
22-
"installDir": "$env{DEST}"
23-
},
2414
{
2515
"name": "macos",
2616
"description": "This macos build is only available on macOS",
27-
"inherits": "base",
17+
"inherits": "default",
2818
"condition": {
2919
"type": "equals",
3020
"lhs": "${hostSystemName}",
3121
"rhs": "Darwin"
3222
},
23+
"installDir": "$env{DEST}",
24+
"environment": {
25+
"DEST": "/Library/libdigidocpp$env{DEST_SUFFIX}"
26+
},
3327
"cacheVariables": {
3428
"CMAKE_OSX_ARCHITECTURES": "arm64;x86_64",
35-
"CMAKE_OSX_DEPLOYMENT_TARGET": "12.0",
29+
"CMAKE_OSX_DEPLOYMENT_TARGET": "13.0",
3630
"CMAKE_FIND_ROOT_PATH": "$env{DEST}"
3731
}
3832
},
3933
{
4034
"name": "mobile",
4135
"hidden": true,
42-
"inherits": "base",
36+
"inherits": "default",
37+
"installDir": "$env{DEST}",
4338
"environment": {
39+
"DEST": "libdigidocpp$env{DEST_SUFFIX}",
4440
"DEST_SUFFIX": ".${presetName}"
4541
},
4642
"cacheVariables": {
@@ -52,7 +48,7 @@
5248
{
5349
"name": "ios",
5450
"hidden": true,
55-
"inherits": ["mobile", "macos"],
51+
"inherits": ["macos", "mobile"],
5652
"cacheVariables": {
5753
"CMAKE_SYSTEM_NAME": "iOS",
5854
"CMAKE_OSX_SYSROOT": "${presetName}",

build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ param(
33
[string]$libdigidocpp = $PSScriptRoot,
44
[string]$platform = $env:PLATFORM,
55
[string]$build_number = $(if ($null -eq $env:BUILD_NUMBER) {"0"} else {$env:BUILD_NUMBER}),
6-
[string]$msiversion = "4.2.0.$build_number",
6+
[string]$msiversion = "4.3.0.$build_number",
77
[string]$msi_name = "libdigidocpp-$msiversion$env:VER_SUFFIX.$platform.msi",
88
[string]$git = "git.exe",
99
[string]$vcpkg = "vcpkg\vcpkg.exe",
@@ -23,8 +23,8 @@ Try {
2323
& wix > $null
2424
}
2525
Catch {
26-
& dotnet tool install -g --version 5.0.2 wix
27-
& wix extension add -g WixToolset.UI.wixext/5.0.2
26+
& dotnet tool install -g --version 6.0.1 wix
27+
& wix extension add -g WixToolset.UI.wixext/6.0.1
2828
}
2929

3030
if(!(Test-Path -Path $vcpkg)) {

examples/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ apply plugin: 'com.android.application'
33
def libsPath = '/Library/libdigidocpp'
44

55
android {
6-
compileSdk 34
6+
compileSdk 35
77
defaultConfig {
88
applicationId "ee.ria.libdigidocpp"
99
minSdk 30
10-
targetSdk 34
10+
targetSdk 35
1111
versionCode 1
1212
versionName "1.0"
1313
if (System.getenv("BUILD_NUMBER")) {

examples/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
mavenCentral()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:8.8.1'
8+
classpath 'com.android.tools.build:gradle:8.12.0'
99
}
1010
}
1111

examples/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip

examples/ios/libdigidocpp.xcodeproj/project.pbxproj

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
isa = PBXProject;
144144
attributes = {
145145
BuildIndependentTargetsInParallel = YES;
146-
LastUpgradeCheck = 1520;
146+
LastUpgradeCheck = 1640;
147147
ORGANIZATIONNAME = RIA;
148148
TargetAttributes = {
149149
4E7663971B5A37AC00672ACF = {
@@ -215,7 +215,7 @@
215215
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
216216
CLANG_ANALYZER_NONNULL = YES;
217217
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
218-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
218+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
219219
CLANG_ENABLE_MODULES = YES;
220220
CLANG_ENABLE_OBJC_ARC = YES;
221221
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -243,10 +243,11 @@
243243
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
244244
COPY_PHASE_STRIP = NO;
245245
DEBUG_INFORMATION_FORMAT = dwarf;
246+
DEVELOPMENT_TEAM = ET847QJV9F;
246247
ENABLE_STRICT_OBJC_MSGSEND = YES;
247248
ENABLE_TESTABILITY = YES;
248249
ENABLE_USER_SCRIPT_SANDBOXING = YES;
249-
GCC_C_LANGUAGE_STANDARD = gnu11;
250+
GCC_C_LANGUAGE_STANDARD = gnu17;
250251
GCC_DYNAMIC_NO_PIC = NO;
251252
GCC_NO_COMMON_BLOCKS = YES;
252253
GCC_OPTIMIZATION_LEVEL = 0;
@@ -274,7 +275,7 @@
274275
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
275276
CLANG_ANALYZER_NONNULL = YES;
276277
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
277-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
278+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
278279
CLANG_ENABLE_MODULES = YES;
279280
CLANG_ENABLE_OBJC_ARC = YES;
280281
CLANG_ENABLE_OBJC_WEAK = YES;
@@ -301,10 +302,11 @@
301302
CLANG_WARN_UNREACHABLE_CODE = YES;
302303
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
303304
COPY_PHASE_STRIP = NO;
305+
DEVELOPMENT_TEAM = ET847QJV9F;
304306
ENABLE_NS_ASSERTIONS = NO;
305307
ENABLE_STRICT_OBJC_MSGSEND = YES;
306308
ENABLE_USER_SCRIPT_SANDBOXING = YES;
307-
GCC_C_LANGUAGE_STANDARD = gnu11;
309+
GCC_C_LANGUAGE_STANDARD = gnu17;
308310
GCC_NO_COMMON_BLOCKS = YES;
309311
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
310312
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
@@ -325,10 +327,9 @@
325327
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
326328
BUILD_NUMBER = 0;
327329
CODE_SIGN_ENTITLEMENTS = libdigidocpp/libdigidocpp.entitlements;
328-
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
330+
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "";
329331
CODE_SIGN_STYLE = Automatic;
330332
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
331-
DEVELOPMENT_TEAM = ET847QJV9F;
332333
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
333334
FRAMEWORK_SEARCH_PATHS = "$(SDKPATH)/lib";
334335
GCC_PREPROCESSOR_DEFINITIONS = (
@@ -341,6 +342,7 @@
341342
"$(PROJECT_DIR)/../../src/minizip",
342343
);
343344
INFOPLIST_FILE = libdigidocpp/Info.plist;
345+
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
344346
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
345347
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
346348
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -355,8 +357,7 @@
355357
MARKETING_VERSION = 1.0;
356358
PRODUCT_BUNDLE_IDENTIFIER = ee.ria.libdigidocpp.app;
357359
PRODUCT_NAME = "$(TARGET_NAME)";
358-
SDKPATH = "$(LOCAL_LIBRARY_DIR)/libdigidocpp.iphoneos";
359-
"SDKPATH[sdk=iphonesimulator*]" = "$(LOCAL_LIBRARY_DIR)/libdigidocpp.iphonesimulator";
360+
SDKPATH = "$(LOCAL_LIBRARY_DIR)/libdigidocpp.$(PLATFORM_NAME)";
360361
"SDKPATH[sdk=macosx*]" = "$(LOCAL_LIBRARY_DIR)/libdigidocpp.iphonecatalyst";
361362
SUPPORTS_MACCATALYST = YES;
362363
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
@@ -370,10 +371,9 @@
370371
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
371372
BUILD_NUMBER = 0;
372373
CODE_SIGN_ENTITLEMENTS = libdigidocpp/libdigidocpp.entitlements;
373-
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
374+
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "";
374375
CODE_SIGN_STYLE = Automatic;
375376
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
376-
DEVELOPMENT_TEAM = ET847QJV9F;
377377
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
378378
FRAMEWORK_SEARCH_PATHS = "$(SDKPATH)/lib";
379379
GCC_PREPROCESSOR_DEFINITIONS = (
@@ -386,6 +386,7 @@
386386
"$(PROJECT_DIR)/../../src/minizip",
387387
);
388388
INFOPLIST_FILE = libdigidocpp/Info.plist;
389+
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
389390
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
390391
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
391392
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -400,8 +401,7 @@
400401
MARKETING_VERSION = 1.0;
401402
PRODUCT_BUNDLE_IDENTIFIER = ee.ria.libdigidocpp.app;
402403
PRODUCT_NAME = "$(TARGET_NAME)";
403-
SDKPATH = "$(LOCAL_LIBRARY_DIR)/libdigidocpp.iphoneos";
404-
"SDKPATH[sdk=iphonesimulator*]" = "$(LOCAL_LIBRARY_DIR)/libdigidocpp.iphonesimulator";
404+
SDKPATH = "$(LOCAL_LIBRARY_DIR)/libdigidocpp.$(PLATFORM_NAME)";
405405
"SDKPATH[sdk=macosx*]" = "$(LOCAL_LIBRARY_DIR)/libdigidocpp.iphonecatalyst";
406406
SUPPORTS_MACCATALYST = YES;
407407
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;

examples/ios/libdigidocpp/Info.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
</array>
2020
</dict>
2121
</array>
22-
<key>ITSAppUsesNonExemptEncryption</key>
23-
<false/>
2422
<key>NSAppTransportSecurity</key>
2523
<dict>
2624
<key>NSAllowsArbitraryLoads</key>

examples/ios/libdigidocpp/MasterViewController.mm

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,15 @@ @interface URLTableViewCell: UITableViewCell
4242
@implementation URLTableViewCell
4343
@end
4444

45-
@interface MasterViewController : UITableViewController {
46-
#if TESTING
47-
NSMutableArray *result;
48-
#endif
49-
}
45+
@interface MasterViewController : UITableViewController
5046
@end
5147

5248
@implementation MasterViewController
53-
5449
#if TESTING
50+
{
51+
NSMutableArray *result;
52+
}
53+
5554
- (void)viewDidLoad {
5655
[super viewDidLoad];
5756
self.tableView.contentInset = UIEdgeInsetsMake(20, 0, 0, 0);
@@ -238,14 +237,14 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
238237
cell.textLabel.text = [NSString stdstring:signature->signedBy()];
239238
break;
240239
case 1:
241-
using Validator = digidoc::Signature::Validator;
242-
switch (Validator(signature).status()) {
243-
case Validator::Valid: cell.textLabel.text = @"Valid"; break;
244-
case Validator::Warning: cell.textLabel.text = @"Warning"; break;
245-
case Validator::NonQSCD: cell.textLabel.text = @"NonQSCD"; break;
246-
case Validator::Test: cell.textLabel.text = @"Test"; break;
247-
case Validator::Unknown: cell.textLabel.text = @"Unknown"; break;
248-
case Validator::Invalid: cell.textLabel.text = @"Invalid"; break;
240+
switch (digidoc::Signature::Validator(signature).status()) {
241+
using enum digidoc::Signature::Validator::Status;
242+
case Valid: cell.textLabel.text = @"Valid"; break;
243+
case Warning: cell.textLabel.text = @"Warning"; break;
244+
case NonQSCD: cell.textLabel.text = @"NonQSCD"; break;
245+
case Test: cell.textLabel.text = @"Test"; break;
246+
case Unknown: cell.textLabel.text = @"Unknown"; break;
247+
case Invalid: cell.textLabel.text = @"Invalid"; break;
249248
}
250249
break;
251250
case 2:

0 commit comments

Comments
 (0)