From 649976de7ffeb4258788a4575fbaeb3381f771cf Mon Sep 17 00:00:00 2001 From: Adam Tunnic Date: Thu, 25 Nov 2021 23:45:21 -0500 Subject: [PATCH] fix version --- Natives/UpdateHistoryViewController.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Natives/UpdateHistoryViewController.m b/Natives/UpdateHistoryViewController.m index f71251e9..22fdd501 100644 --- a/Natives/UpdateHistoryViewController.m +++ b/Natives/UpdateHistoryViewController.m @@ -2,6 +2,11 @@ #include "utils.h" +#if CONFIG_RELEASE == 1 +# define CONFIG_TYPE "release" +#else +# define CONFIG_TYPE "debug" +#endif @interface UpdateHistoryViewController () { } @@ -42,7 +47,7 @@ [latestVerNote setFont:[UIFont boldSystemFontOfSize:25]]; UILabel *latestVerView = [[UILabel alloc] initWithFrame:CGRectMake(4.0, latestVerNote.frame.origin.y + latestVerNote.frame.size.height, scrollView.frame.size.width - 4, 30.0)]; - latestVerView.text = @"2.0 (development)"; + latestVerView.text = [NSString stringWithFormat:@"2.0 (%s)", CONFIG_TYPE]; latestVerView.lineBreakMode = NSLineBreakByWordWrapping; latestVerView.numberOfLines = 0; [scrollView addSubview:latestVerView];