Skip to content

Commit

Permalink
0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
zizicici committed Jun 12, 2023
1 parent 48c70f1 commit 83fb632
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Project/NotoEmoji.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class NotoEmoji {
return nil
}

let codePoints = character.unicodeScalars.map { String($0.value, radix: 16).lowercased() }.filter { !$0.lowercased().contains("fe0f") }
let codePoints = character.unicodeScalars.map { String(format: "%04x", $0.value) }.filter { !$0.contains("fe0f") }
let unicodeString = codePoints.joined(separator: "_")
let fileName = "emoji_u" + unicodeString

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ iOS 14.0

The size of the library files that will be included in your project is about `46MB`(`ios-arm64` + `ios-arm64_x86_64-simulator`).

If you embedded [SwiftFluentEmoji](https://github.com/zizicici/swift-fluent-emoji) and [SwiftNotoEmoji](https://github.com/zizicici/swift-noto-emoji), your app download size will increase about `29MB`, install size will increase about `155MB`.
If you embedded [SwiftFluentEmoji](https://github.com/zizicici/swift-fluent-emoji) and [SwiftNotoEmoji](https://github.com/zizicici/swift-noto-emoji), your app download size will increase about `8MB`, install size will increase about `42MB`.
Original file line number Diff line number Diff line change
Expand Up @@ -130,43 +130,43 @@
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "IntegerLiteral",
"offset": 643,
"length": 2,
"value": "16"
"kind": "StringLiteral",
"offset": 635,
"length": 6,
"value": "\"%04x\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 697,
"offset": 677,
"length": 6,
"value": "\"fe0f\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 764,
"offset": 744,
"length": 3,
"value": "\"_\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 792,
"offset": 772,
"length": 9,
"value": "\"emoji_u\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 955,
"offset": 935,
"length": 5,
"value": "\"svg\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 1202,
"offset": 1182,
"length": 13,
"value": "\"url missing\""
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</data>
<key>Modules/SwiftNotoEmoji.swiftmodule/arm64-apple-ios.abi.json</key>
<data>
fAb0/v0lVBD12zjs7TBBYc1N3dM=
2M6C4KtnGdbyhD0YGV52NqbAacE=
</data>
<key>Modules/SwiftNotoEmoji.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
<data>
Expand Down Expand Up @@ -13904,7 +13904,7 @@
<dict>
<key>hash2</key>
<data>
pQyL6Od7TSrcGN5F0WbP++RIsQCObTUYhfiyOatlvCc=
oQwDBvDfahk3lo4aBTXizRxFrSdQStRtjviqe6BuMkg=
</data>
</dict>
<key>Modules/SwiftNotoEmoji.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,43 +130,43 @@
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "IntegerLiteral",
"offset": 643,
"length": 2,
"value": "16"
"kind": "StringLiteral",
"offset": 635,
"length": 6,
"value": "\"%04x\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 697,
"offset": 677,
"length": 6,
"value": "\"fe0f\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 764,
"offset": 744,
"length": 3,
"value": "\"_\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 792,
"offset": 772,
"length": 9,
"value": "\"emoji_u\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 955,
"offset": 935,
"length": 5,
"value": "\"svg\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 1202,
"offset": 1182,
"length": 13,
"value": "\"url missing\""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,43 +130,43 @@
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "IntegerLiteral",
"offset": 643,
"length": 2,
"value": "16"
"kind": "StringLiteral",
"offset": 635,
"length": 6,
"value": "\"%04x\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 697,
"offset": 677,
"length": 6,
"value": "\"fe0f\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 764,
"offset": 744,
"length": 3,
"value": "\"_\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 792,
"offset": 772,
"length": 9,
"value": "\"emoji_u\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 955,
"offset": 935,
"length": 5,
"value": "\"svg\""
},
{
"filePath": "\/Users\/cizi\/Documents\/GitHub\/zizicici\/swift-noto-emoji\/Project\/NotoEmoji.swift",
"kind": "StringLiteral",
"offset": 1202,
"offset": 1182,
"length": 13,
"value": "\"url missing\""
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</data>
<key>Modules/SwiftNotoEmoji.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
<data>
fAb0/v0lVBD12zjs7TBBYc1N3dM=
2M6C4KtnGdbyhD0YGV52NqbAacE=
</data>
<key>Modules/SwiftNotoEmoji.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
<data>
Expand All @@ -42,7 +42,7 @@
</data>
<key>Modules/SwiftNotoEmoji.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
<data>
fAb0/v0lVBD12zjs7TBBYc1N3dM=
2M6C4KtnGdbyhD0YGV52NqbAacE=
</data>
<key>Modules/SwiftNotoEmoji.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
<data>
Expand Down Expand Up @@ -13924,7 +13924,7 @@
<dict>
<key>hash2</key>
<data>
pQyL6Od7TSrcGN5F0WbP++RIsQCObTUYhfiyOatlvCc=
oQwDBvDfahk3lo4aBTXizRxFrSdQStRtjviqe6BuMkg=
</data>
</dict>
<key>Modules/SwiftNotoEmoji.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
Expand Down Expand Up @@ -13959,7 +13959,7 @@
<dict>
<key>hash2</key>
<data>
pQyL6Od7TSrcGN5F0WbP++RIsQCObTUYhfiyOatlvCc=
oQwDBvDfahk3lo4aBTXizRxFrSdQStRtjviqe6BuMkg=
</data>
</dict>
<key>Modules/SwiftNotoEmoji.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
Expand Down

0 comments on commit 83fb632

Please sign in to comment.