Skip to content

Commit 12b520c

Browse files
Fixed iOS framework identifier generation and bump archive dependency (#185)
* Fix leading dash in framework identifier generation Ensures that any leading dashes are removed from the generated framework identifier in xcframework_utils.sh. Defaults to 'framework' if the identifier is empty after processing. * Update CFBundlePackageType to FMWK in plist generation Changed the CFBundlePackageType from 'APPL' to 'FMWK' in the create_plist function to correctly identify the bundle as a framework. Also made a minor whitespace adjustment in create_xcframework_from_dylibs. * Bump `archive` dependency to `^4.0.7` (#184) * update `archive` dependency to ``^4.0.7` and bump serious_python version to `0.9.5` * revert flutter_lints dependency to version 2.0.0 * Bump version to 0.9.5 for Android and Darwin Updated the version number to 0.9.5 in both the Android build.gradle and Darwin podspec files to prepare for a new release. --------- Co-authored-by: Feodor Fitsner <[email protected]> * Update changelogs for iOS framework identifier fix Added notes to all package changelogs for version 0.9.5 about the fix for iOS framework identifier generation. --------- Co-authored-by: TheEthicalBoy <[email protected]>
1 parent a3ec189 commit 12b520c

File tree

15 files changed

+41
-12
lines changed

15 files changed

+41
-12
lines changed

src/serious_python/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.9.5
2+
3+
* Bump `archive` to `^4.0.7`.
4+
* Fixed iOS framework identifier generation.
5+
16
## 0.9.4
27

38
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).

src/serious_python/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python
22
description: A cross-platform plugin for adding embedded Python runtime to your Flutter apps.
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.9.4
5+
version: 0.9.5
66

77
platforms:
88
ios:
@@ -44,7 +44,7 @@ dependencies:
4444
path: ../serious_python_linux
4545

4646
path_provider: ^2.1.3
47-
archive: ^3.6.1
47+
archive: ^4.0.7
4848
path: ^1.9.0
4949
args: ^2.5.0
5050
toml: ^0.15.0

src/serious_python_android/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.9.5
2+
3+
* Bump `archive` to `^4.0.7`.
4+
* Fixed iOS framework identifier generation.
5+
16
## 0.9.4
27

38
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).

src/serious_python_android/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'com.flet.serious_python_android'
2-
version '0.9.4'
2+
version '0.9.5'
33

44
def python_version = '3.12'
55

src/serious_python_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_android
22
description: Android implementation of the serious_python plugin
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.9.4
5+
version: 0.9.5
66

77
environment:
88
sdk: ">=3.0.0 <4.0.0"

src/serious_python_darwin/darwin/serious_python_darwin.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'serious_python_darwin'
7-
s.version = '0.9.4'
7+
s.version = '0.9.5'
88
s.summary = 'A cross-platform plugin for adding embedded Python runtime to your Flutter apps.'
99
s.description = <<-DESC
1010
A cross-platform plugin for adding embedded Python runtime to your Flutter apps.

src/serious_python_darwin/darwin/xcframework_utils.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ create_plist() {
2323
<key>CFBundleInfoDictionaryVersion</key>
2424
<string>6.0</string>
2525
<key>CFBundlePackageType</key>
26-
<string>APPL</string>
26+
<string>FMWK</string>
2727
<key>CFBundleShortVersionString</key>
2828
<string>1.0</string>
2929
<key>CFBundleSupportedPlatforms</key>
@@ -55,6 +55,10 @@ create_xcframework_from_dylibs() {
5555
dylib_without_ext=$(echo $dylib_relative_path | cut -d "." -f 1)
5656
framework=$(echo $dylib_without_ext | tr "/" ".")
5757
framework_identifier=${framework//_/-}
58+
while [[ $framework_identifier == -* ]]; do
59+
framework_identifier=${framework_identifier#-}
60+
done
61+
framework_identifier=${framework_identifier:-framework}
5862

5963
# creating "iphoneos" framework
6064
fd=iphoneos/$framework.framework

src/serious_python_darwin/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_darwin
22
description: iOS and macOS implementations of the serious_python plugin
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.9.4
5+
version: 0.9.5
66

77
environment:
88
sdk: ">=3.0.0 <4.0.0"

src/serious_python_linux/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.9.5
2+
3+
* Bump `archive` to `^4.0.7`.
4+
* Fixed iOS framework identifier generation.
5+
16
## 0.9.4
27

38
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).

src/serious_python_linux/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_linux
22
description: Linux implementations of the serious_python plugin
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.9.4
5+
version: 0.9.5
66

77
environment:
88
sdk: '>=3.1.3 <4.0.0'

0 commit comments

Comments
 (0)