@moustafahelmi/react-native-quran-app 1.4.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -5
- package/src/hooks/apis/useGetChapterByPage.ts +5 -5
- package/src/hooks/apis/useGetReciters.ts +6 -2
- package/src/layouts/quranPageLayout.tsx +25 -19
- package/src/types/index.ts +2 -0
- package/.bundle/config +0 -2
- package/.eslintrc.js +0 -4
- package/.prettierrc.js +0 -7
- package/.watchmanconfig +0 -1
- package/App.tsx +0 -23
- package/Gemfile +0 -9
- package/Gemfile.lock +0 -105
- package/MIGRATION.md +0 -163
- package/ReactotronConfig.js +0 -7
- package/__tests__/App.test.tsx +0 -17
- package/android/app/build.gradle +0 -118
- package/android/app/debug.keystore +0 -0
- package/android/app/proguard-rules.pro +0 -10
- package/android/app/src/debug/AndroidManifest.xml +0 -9
- package/android/app/src/main/AndroidManifest.xml +0 -25
- package/android/app/src/main/assets/fonts/Cairo.ttf +0 -0
- package/android/app/src/main/assets/fonts/QCF_BSML.ttf +0 -0
- package/android/app/src/main/assets/fonts/QCF_P001.ttf +0 -0
- package/android/app/src/main/java/com/quranapp/MainActivity.kt +0 -22
- package/android/app/src/main/java/com/quranapp/MainApplication.kt +0 -43
- package/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/values/strings.xml +0 -3
- package/android/app/src/main/res/values/styles.xml +0 -9
- package/android/build.gradle +0 -21
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/android/gradle.properties +0 -41
- package/android/gradlew +0 -249
- package/android/gradlew.bat +0 -92
- package/android/link-assets-manifest.json +0 -17
- package/android/settings.gradle +0 -4
- package/app.json +0 -4
- package/babel.config.js +0 -3
- package/index.js +0 -11
- package/ios/.xcode.env +0 -11
- package/ios/Podfile +0 -40
- package/ios/Podfile.lock +0 -1460
- package/ios/QuranApp/AppDelegate.h +0 -6
- package/ios/QuranApp/AppDelegate.mm +0 -31
- package/ios/QuranApp/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/ios/QuranApp/Images.xcassets/Contents.json +0 -6
- package/ios/QuranApp/Info.plist +0 -57
- package/ios/QuranApp/LaunchScreen.storyboard +0 -47
- package/ios/QuranApp/PrivacyInfo.xcprivacy +0 -38
- package/ios/QuranApp/main.m +0 -10
- package/ios/QuranApp.xcodeproj/project.pbxproj +0 -729
- package/ios/QuranApp.xcodeproj/xcshareddata/xcschemes/QuranApp.xcscheme +0 -88
- package/ios/QuranApp.xcworkspace/contents.xcworkspacedata +0 -10
- package/ios/QuranAppTests/Info.plist +0 -24
- package/ios/QuranAppTests/QuranAppTests.m +0 -66
- package/ios/link-assets-manifest.json +0 -17
- package/jest.config.js +0 -3
- package/metro.config.js +0 -11
- package/react-native.config.js +0 -7
- package/screenshots/1.png +0 -0
- package/screenshots/2.png +0 -0
- package/screenshots/3.png +0 -0
- package/screenshots/4.png +0 -0
- package/screenshots/5.png +0 -0
- package/tsconfig.json +0 -3
- package/videos/1.gif +0 -0
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Scheme
|
|
3
|
-
LastUpgradeVersion = "1210"
|
|
4
|
-
version = "1.3">
|
|
5
|
-
<BuildAction
|
|
6
|
-
parallelizeBuildables = "YES"
|
|
7
|
-
buildImplicitDependencies = "YES">
|
|
8
|
-
<BuildActionEntries>
|
|
9
|
-
<BuildActionEntry
|
|
10
|
-
buildForTesting = "YES"
|
|
11
|
-
buildForRunning = "YES"
|
|
12
|
-
buildForProfiling = "YES"
|
|
13
|
-
buildForArchiving = "YES"
|
|
14
|
-
buildForAnalyzing = "YES">
|
|
15
|
-
<BuildableReference
|
|
16
|
-
BuildableIdentifier = "primary"
|
|
17
|
-
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
|
18
|
-
BuildableName = "QuranApp.app"
|
|
19
|
-
BlueprintName = "QuranApp"
|
|
20
|
-
ReferencedContainer = "container:QuranApp.xcodeproj">
|
|
21
|
-
</BuildableReference>
|
|
22
|
-
</BuildActionEntry>
|
|
23
|
-
</BuildActionEntries>
|
|
24
|
-
</BuildAction>
|
|
25
|
-
<TestAction
|
|
26
|
-
buildConfiguration = "Debug"
|
|
27
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
28
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
29
|
-
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
30
|
-
<Testables>
|
|
31
|
-
<TestableReference
|
|
32
|
-
skipped = "NO">
|
|
33
|
-
<BuildableReference
|
|
34
|
-
BuildableIdentifier = "primary"
|
|
35
|
-
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
|
|
36
|
-
BuildableName = "QuranAppTests.xctest"
|
|
37
|
-
BlueprintName = "QuranAppTests"
|
|
38
|
-
ReferencedContainer = "container:QuranApp.xcodeproj">
|
|
39
|
-
</BuildableReference>
|
|
40
|
-
</TestableReference>
|
|
41
|
-
</Testables>
|
|
42
|
-
</TestAction>
|
|
43
|
-
<LaunchAction
|
|
44
|
-
buildConfiguration = "Debug"
|
|
45
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
46
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
47
|
-
launchStyle = "0"
|
|
48
|
-
useCustomWorkingDirectory = "NO"
|
|
49
|
-
ignoresPersistentStateOnLaunch = "NO"
|
|
50
|
-
debugDocumentVersioning = "YES"
|
|
51
|
-
debugServiceExtension = "internal"
|
|
52
|
-
allowLocationSimulation = "YES">
|
|
53
|
-
<BuildableProductRunnable
|
|
54
|
-
runnableDebuggingMode = "0">
|
|
55
|
-
<BuildableReference
|
|
56
|
-
BuildableIdentifier = "primary"
|
|
57
|
-
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
|
58
|
-
BuildableName = "QuranApp.app"
|
|
59
|
-
BlueprintName = "QuranApp"
|
|
60
|
-
ReferencedContainer = "container:QuranApp.xcodeproj">
|
|
61
|
-
</BuildableReference>
|
|
62
|
-
</BuildableProductRunnable>
|
|
63
|
-
</LaunchAction>
|
|
64
|
-
<ProfileAction
|
|
65
|
-
buildConfiguration = "Release"
|
|
66
|
-
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
67
|
-
savedToolIdentifier = ""
|
|
68
|
-
useCustomWorkingDirectory = "NO"
|
|
69
|
-
debugDocumentVersioning = "YES">
|
|
70
|
-
<BuildableProductRunnable
|
|
71
|
-
runnableDebuggingMode = "0">
|
|
72
|
-
<BuildableReference
|
|
73
|
-
BuildableIdentifier = "primary"
|
|
74
|
-
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
|
75
|
-
BuildableName = "QuranApp.app"
|
|
76
|
-
BlueprintName = "QuranApp"
|
|
77
|
-
ReferencedContainer = "container:QuranApp.xcodeproj">
|
|
78
|
-
</BuildableReference>
|
|
79
|
-
</BuildableProductRunnable>
|
|
80
|
-
</ProfileAction>
|
|
81
|
-
<AnalyzeAction
|
|
82
|
-
buildConfiguration = "Debug">
|
|
83
|
-
</AnalyzeAction>
|
|
84
|
-
<ArchiveAction
|
|
85
|
-
buildConfiguration = "Release"
|
|
86
|
-
revealArchiveInOrganizer = "YES">
|
|
87
|
-
</ArchiveAction>
|
|
88
|
-
</Scheme>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
-
<string>en</string>
|
|
7
|
-
<key>CFBundleExecutable</key>
|
|
8
|
-
<string>$(EXECUTABLE_NAME)</string>
|
|
9
|
-
<key>CFBundleIdentifier</key>
|
|
10
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
11
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
-
<string>6.0</string>
|
|
13
|
-
<key>CFBundleName</key>
|
|
14
|
-
<string>$(PRODUCT_NAME)</string>
|
|
15
|
-
<key>CFBundlePackageType</key>
|
|
16
|
-
<string>BNDL</string>
|
|
17
|
-
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>1.0</string>
|
|
19
|
-
<key>CFBundleSignature</key>
|
|
20
|
-
<string>????</string>
|
|
21
|
-
<key>CFBundleVersion</key>
|
|
22
|
-
<string>1</string>
|
|
23
|
-
</dict>
|
|
24
|
-
</plist>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
#import <UIKit/UIKit.h>
|
|
2
|
-
#import <XCTest/XCTest.h>
|
|
3
|
-
|
|
4
|
-
#import <React/RCTLog.h>
|
|
5
|
-
#import <React/RCTRootView.h>
|
|
6
|
-
|
|
7
|
-
#define TIMEOUT_SECONDS 600
|
|
8
|
-
#define TEXT_TO_LOOK_FOR @"Welcome to React"
|
|
9
|
-
|
|
10
|
-
@interface QuranAppTests : XCTestCase
|
|
11
|
-
|
|
12
|
-
@end
|
|
13
|
-
|
|
14
|
-
@implementation QuranAppTests
|
|
15
|
-
|
|
16
|
-
- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test
|
|
17
|
-
{
|
|
18
|
-
if (test(view)) {
|
|
19
|
-
return YES;
|
|
20
|
-
}
|
|
21
|
-
for (UIView *subview in [view subviews]) {
|
|
22
|
-
if ([self findSubviewInView:subview matching:test]) {
|
|
23
|
-
return YES;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return NO;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
- (void)testRendersWelcomeScreen
|
|
30
|
-
{
|
|
31
|
-
UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
|
|
32
|
-
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
|
|
33
|
-
BOOL foundElement = NO;
|
|
34
|
-
|
|
35
|
-
__block NSString *redboxError = nil;
|
|
36
|
-
#ifdef DEBUG
|
|
37
|
-
RCTSetLogFunction(
|
|
38
|
-
^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
|
|
39
|
-
if (level >= RCTLogLevelError) {
|
|
40
|
-
redboxError = message;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
#endif
|
|
44
|
-
|
|
45
|
-
while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
|
|
46
|
-
[[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
|
|
47
|
-
[[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
|
|
48
|
-
|
|
49
|
-
foundElement = [self findSubviewInView:vc.view
|
|
50
|
-
matching:^BOOL(UIView *view) {
|
|
51
|
-
if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
|
|
52
|
-
return YES;
|
|
53
|
-
}
|
|
54
|
-
return NO;
|
|
55
|
-
}];
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
#ifdef DEBUG
|
|
59
|
-
RCTSetLogFunction(RCTDefaultLogFunction);
|
|
60
|
-
#endif
|
|
61
|
-
|
|
62
|
-
XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
|
|
63
|
-
XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"migIndex": 1,
|
|
3
|
-
"data": [
|
|
4
|
-
{
|
|
5
|
-
"path": "src/assets/fonts/Cairo.ttf",
|
|
6
|
-
"sha1": "665ae399222c5c4e2cf11d14921df4c96b017d1d"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"path": "src/assets/fonts/QCF_BSML.ttf",
|
|
10
|
-
"sha1": "36fc556b753e3c359147efb5c346b0012e44e0b6"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"path": "src/assets/fonts/QCF_P001.ttf",
|
|
14
|
-
"sha1": "d18804217272bc978a3344d53d5a4c5fad3cf429"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
package/jest.config.js
DELETED
package/metro.config.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Metro configuration
|
|
5
|
-
* https://reactnative.dev/docs/metro
|
|
6
|
-
*
|
|
7
|
-
* @type {import('metro-config').MetroConfig}
|
|
8
|
-
*/
|
|
9
|
-
const config = {};
|
|
10
|
-
|
|
11
|
-
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|
package/react-native.config.js
DELETED
package/screenshots/1.png
DELETED
|
Binary file
|
package/screenshots/2.png
DELETED
|
Binary file
|
package/screenshots/3.png
DELETED
|
Binary file
|
package/screenshots/4.png
DELETED
|
Binary file
|
package/screenshots/5.png
DELETED
|
Binary file
|
package/tsconfig.json
DELETED
package/videos/1.gif
DELETED
|
Binary file
|