Skip to content

Commit d0186eb

Browse files
committed
- Release v0.1
1 parent 20432d4 commit d0186eb

File tree

4 files changed

+41
-44
lines changed

4 files changed

+41
-44
lines changed

Notes.xcodeproj/project.pbxproj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
objects = {
88

99
/* Begin PBXFileReference section */
10-
49BA1F862CBD8E700099CDCB /* Notes.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Notes.app; sourceTree = BUILT_PRODUCTS_DIR; };
10+
49BA1F862CBD8E700099CDCB /* CloudNote AI.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CloudNote AI.app"; sourceTree = BUILT_PRODUCTS_DIR; };
1111
/* End PBXFileReference section */
1212

1313
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
@@ -67,7 +67,7 @@
6767
49BA1F872CBD8E700099CDCB /* Products */ = {
6868
isa = PBXGroup;
6969
children = (
70-
49BA1F862CBD8E700099CDCB /* Notes.app */,
70+
49BA1F862CBD8E700099CDCB /* CloudNote AI.app */,
7171
);
7272
name = Products;
7373
sourceTree = "<group>";
@@ -93,7 +93,7 @@
9393
);
9494
name = Notes;
9595
productName = Notes;
96-
productReference = 49BA1F862CBD8E700099CDCB /* Notes.app */;
96+
productReference = 49BA1F862CBD8E700099CDCB /* CloudNote AI.app */;
9797
productType = "com.apple.product-type.application";
9898
};
9999
/* End PBXNativeTarget section */
@@ -314,11 +314,11 @@
314314
CODE_SIGN_STYLE = Automatic;
315315
CURRENT_PROJECT_VERSION = 1;
316316
DEVELOPMENT_ASSET_PATHS = "\"Notes/Preview Content\"";
317-
DEVELOPMENT_TEAM = X2MJP5MGGS;
317+
DEVELOPMENT_TEAM = XWNB8PG966;
318318
ENABLE_PREVIEWS = YES;
319319
GENERATE_INFOPLIST_FILE = YES;
320320
INFOPLIST_FILE = Notes/Info.plist;
321-
INFOPLIST_KEY_CFBundleDisplayName = NoteSync;
321+
INFOPLIST_KEY_CFBundleDisplayName = "CloudNote AI";
322322
INFOPLIST_KEY_NSCameraUsageDescription = "Provide us the Camera Permission to Take Images and Record Videos to Store in Notes App.";
323323
INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Provide us the Location Permission to Provide the realtime location inside the app.";
324324
INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "Provide us the Location Permission to Provide the realtime location inside the app.";
@@ -333,8 +333,8 @@
333333
"@executable_path/Frameworks",
334334
);
335335
MARKETING_VERSION = 1.0;
336-
PRODUCT_BUNDLE_IDENTIFIER = com.codespacepro.Notes.note;
337-
PRODUCT_NAME = "$(TARGET_NAME)";
336+
PRODUCT_BUNDLE_IDENTIFIER = com.brikmas.aipowerednotes.sync.notes;
337+
PRODUCT_NAME = "CloudNote AI";
338338
SWIFT_EMIT_LOC_STRINGS = YES;
339339
SWIFT_VERSION = 5.0;
340340
TARGETED_DEVICE_FAMILY = "1,2";
@@ -349,11 +349,11 @@
349349
CODE_SIGN_STYLE = Automatic;
350350
CURRENT_PROJECT_VERSION = 1;
351351
DEVELOPMENT_ASSET_PATHS = "\"Notes/Preview Content\"";
352-
DEVELOPMENT_TEAM = X2MJP5MGGS;
352+
DEVELOPMENT_TEAM = XWNB8PG966;
353353
ENABLE_PREVIEWS = YES;
354354
GENERATE_INFOPLIST_FILE = YES;
355355
INFOPLIST_FILE = Notes/Info.plist;
356-
INFOPLIST_KEY_CFBundleDisplayName = NoteSync;
356+
INFOPLIST_KEY_CFBundleDisplayName = "CloudNote AI";
357357
INFOPLIST_KEY_NSCameraUsageDescription = "Provide us the Camera Permission to Take Images and Record Videos to Store in Notes App.";
358358
INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Provide us the Location Permission to Provide the realtime location inside the app.";
359359
INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "Provide us the Location Permission to Provide the realtime location inside the app.";
@@ -368,8 +368,8 @@
368368
"@executable_path/Frameworks",
369369
);
370370
MARKETING_VERSION = 1.0;
371-
PRODUCT_BUNDLE_IDENTIFIER = com.codespacepro.Notes.note;
372-
PRODUCT_NAME = "$(TARGET_NAME)";
371+
PRODUCT_BUNDLE_IDENTIFIER = com.brikmas.aipowerednotes.sync.notes;
372+
PRODUCT_NAME = "CloudNote AI";
373373
SWIFT_EMIT_LOC_STRINGS = YES;
374374
SWIFT_VERSION = 5.0;
375375
TARGETED_DEVICE_FAMILY = "1,2";

Notes/presentation/screens/setting/SettingScreen.swift

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ struct SettingScreen: View {
1717
@Environment(\.colorScheme) private var colorScheme
1818

1919
@State private var themeText: String = "Light Mode"
20+
@State private var appVersion: String = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "Unknown"
2021

2122
@EnvironmentObject private var appManager: AppManager
2223

@@ -26,7 +27,7 @@ struct SettingScreen: View {
2627
Group {
2728
Section("Localization") {
2829
NavigationLink(destination: CountrySelectorView(), label: {
29-
Label("Languages", systemImage: "globe")
30+
Label("Languages: \(appManager.languageName)", systemImage: "globe")
3031
})
3132
}
3233

@@ -36,11 +37,7 @@ struct SettingScreen: View {
3637
}.toggleStyle(.switch)
3738
.onChange(of: appManager.isDark) { oldValue, newValue in
3839
print("Color Scheme Changed \(newValue)")
39-
if newValue {
40-
themeText = "Dark Mode"
41-
}else {
42-
themeText = "Light Mode"
43-
}
40+
themeText = newValue ? "Dark Mode" : "Light Mode"
4441
appManager.isDark = newValue
4542
}
4643
}
@@ -59,12 +56,21 @@ struct SettingScreen: View {
5956
}
6057
}
6158

59+
Section("App Version") {
60+
HStack {
61+
Label("App Version", systemImage: "info.circle")
62+
Spacer()
63+
Text(appVersion)
64+
.foregroundColor(.gray)
65+
}
66+
}
67+
6268
}.onAppear {
6369
themeText = appManager.isDark ? "Dark Mode" : "Light Mode"
6470
}
6571
}
6672
.preferredColorScheme(appManager.isDark ? .dark : .light)
67-
.navigationTitle("Setting")
73+
.navigationTitle("Settings")
6874
}
6975
}
7076
}

Notes/presentation/screens/setting/SettingView.swift

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ struct CountrySelectorView: View {
1313
@State private var selectedCountry: Country? = nil
1414
@State private var countries: [Country] = [
1515
Country(name: "United States", flag: "🇺🇸", language: "English", languageCode: "en"),
16-
Country(name: "Canada", flag: "🇨🇦", language: "French", languageCode: "en, fr"),
16+
Country(name: "Canada", flag: "🇨🇦", language: "French", languageCode: "fr"),
1717
Country(name: "United Kingdom", flag: "🇬🇧", language: "English", languageCode: "en"),
18-
Country(name: "India", flag: "🇮🇳", language: "Hindi", languageCode: "hi, en"),
18+
Country(name: "India", flag: "🇮🇳", language: "Hindi", languageCode: "hi"),
1919
Country(name: "Germany", flag: "🇩🇪", language: "German", languageCode: "de"),
2020
Country(name: "Australia", flag: "🇦🇺", language: "English", languageCode: "en"),
2121
Country(name: "Japan", flag: "🇯🇵", language: "Japanese", languageCode: "ja"),
@@ -32,16 +32,16 @@ struct CountrySelectorView: View {
3232
Country(name: "Norway", flag: "🇳🇴", language: "Norwegian", languageCode: "no"),
3333
Country(name: "Netherlands", flag: "🇳🇱", language: "Dutch", languageCode: "nl"),
3434
Country(name: "Turkey", flag: "🇹🇷", language: "Turkish", languageCode: "tr"),
35-
Country(name: "South Africa", flag: "🇿🇦", language: "Afrikaans", languageCode: "af, en"),
35+
Country(name: "South Africa", flag: "🇿🇦", language: "Afrikaans", languageCode: "af"),
3636
Country(name: "Egypt", flag: "🇪🇬", language: "Arabic", languageCode: "ar"),
3737
Country(name: "Thailand", flag: "🇹🇭", language: "Thai", languageCode: "th"),
3838
Country(name: "Vietnam", flag: "🇻🇳", language: "Vietnamese", languageCode: "vi"),
3939
Country(name: "Argentina", flag: "🇦🇷", language: "Spanish", languageCode: "es"),
4040
Country(name: "Nigeria", flag: "🇳🇬", language: "English", languageCode: "en"),
4141
Country(name: "Indonesia", flag: "🇮🇩", language: "Indonesian", languageCode: "id"),
42-
Country(name: "Pakistan", flag: "🇵🇰", language: "Urdu", languageCode: "ur, en"),
42+
Country(name: "Pakistan", flag: "🇵🇰", language: "Urdu", languageCode: "ur"),
4343
Country(name: "Bangladesh", flag: "🇧🇩", language: "Bengali", languageCode: "bn"),
44-
Country(name: "Philippines", flag: "🇵🇭", language: "Filipino", languageCode: "fil, en"),
44+
Country(name: "Philippines", flag: "🇵🇭", language: "Filipino", languageCode: "fil"),
4545
Country(name: "Malaysia", flag: "🇲🇾", language: "Malay", languageCode: "ms"),
4646
Country(name: "Iran", flag: "🇮🇷", language: "Persian", languageCode: "fa"),
4747
Country(name: "Iraq", flag: "🇮🇶", language: "Kurdish", languageCode: "ar, ku"),
@@ -54,15 +54,15 @@ struct CountrySelectorView: View {
5454
Country(name: "Ukraine", flag: "🇺🇦", language: "Ukrainian", languageCode: "uk"),
5555
Country(name: "Greece", flag: "🇬🇷", language: "Greek", languageCode: "el"),
5656
Country(name: "Serbia", flag: "🇷🇸", language: "Serbian", languageCode: "sr"),
57-
Country(name: "Switzerland", flag: "🇨🇭", language: "French", languageCode: "de, fr, it"),
57+
Country(name: "Switzerland", flag: "🇨🇭", language: "French", languageCode: "de"),
5858
Country(name: "Denmark", flag: "🇩🇰", language: "Danish", languageCode: "da"),
5959
Country(name: "Finland", flag: "🇫🇮", language: "Finnish", languageCode: "fi, sv"),
6060
Country(name: "Iceland", flag: "🇮🇸", language: "Icelandic", languageCode: "is"),
6161
Country(name: "Estonia", flag: "🇪🇪", language: "Estonian", languageCode: "et"),
6262
Country(name: "Latvia", flag: "🇱🇻", language: "Latvian", languageCode: "lv"),
6363
Country(name: "Lithuania", flag: "🇱🇹", language: "Lithuanian", languageCode: "lt"),
64-
Country(name: "Belarus", flag: "🇧🇾", language: "Russian", languageCode: "be, ru"),
65-
Country(name: "Kazakhstan", flag: "🇰🇿", language: "Russian", languageCode: "kk, ru"),
64+
Country(name: "Belarus", flag: "🇧🇾", language: "Russian", languageCode: "be"),
65+
Country(name: "Kazakhstan", flag: "🇰🇿", language: "Russian", languageCode: "kk"),
6666
]
6767

6868

@@ -84,21 +84,6 @@ struct CountrySelectorView: View {
8484

8585
var body: some View {
8686
VStack {
87-
if let selectedCountry = selectedCountry {
88-
HStack {
89-
Text(selectedCountry.flag)
90-
.font(.largeTitle)
91-
Text(selectedCountry.language)
92-
.font(.title)
93-
.bold()
94-
}
95-
.padding()
96-
} else {
97-
Text("Select a language")
98-
.font(.title2)
99-
.foregroundColor(.gray)
100-
.padding()
101-
}
10287

10388
TextField("Search countries", text: $searchText)
10489
.padding(10)
@@ -111,9 +96,9 @@ struct CountrySelectorView: View {
11196
Text(country.flag)
11297
.font(.largeTitle)
11398
VStack(alignment: .leading) {
114-
Text(country.name)
99+
Text(country.language)
115100
.font(.headline)
116-
Text("\(country.language) (\(country.languageCode))")
101+
Text("\(country.languageCode)")
117102
.font(.subheadline)
118103
.foregroundColor(.gray)
119104
}
@@ -133,7 +118,13 @@ struct CountrySelectorView: View {
133118
.listStyle(PlainListStyle())
134119
.padding()
135120
}
136-
.navigationTitle("Select Country")
121+
.navigationTitle("Select Language")
122+
.onAppear {
123+
if let selected = countries.first(where: { $0.languageCode == appManager.appLanguage }) {
124+
selectedCountry = selected
125+
}
126+
}
127+
137128
}
138129
}
139130

0 commit comments

Comments
 (0)