Skip to content

Commit

Permalink
Fixed compatibility with Android 12 to 14
Browse files Browse the repository at this point in the history
  • Loading branch information
Hassan-kareem authored Dec 20, 2024
1 parent 63cf548 commit 7bd32c9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
10 changes: 4 additions & 6 deletions Module/module.prop
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<<<<<<< HEAD
id=Nastaliq-Urdu_Regular
name=Nastaliq Urdu with Regular
version=5.0
versionCode=500
version=5.1
versionCode=510
author=Hassan-karim
description=Jameel Noori Nastaliq for Urdu language
updateJson=https://github.com/Hassan-kareem/Nastaliq-Urdu_font/blob/Regular/update.json

description=Jameel Noori Nastaliq Regular for Urdu language
updateJson=https://github.com/Hassan-kareem/Nastaliq-Urdu_font/blob/Regular/update.json
6 changes: 3 additions & 3 deletions Module/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ if [ "$APILEVEL" -le 30 ]; then
<font weight="400" style="normal"> NotoNastaliqUrdu-Regular.ttf </font> \
<font weight="700" style="normal"> NotoNastaliqUrdu-Bold.ttf </font> \
</family>' "$MODIFIED_FONTS_XML_PATH"
elif [ "$APILEVEL" -ge 31 ] && [ "$APILEVEL" -lt 34 ]; then
elif [ "$APILEVEL" -ge 31 ] && [ "$APILEVEL" -le 34 ]; then
cp "$FONTS_XML_PATH" "$MODIFIED_FONTS_XML_PATH"
sed -i '/<family lang="und-Ethi">/i \
<family lang="ur-Arab" variant="elegant"> \
<font weight="400" style="normal" postScriptName="NotoNastaliqUrdu"> NotoNastaliqUrdu-Regular.ttf </font> \
<font weight="700" style="normal"> NotoNastaliqUrdu-Bold.ttf </font> \
</family>' "$MODIFIED_FONTS_XML_PATH"
elif [ "$APILEVEL" -ge 34 ]; then
elif [ "$APILEVEL" -ge 35 ]; then
cp "$FONT_FALLBACK_XML_PATH" "$MODIFIED_FONT_FALLBACK_XML_PATH"
sed -i '/<family lang="und-Ethi">/i \
<family lang="ur-Arab" variant="elegant"> \
Expand All @@ -32,4 +32,4 @@ elif [ "$APILEVEL" -ge 34 ]; then
</family>' "$MODIFIED_FONT_FALLBACK_XML_PATH"
else
exit 1
fi
fi
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Jameel Noori Nastaliq brings the elegance of traditional calligraphy to your And
## Installation
![Downloads](https://img.shields.io/github/downloads/Hassan-kareem/Nastaliq-Urdu_font/total.svg?style=plastic&label=Downloads)
[![Telegram Channel](https://img.shields.io/badge/Join-Telegram-blue?style=plastic&logo=telegram)](https://t.me/HassansTechInsights)
[![Download Noto Nastaliq Urdu](https://img.shields.io/badge/Download-Noto%20Nastaliq%20Urdu-orange?style=plastic&logo=github)](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/NotoNastaliq-v3.0/NotoNastaliqUrdu-v3.0.zip)
[![Download Noori Kasheeda](https://img.shields.io/badge/Download-Noori%20Kasheeda-brightgreen?style=plastic&logo=github)](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/Noori-Kasheeda-v5.0/Nastaliq-Urdu_Kasheeda-v5.0.zip)
[![Download Noori Regular](https://img.shields.io/badge/Download-Noori%20Regular-darkgreen?style=plastic&logo=github)](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/Noori-Regular-v5.0/Nastaliq-Urdu_Regular-v5.0.zip)
[![Download Mehr Nastaliq](https://img.shields.io/badge/Download-Mehr%20Nastaliq-dark?style=plastic&logo=github)](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/MehrNastaliq-v3.0/Mehr_Nastaliq-Urdu-v3.0.zip)
[![Download Noto Nastaliq Urdu](https://img.shields.io/badge/Download-Noto%20Nastaliq%20Urdu-orange?style=plastic&logo=github)](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/NotoNastaliq-v3.1/NotoNastaliqUrdu-v3.1.zip)
[![Download Noori Kasheeda](https://img.shields.io/badge/Download-Noori%20Kasheeda-brightgreen?style=plastic&logo=github)](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/Noori-Kasheeda-v5.1/Nastaliq-Urdu_Kasheeda-v5.1.zip)
[![Download Noori Regular](https://img.shields.io/badge/Download-Noori%20Regular-darkgreen?style=plastic&logo=github)](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/Noori-Regular-v5.1/Nastaliq-Urdu_Regular-v5.1.zip)
[![Download Mehr Nastaliq](https://img.shields.io/badge/Download-Mehr%20Nastaliq-dark?style=plastic&logo=github)](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/MehrNastaliq-v3.1/Mehr_Nastaliq-Urdu-v3.1.zip)
[![XDA Thread](https://img.shields.io/badge/XDA%20Thread-Visit%20Now-green?style=plastic)](https://xdaforums.com/t/module-font-nastaliq-urdu-font.4645787/)

1. **Download:** Obtain the latest zip from Releases: [Noto Nastaliq Urdu](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/NotoNastaliq-v3.0/NotoNastaliqUrdu-v3.0.zip), [Kasheeda](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/Noori-Kasheeda-v5.0/Nastaliq-Urdu_Kasheeda-v5.0.zip) or [Regular](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/Noori-Regular-v5.0/Nastaliq-Urdu_Regular-v5.0.zip), [Mehr Nastaliq](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/MehrNastaliq-v3.0/Mehr_Nastaliq-Urdu-v3.0.zip)
1. **Download:** Obtain the latest zip from Releases: [Noto Nastaliq Urdu](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/NotoNastaliq-v3.1/NotoNastaliqUrdu-v3.1.zip), [Kasheeda](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/Noori-Kasheeda-v5.1/Nastaliq-Urdu_Kasheeda-v5.1.zip) or [Regular](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/Noori-Regular-v5.1/Nastaliq-Urdu_Regular-v5.1.zip), [Mehr Nastaliq](https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/MehrNastaliq-v3.1/Mehr_Nastaliq-Urdu-v3.1.zip)
2. **Flash:** Install the downloaded file using Magisk or KernelSU.

> [!NOTE]
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ https://www.youtube.com/@HassansTechInsights

# v5.0
- Added support for Android 15
- Fixed compatibility with Android 12 to 14
6 changes: 3 additions & 3 deletions update.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "5.0",
"versionCode": 500,
"zipUrl": "https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/Noori-Regular-v5.0/Nastaliq-Urdu_Regular-v5.0.zip",
"version": "5.1",
"versionCode": 510,
"zipUrl": "https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/Noori-Regular-v5.1/Nastaliq-Urdu_Regular-v5.1.zip",
"changelog": "https://raw.githubusercontent.com/Hassan-kareem/Nastaliq-Urdu_font/Regular/changelog.md"
}

0 comments on commit 7bd32c9

Please sign in to comment.