From 11b55fb9764db827f9c586dee7480ebc907e0737 Mon Sep 17 00:00:00 2001
From: Hassan Karim <144518310+Hassan-kareem@users.noreply.github.com>
Date: Fri, 20 Dec 2024 14:04:18 +0530
Subject: [PATCH] Fixed Android 12 to 14 suppport
---
Module/module.prop | 4 ++--
Module/post-fs-data.sh | 6 +++---
README.md | 10 +++++-----
changelog.md | 1 +
update.json | 8 ++++----
5 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/Module/module.prop b/Module/module.prop
index 9f250ec..5d72465 100644
--- a/Module/module.prop
+++ b/Module/module.prop
@@ -1,7 +1,7 @@
id=MehrNastaliq
name=Mehr Nastaliq Urdu
-version=3.0
-versionCode=300
+version=3.1
+versionCode=310
author=Hassan-karim
description=Mehr Nastaliq Urdu Font for Urdu
updateJson=https://raw.githubusercontent.com/Hassan-kareem/Nastaliq-Urdu_font/MehrNastaliq/update.json
diff --git a/Module/post-fs-data.sh b/Module/post-fs-data.sh
index 083c83e..f6f9354 100644
--- a/Module/post-fs-data.sh
+++ b/Module/post-fs-data.sh
@@ -16,14 +16,14 @@ if [ "$APILEVEL" -le 30 ]; then
NotoNastaliqUrdu-Regular.ttf \
NotoNastaliqUrdu-Bold.ttf \
' "$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 '//i \
\
NotoNastaliqUrdu-Regular.ttf \
NotoNastaliqUrdu-Bold.ttf \
' "$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 '//i \
\
@@ -32,4 +32,4 @@ elif [ "$APILEVEL" -ge 34 ]; then
' "$MODIFIED_FONT_FALLBACK_XML_PATH"
else
exit 1
-fi
+fi
\ No newline at end of file
diff --git a/README.md b/README.md
index 047a23c..91fdb33 100644
--- a/README.md
+++ b/README.md
@@ -11,13 +11,13 @@
## 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]
diff --git a/changelog.md b/changelog.md
index e881700..a9569ec 100644
--- a/changelog.md
+++ b/changelog.md
@@ -4,3 +4,4 @@ https://www.youtube.com/@HassansTechInsights
# v3.0
- Added support for Android 15
+- Fixed compatibility with Android 12 to 14
\ No newline at end of file
diff --git a/update.json b/update.json
index 2344a62..ae89724 100644
--- a/update.json
+++ b/update.json
@@ -1,6 +1,6 @@
{
- "version": "3.0",
- "versionCode": 300,
- "zipUrl": "https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/MehrNastaliq-v3.0/Mehr_Nastaliq-Urdu-v3.0.zip",
+ "version": "3.1",
+ "versionCode": 310,
+ "zipUrl": "https://github.com/Hassan-kareem/Nastaliq-Urdu_font/releases/download/MehrNastaliq-v3.1/Mehr_Nastaliq-Urdu-v3.1.zip",
"changelog": "https://raw.githubusercontent.com/Hassan-kareem/Nastaliq-Urdu_font/MehrNastaliq/changelog.md"
-}
+}
\ No newline at end of file