@brightlayer-ui/react-native-template-authentication-typescript 3.0.1-alpha.0 → 4.0.0-alpha.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/CHANGELOG.md +22 -9
- package/README.md +10 -8
- package/package.json +2 -2
- package/template/.prettierrc.js +0 -2
- package/template/App.tsx +5 -5
- package/template/Gemfile +11 -2
- package/template/android/app/build.gradle +15 -13
- package/template/android/app/src/main/AndroidManifest.xml +2 -1
- package/template/android/app/src/main/java/com/example/MainApplication.kt +4 -11
- package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +2 -1
- package/template/android/build.gradle +6 -6
- package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradle.properties +1 -3
- package/template/android/gradlew +13 -11
- package/template/android/gradlew.bat +19 -12
- package/template/android/settings.gradle +3 -1
- package/template/ios/Podfile +3 -27
- package/template/ios/Podfile.lock +2224 -662
- package/template/ios/example/AppDelegate.swift +48 -0
- package/template/ios/example/Info.plist +16 -26
- package/template/ios/example/PrivacyInfo.xcprivacy +37 -0
- package/template/ios/example.xcodeproj/project.pbxproj +26 -268
- package/template/ios/exampleTests/Info.plist +31 -18
- package/template/package.json +52 -46
- package/template/src/components/UserMenuComponent.tsx +1 -2
- package/template/translations/i18n.ts +5 -5
- package/template/yarn.lock +8512 -0
- package/template/_gitignore +0 -64
- package/template/ios/example/AppDelegate.h +0 -6
- package/template/ios/example/AppDelegate.mm +0 -31
- package/template/ios/example/main.m +0 -10
- package/template/ios/exampleTests/exampleTests.m +0 -66
package/template/_gitignore
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# OSX
|
|
2
|
-
#
|
|
3
|
-
.DS_Store
|
|
4
|
-
|
|
5
|
-
# Xcode
|
|
6
|
-
#
|
|
7
|
-
build/
|
|
8
|
-
*.pbxuser
|
|
9
|
-
!default.pbxuser
|
|
10
|
-
*.mode1v3
|
|
11
|
-
!default.mode1v3
|
|
12
|
-
*.mode2v3
|
|
13
|
-
!default.mode2v3
|
|
14
|
-
*.perspectivev3
|
|
15
|
-
!default.perspectivev3
|
|
16
|
-
xcuserdata
|
|
17
|
-
*.xccheckout
|
|
18
|
-
*.moved-aside
|
|
19
|
-
DerivedData
|
|
20
|
-
*.hmap
|
|
21
|
-
*.ipa
|
|
22
|
-
*.xcuserstate
|
|
23
|
-
ios/.xcode.env.local
|
|
24
|
-
|
|
25
|
-
# Android/IntelliJ
|
|
26
|
-
#
|
|
27
|
-
build/
|
|
28
|
-
.idea
|
|
29
|
-
.gradle
|
|
30
|
-
local.properties
|
|
31
|
-
*.iml
|
|
32
|
-
*.hprof
|
|
33
|
-
.cxx/
|
|
34
|
-
|
|
35
|
-
# node.js
|
|
36
|
-
#
|
|
37
|
-
node_modules/
|
|
38
|
-
npm-debug.log
|
|
39
|
-
yarn-error.log
|
|
40
|
-
|
|
41
|
-
# BUCK
|
|
42
|
-
buck-out/
|
|
43
|
-
\.buckd/
|
|
44
|
-
*.keystore
|
|
45
|
-
!debug.keystore
|
|
46
|
-
|
|
47
|
-
# fastlane
|
|
48
|
-
#
|
|
49
|
-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
|
|
50
|
-
# screenshots whenever they are needed.
|
|
51
|
-
# For more information about the recommended setup visit:
|
|
52
|
-
# https://docs.fastlane.tools/best-practices/source-control/
|
|
53
|
-
|
|
54
|
-
**/fastlane/report.xml
|
|
55
|
-
**/fastlane/Preview.html
|
|
56
|
-
**/fastlane/screenshots
|
|
57
|
-
**/fastlane/test_output
|
|
58
|
-
|
|
59
|
-
# Bundle artifact
|
|
60
|
-
*.jsbundle
|
|
61
|
-
|
|
62
|
-
# Ruby / CocoaPods
|
|
63
|
-
/ios/Pods/
|
|
64
|
-
/vendor/bundle/
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#import "AppDelegate.h"
|
|
2
|
-
|
|
3
|
-
#import <React/RCTBundleURLProvider.h>
|
|
4
|
-
|
|
5
|
-
@implementation AppDelegate
|
|
6
|
-
|
|
7
|
-
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
8
|
-
{
|
|
9
|
-
self.moduleName = @"example";
|
|
10
|
-
// You can add your custom initial props in the dictionary below.
|
|
11
|
-
// They will be passed down to the ViewController used by React Native.
|
|
12
|
-
self.initialProps = @{};
|
|
13
|
-
|
|
14
|
-
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
|
18
|
-
{
|
|
19
|
-
return [self getBundleURL];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
- (NSURL *)getBundleURL
|
|
23
|
-
{
|
|
24
|
-
#if DEBUG
|
|
25
|
-
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
|
|
26
|
-
#else
|
|
27
|
-
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
|
28
|
-
#endif
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@end
|
|
@@ -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 exampleTests : XCTestCase
|
|
11
|
-
|
|
12
|
-
@end
|
|
13
|
-
|
|
14
|
-
@implementation exampleTests
|
|
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
|