Skip to content

Commit

Permalink
51.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrichanyline committed May 24, 2024
1 parent 863da6e commit a2a3798
Show file tree
Hide file tree
Showing 572 changed files with 511 additions and 59,973 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,28 +488,24 @@ - (void)setupFlipOrientationButton {
action:@selector(flipOrientationPressed:)
forControlEvents:UIControlEventTouchUpInside];

self.flipOrientationButton.frame = CGRectMake(0, 0, 220, 50);
UIImage *buttonImage = [UIImage imageNamed:@"baseline_screen_rotation_white_24pt"];
self.flipOrientationButton.frame = CGRectMake(0, 0, 50, 50);
UIImage *buttonImage = [UIImage imageNamed:@"rotate_screen_white"];
[self.flipOrientationButton setImage:buttonImage forState:UIControlStateNormal];
self.flipOrientationButton.imageView.tintColor = UIColor.whiteColor;
[self.flipOrientationButton setImageEdgeInsets:UIEdgeInsetsMake(0.0, 0.0, 0.0, 10.0)];
[self.flipOrientationButton setImageEdgeInsets:UIEdgeInsetsMake(0.0, 0.0, 0.0, 0.0)];
self.flipOrientationButton.imageView.contentMode = UIViewContentModeScaleAspectFill;
self.flipOrientationButton.adjustsImageWhenDisabled = NO;

[self.flipOrientationButton setTitleEdgeInsets:UIEdgeInsetsMake(0, 5.0, 0.0, 5.0)];
[self.flipOrientationButton setTitle:@"Change Screen Orientation" forState:UIControlStateNormal];
self.flipOrientationButton.titleLabel.font = [UIFont AL_proximaRegularWithSize:14];

[self.flipOrientationButton setTranslatesAutoresizingMaskIntoConstraints:NO];
[self.view addSubview:self.flipOrientationButton];
self.flipOrientationButton.layer.cornerRadius = 3;
self.flipOrientationButton.backgroundColor = [[UIColor AL_examplesBlue] colorWithAlphaComponent:0.85];
self.flipOrientationButton.layer.cornerRadius = 25;
self.flipOrientationButton.backgroundColor = [[UIColor AL_Black] colorWithAlphaComponent:0.85];
self.isOrientationFlipped = false;

NSArray *flipConstraints = @[[self.flipOrientationButton.widthAnchor constraintEqualToConstant:220],
NSArray *flipConstraints = @[[self.flipOrientationButton.widthAnchor constraintEqualToConstant:50],
[self.flipOrientationButton.heightAnchor constraintEqualToConstant:50],
[self.flipOrientationButton.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor constant:-20],
[self.flipOrientationButton.centerXAnchor constraintEqualToAnchor:self.view.centerXAnchor constant:0]];
[self.flipOrientationButton.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor constant:-10],
[self.flipOrientationButton.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor constant:-20]];

[self.view addConstraints:flipConstraints];
[NSLayoutConstraint activateConstraints:flipConstraints];
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "rotate_screen_white.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
@"Other tire sidewall information"
};

NSString * const kALTINScanVC_configFilename = @"tire_tin_config";
NSString * const kALTINUniversalScanVC_configFilename = @"tire_tin_universal_uifeedback_config";
NSString * const kALTINNAScanVC_configFilename = @"tire_tin_na_uifeedback_config";


@interface ALTINScanViewController () <ALScanPluginDelegate, ALConfigurationDialogViewControllerDelegate>

// TODO: most of these can go to a superclass.
@property (nonatomic, strong) ALScanViewConfig *scanViewConfig;

@property (nonatomic, readonly) NSDictionary *scanViewConfigDict;

@property (nonatomic, assign) NSUInteger dialogIndexSelected;

@property (nonatomic, readonly) NSArray<NSString *> *recalledDOTs;
Expand All @@ -53,7 +53,7 @@ - (void)viewDidLoad {

self.dialogIndexSelected = 0;

self.scanViewConfig = [[ALScanViewConfig alloc] initWithJSONDictionary:self.scanViewConfigDict error:nil];
self.scanViewConfig = [[ALScanViewConfig alloc] initWithJSONDictionary:[self scanViewConfigDict:ALTINScanModeUniversal] error:nil];

if (self.isRegionUnitedStates) {
// https://anyline.atlassian.net/browse/APP-406
Expand Down Expand Up @@ -94,8 +94,17 @@ - (void)viewWillTransitionToSize:(CGSize)size

// MARK: - Getters and Setters

- (NSDictionary *)scanViewConfigDict {
return [[self configJSONStrWithFilename:kALTINScanVC_configFilename] asJSONObject];
- (NSDictionary *)scanViewConfigDict:(ALTINScanMode)scanMode {
switch (scanMode) {
case ALTINScanModeUniversal:
return [[self configJSONStrWithFilename:kALTINUniversalScanVC_configFilename] asJSONObject];
break;
case ALTINScanModeDOT:
return [[self configJSONStrWithFilename:kALTINNAScanVC_configFilename] asJSONObject];
break;
default: break;
}
return [[self configJSONStrWithFilename:kALTINUniversalScanVC_configFilename] asJSONObject];
}

- (BOOL)isRegionUnitedStates {
Expand All @@ -107,7 +116,7 @@ - (BOOL)isRegionUnitedStates {
// MARK: - Setup

- (ALScanViewPlugin *)scanViewPluginForScanMode:(ALTINScanMode)scanMode {
NSDictionary *JSONConfigObj = self.scanViewConfigDict;
NSDictionary *JSONConfigObj = [self scanViewConfigDict:scanMode];

// Will edit this object before constructing an ALScanViewPlugin with it later
NSError *error;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef Anyline_ALAppDemoLicenses_h
#define Anyline_ALAppDemoLicenses_h

#define kDemoAppLicenseKey @"ewogICJsaWNlbnNlS2V5VmVyc2lvbiIgOiAiMy4wIiwKICAiZGVidWdSZXBvcnRpbmciIDogIm9uIiwKICAibWFqb3JWZXJzaW9uIiA6ICIzNyIsCiAgIm1heERheXNOb3RSZXBvcnRlZCIgOiAzMCwKICAiYWR2YW5j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FtY3RTdEQ4QmF2bmVVSmg5Mk9nWDI0eGcyNmhRPT0="
#define kDemoAppLicenseKey @"ADD YOUR LICENSE KEY HERE"

#endif
#endif
4 changes: 2 additions & 2 deletions AnylineExamples/AnylineExamples.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@
LIBRARY_SEARCH_PATHS = (
"$(SDKROOT)/System/Library/Frameworks",
);
MARKETING_VERSION = 51.5.0;
MARKETING_VERSION = 51.6.0;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = io.anyline.AnylineExamples.bundle;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -1511,7 +1511,7 @@
LIBRARY_SEARCH_PATHS = (
"$(SDKROOT)/System/Library/Frameworks",
);
MARKETING_VERSION = 51.5.0;
MARKETING_VERSION = 51.6.0;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = io.anyline.AnylineExamples.bundle;
SDKROOT = iphoneos;
Expand Down

This file was deleted.

Binary file added Documentation/Anyline.doccarchive.zip
Binary file not shown.
122 changes: 0 additions & 122 deletions Documentation/html/Categories/NSArray+ALJSONExtras.html

This file was deleted.

Loading

0 comments on commit a2a3798

Please sign in to comment.