react-native-timezone 2.3.0 → 3.1.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.
Files changed (57) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +44 -25
  3. package/android/build.gradle +64 -80
  4. package/android/generated/java/com/samitha/timezone/NativeTimezoneSpec.java +50 -0
  5. package/android/generated/jni/CMakeLists.txt +36 -0
  6. package/android/generated/jni/RNTimezoneSpec-generated.cpp +50 -0
  7. package/android/generated/jni/RNTimezoneSpec.h +31 -0
  8. package/android/generated/jni/react/renderer/components/RNTimezoneSpec/RNTimezoneSpecJSI-generated.cpp +48 -0
  9. package/android/generated/jni/react/renderer/components/RNTimezoneSpec/RNTimezoneSpecJSI.h +94 -0
  10. package/android/src/main/AndroidManifest.xml +1 -2
  11. package/android/src/main/AndroidManifestNew.xml +2 -0
  12. package/android/src/main/java/com/samitha/timezone/TimezoneModule.kt +86 -0
  13. package/android/src/main/java/com/samitha/timezone/TimezonePackage.kt +34 -0
  14. package/ios/Timezone.h +1 -7
  15. package/ios/Timezone.mm +42 -18
  16. package/ios/generated/RNTimezoneSpec/RNTimezoneSpec-generated.mm +60 -0
  17. package/ios/generated/RNTimezoneSpec/RNTimezoneSpec.h +62 -0
  18. package/ios/generated/RNTimezoneSpecJSI-generated.cpp +48 -0
  19. package/ios/generated/RNTimezoneSpecJSI.h +94 -0
  20. package/lib/commonjs/NativeTimezone.js +9 -0
  21. package/lib/commonjs/NativeTimezone.js.map +1 -0
  22. package/lib/commonjs/index.js +12 -10
  23. package/lib/commonjs/index.js.map +1 -1
  24. package/lib/module/NativeTimezone.js +5 -0
  25. package/lib/module/NativeTimezone.js.map +1 -0
  26. package/lib/module/index.js +14 -10
  27. package/lib/module/index.js.map +1 -1
  28. package/lib/typescript/commonjs/package.json +1 -0
  29. package/lib/typescript/commonjs/src/NativeTimezone.d.ts +10 -0
  30. package/lib/typescript/commonjs/src/NativeTimezone.d.ts.map +1 -0
  31. package/lib/typescript/commonjs/src/index.d.ts +8 -0
  32. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  33. package/lib/typescript/module/package.json +1 -0
  34. package/lib/typescript/module/src/NativeTimezone.d.ts +10 -0
  35. package/lib/typescript/module/src/NativeTimezone.d.ts.map +1 -0
  36. package/lib/typescript/module/src/index.d.ts +8 -0
  37. package/lib/typescript/module/src/index.d.ts.map +1 -0
  38. package/package.json +87 -48
  39. package/react-native-timezone.podspec +23 -16
  40. package/react-native.config.js +12 -0
  41. package/src/NativeTimezone.ts +11 -0
  42. package/src/index.tsx +15 -0
  43. package/android/src/main/java/com/samitha/rn/timezone/TimezoneModule.java +0 -41
  44. package/android/src/main/java/com/samitha/rn/timezone/TimezonePackage.java +0 -28
  45. package/ios/Timezone.xcodeproj/project.pbxproj +0 -274
  46. package/ios/Timezone.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
  47. package/ios/Timezone.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  48. package/ios/Timezone.xcodeproj/project.xcworkspace/xcuserdata/samitha.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  49. package/ios/Timezone.xcodeproj/xcuserdata/samitha.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  50. package/lib/commonjs/index.d.js +0 -6
  51. package/lib/commonjs/index.d.js.map +0 -1
  52. package/lib/module/index.d.js +0 -2
  53. package/lib/module/index.d.js.map +0 -1
  54. package/lib/typescript/index.test.d.ts +0 -1
  55. package/lib/typescript/index.test.d.ts.map +0 -1
  56. package/src/index.d.ts +0 -5
  57. package/src/index.js +0 -20
package/package.json CHANGED
@@ -1,12 +1,22 @@
1
1
  {
2
2
  "name": "react-native-timezone",
3
- "version": "2.3.0",
4
- "description": "A Simple react native module to get Timezone of the Android/iOS device.",
5
- "main": "lib/commonjs/index",
6
- "module": "lib/module/index",
7
- "types": "lib/typescript/index.d.ts",
8
- "react-native": "src/index",
9
- "source": "src/index",
3
+ "version": "3.1.0",
4
+ "description": "A Simple react native module to get Timezone and Region of the Android/iOS devices.",
5
+ "source": "./src/index.tsx",
6
+ "main": "./lib/commonjs/index.js",
7
+ "module": "./lib/module/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./lib/typescript/module/src/index.d.ts",
12
+ "default": "./lib/module/index.js"
13
+ },
14
+ "require": {
15
+ "types": "./lib/typescript/commonjs/src/index.d.ts",
16
+ "default": "./lib/commonjs/index.js"
17
+ }
18
+ }
19
+ },
10
20
  "files": [
11
21
  "src",
12
22
  "lib",
@@ -14,7 +24,7 @@
14
24
  "ios",
15
25
  "cpp",
16
26
  "*.podspec",
17
- "!lib/typescript/example",
27
+ "react-native.config.js",
18
28
  "!ios/build",
19
29
  "!android/build",
20
30
  "!android/gradle",
@@ -27,22 +37,24 @@
27
37
  "!**/.*"
28
38
  ],
29
39
  "scripts": {
40
+ "example": "yarn workspace react-native-timezone-example",
30
41
  "test": "jest",
31
- "typescript": "tsc --noEmit",
42
+ "typecheck": "tsc",
32
43
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
44
+ "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
33
45
  "prepare": "bob build",
34
- "release": "release-it",
35
- "example": "yarn --cwd example",
36
- "bootstrap": "yarn example && yarn install && yarn example pods",
37
- "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
46
+ "release": "release-it"
38
47
  },
39
48
  "keywords": [
40
49
  "react-native",
41
50
  "ios",
42
51
  "android"
43
52
  ],
44
- "repository": "https://github.com/samitha9125/react-native-timezone",
45
- "author": "Samitha Nanayakkara <samithananayakkara@gmail.com> (https://www.samithananayakkara.com)",
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "git+https://github.com/samitha9125/react-native-timezone.git"
56
+ },
57
+ "author": "Samitha Nanayakkara <samithananayakkara@gmail.com> (https://samithananayakkara.com)",
46
58
  "license": "MIT",
47
59
  "bugs": {
48
60
  "url": "https://github.com/samitha9125/react-native-timezone/issues"
@@ -52,38 +64,38 @@
52
64
  "registry": "https://registry.npmjs.org/"
53
65
  },
54
66
  "devDependencies": {
55
- "@arkweid/lefthook": "^0.7.7",
56
67
  "@commitlint/config-conventional": "^17.0.2",
57
- "@react-native-community/eslint-config": "^3.0.2",
58
- "@release-it/conventional-changelog": "^5.0.0",
59
- "@types/jest": "^28.1.2",
60
- "@types/react": "~17.0.21",
61
- "@types/react-native": "0.70.0",
68
+ "@evilmartians/lefthook": "^1.5.0",
69
+ "@react-native-community/cli": "15.0.1",
70
+ "@react-native/eslint-config": "^0.73.1",
71
+ "@release-it/conventional-changelog": "^9.0.2",
72
+ "@types/jest": "^29.5.5",
73
+ "@types/react": "^18.2.44",
62
74
  "commitlint": "^17.0.2",
63
- "del-cli": "^5.0.0",
64
- "eslint": "^8.4.1",
65
- "eslint-config-prettier": "^8.5.0",
66
- "eslint-plugin-prettier": "^4.0.0",
67
- "jest": "^28.1.1",
68
- "pod-install": "^0.1.0",
69
- "prettier": "^2.0.5",
70
- "react": "18.1.0",
71
- "react-native": "0.70.6",
72
- "react-native-builder-bob": "^0.20.0",
73
- "release-it": "^15.0.0",
74
- "typescript": "^4.5.2"
75
+ "del-cli": "^5.1.0",
76
+ "eslint": "^8.51.0",
77
+ "eslint-config-prettier": "^9.0.0",
78
+ "eslint-plugin-prettier": "^5.0.1",
79
+ "jest": "^29.7.0",
80
+ "prettier": "^3.0.3",
81
+ "react": "18.3.1",
82
+ "react-native": "0.76.5",
83
+ "react-native-builder-bob": "^0.35.2",
84
+ "release-it": "^17.10.0",
85
+ "turbo": "^1.10.7",
86
+ "typescript": "^5.2.2"
75
87
  },
76
88
  "resolutions": {
77
- "@types/react": "17.0.21"
89
+ "@types/react": "^18.2.44"
78
90
  },
79
91
  "peerDependencies": {
80
92
  "react": "*",
81
93
  "react-native": "*"
82
94
  },
83
- "engines": {
84
- "node": ">= 14.0.0"
85
- },
86
- "packageManager": "^yarn@1.22.15",
95
+ "workspaces": [
96
+ "example"
97
+ ],
98
+ "packageManager": "yarn@3.6.1",
87
99
  "jest": {
88
100
  "preset": "react-native",
89
101
  "modulePathIgnorePatterns": [
@@ -99,27 +111,24 @@
99
111
  "release-it": {
100
112
  "git": {
101
113
  "commitMessage": "chore: release ${version}",
102
- "tagName": "v${version}"
114
+ "tagName": "v${version}",
115
+ "requireBranch": "main"
103
116
  },
104
117
  "npm": {
105
118
  "publish": true
106
119
  },
107
120
  "github": {
108
121
  "release": true
109
- },
110
- "plugins": {
111
- "@release-it/conventional-changelog": {
112
- "preset": "angular"
113
- }
114
122
  }
115
123
  },
116
124
  "eslintConfig": {
117
125
  "root": true,
118
126
  "extends": [
119
- "@react-native-community",
127
+ "@react-native",
120
128
  "prettier"
121
129
  ],
122
130
  "rules": {
131
+ "react/react-in-jsx-scope": "off",
123
132
  "prettier/prettier": [
124
133
  "error",
125
134
  {
@@ -147,14 +156,44 @@
147
156
  "source": "src",
148
157
  "output": "lib",
149
158
  "targets": [
150
- "commonjs",
151
- "module",
159
+ "codegen",
160
+ [
161
+ "commonjs",
162
+ {
163
+ "esm": true
164
+ }
165
+ ],
166
+ [
167
+ "module",
168
+ {
169
+ "esm": true
170
+ }
171
+ ],
152
172
  [
153
173
  "typescript",
154
174
  {
155
- "project": "tsconfig.build.json"
175
+ "project": "tsconfig.build.json",
176
+ "esm": true
156
177
  }
157
178
  ]
158
179
  ]
180
+ },
181
+ "codegenConfig": {
182
+ "name": "RNTimezoneSpec",
183
+ "type": "modules",
184
+ "jsSrcsDir": "src",
185
+ "outputDir": {
186
+ "ios": "ios/generated",
187
+ "android": "android/generated"
188
+ },
189
+ "android": {
190
+ "javaPackageName": "com.samitha.timezone"
191
+ },
192
+ "includesGeneratedCode": true
193
+ },
194
+ "create-react-native-library": {
195
+ "type": "turbo-module",
196
+ "languages": "kotlin-objc",
197
+ "version": "0.45.5"
159
198
  }
160
199
  }
@@ -11,25 +11,32 @@ Pod::Spec.new do |s|
11
11
  s.license = package["license"]
12
12
  s.authors = package["author"]
13
13
 
14
- s.platforms = { :ios => "11.0" }
14
+ s.platforms = { :ios => min_ios_version_supported }
15
15
  s.source = { :git => "https://github.com/samitha9125/react-native-timezone.git", :tag => "#{s.version}" }
16
16
 
17
- s.source_files = "ios/**/*.{h,m,mm}"
17
+ s.source_files = "ios/**/*.{h,m,mm,cpp}"
18
+ s.ios.frameworks = ['CoreTelephony']
18
19
 
19
- s.dependency "React-Core"
20
+ # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
21
+ # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
22
+ if respond_to?(:install_modules_dependencies, true)
23
+ install_modules_dependencies(s)
24
+ else
25
+ s.dependency "React-Core"
20
26
 
21
- # Don't install the dependencies when we run `pod install` in the old architecture.
22
- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
23
- s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
24
- s.pod_target_xcconfig = {
25
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
26
- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
27
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
28
- }
29
- s.dependency "React-Codegen"
30
- s.dependency "RCT-Folly"
31
- s.dependency "RCTRequired"
32
- s.dependency "RCTTypeSafety"
33
- s.dependency "ReactCommon/turbomodule/core"
27
+ # Don't install the dependencies when we run `pod install` in the old architecture.
28
+ if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
29
+ s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
30
+ s.pod_target_xcconfig = {
31
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
32
+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
33
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
34
+ }
35
+ s.dependency "React-Codegen"
36
+ s.dependency "RCT-Folly"
37
+ s.dependency "RCTRequired"
38
+ s.dependency "RCTTypeSafety"
39
+ s.dependency "ReactCommon/turbomodule/core"
40
+ end
34
41
  end
35
42
  end
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @type {import('@react-native-community/cli-types').UserDependencyConfig}
3
+ */
4
+ module.exports = {
5
+ dependency: {
6
+ platforms: {
7
+ android: {
8
+ cmakeListsPath: 'generated/jni/CMakeLists.txt',
9
+ },
10
+ },
11
+ },
12
+ };
@@ -0,0 +1,11 @@
1
+ import type { TurboModule } from 'react-native';
2
+ import { TurboModuleRegistry } from 'react-native';
3
+
4
+ export interface Spec extends TurboModule {
5
+ getTimeZone(): string | null;
6
+ getRegionByLocale(): string | null;
7
+ getRegionByTelephony(): string | null;
8
+ isAutoTimeZoneEnabled(): boolean | null;
9
+ }
10
+
11
+ export default TurboModuleRegistry.getEnforcing<Spec>('Timezone');
package/src/index.tsx ADDED
@@ -0,0 +1,15 @@
1
+ import { Platform } from 'react-native';
2
+
3
+ import Timezone from './NativeTimezone';
4
+
5
+ export default {
6
+ getTimeZone: () => Timezone.getTimeZone(),
7
+ getRegionByLocale: () => Timezone.getRegionByLocale(),
8
+ getRegionByTelephony: () => Timezone.getRegionByTelephony(),
9
+ isAutoTimeZoneEnabled: () => {
10
+ if (Platform.OS === 'android') {
11
+ return Timezone.isAutoTimeZoneEnabled();
12
+ }
13
+ return null;
14
+ },
15
+ };
@@ -1,41 +0,0 @@
1
- package com.samitha.rn.timezone;
2
-
3
- import androidx.annotation.NonNull;
4
-
5
- import com.facebook.react.bridge.Promise;
6
- import com.facebook.react.bridge.ReactApplicationContext;
7
- import com.facebook.react.bridge.ReactContextBaseJavaModule;
8
- import com.facebook.react.bridge.ReactMethod;
9
- import com.facebook.react.module.annotations.ReactModule;
10
-
11
- import java.util.TimeZone;
12
- import java.util.Calendar;
13
-
14
- @ReactModule(name = TimezoneModule.NAME)
15
- public class TimezoneModule extends ReactContextBaseJavaModule {
16
- public static final String NAME = "Timezone";
17
-
18
- public TimezoneModule(ReactApplicationContext reactContext) {
19
- super(reactContext);
20
- }
21
-
22
- @Override
23
- @NonNull
24
- public String getName() {
25
- return NAME;
26
- }
27
-
28
-
29
- // Example method
30
- // See https://reactnative.dev/docs/native-modules-android
31
- @ReactMethod
32
- public void getTimeZone(Promise promise) {
33
- try {
34
- Calendar calendar = Calendar.getInstance(TimeZone.getDefault());
35
- TimeZone zone = calendar.getTimeZone();
36
- promise.resolve(zone.getID());
37
- }catch (Exception e){
38
- promise.reject(e);
39
- }
40
- }
41
- }
@@ -1,28 +0,0 @@
1
- package com.samitha.rn.timezone;
2
-
3
- import androidx.annotation.NonNull;
4
-
5
- import com.facebook.react.ReactPackage;
6
- import com.facebook.react.bridge.NativeModule;
7
- import com.facebook.react.bridge.ReactApplicationContext;
8
- import com.facebook.react.uimanager.ViewManager;
9
-
10
- import java.util.ArrayList;
11
- import java.util.Collections;
12
- import java.util.List;
13
-
14
- public class TimezonePackage implements ReactPackage {
15
- @NonNull
16
- @Override
17
- public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
18
- List<NativeModule> modules = new ArrayList<>();
19
- modules.add(new TimezoneModule(reactContext));
20
- return modules;
21
- }
22
-
23
- @NonNull
24
- @Override
25
- public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
26
- return Collections.emptyList();
27
- }
28
- }
@@ -1,274 +0,0 @@
1
- // !$*UTF8*$!
2
- {
3
- archiveVersion = 1;
4
- classes = {
5
- };
6
- objectVersion = 46;
7
- objects = {
8
-
9
- /* Begin PBXBuildFile section */
10
- 5E555C0D2413F4C50049A1A2 /* Timezone.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* Timezone.m */; };
11
- /* End PBXBuildFile section */
12
-
13
- /* Begin PBXCopyFilesBuildPhase section */
14
- 58B511D91A9E6C8500147676 /* CopyFiles */ = {
15
- isa = PBXCopyFilesBuildPhase;
16
- buildActionMask = 2147483647;
17
- dstPath = "include/$(PRODUCT_NAME)";
18
- dstSubfolderSpec = 16;
19
- files = (
20
- );
21
- runOnlyForDeploymentPostprocessing = 0;
22
- };
23
- /* End PBXCopyFilesBuildPhase section */
24
-
25
- /* Begin PBXFileReference section */
26
- 134814201AA4EA6300B7C361 /* libTimezone.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libTimezone.a; sourceTree = BUILT_PRODUCTS_DIR; };
27
- B3E7B5881CC2AC0600A0062D /* Timezone.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Timezone.h; sourceTree = "<group>"; };
28
- B3E7B5891CC2AC0600A0062D /* Timezone.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Timezone.m; sourceTree = "<group>"; };
29
- /* End PBXFileReference section */
30
-
31
- /* Begin PBXFrameworksBuildPhase section */
32
- 58B511D81A9E6C8500147676 /* Frameworks */ = {
33
- isa = PBXFrameworksBuildPhase;
34
- buildActionMask = 2147483647;
35
- files = (
36
- );
37
- runOnlyForDeploymentPostprocessing = 0;
38
- };
39
- /* End PBXFrameworksBuildPhase section */
40
-
41
- /* Begin PBXGroup section */
42
- 134814211AA4EA7D00B7C361 /* Products */ = {
43
- isa = PBXGroup;
44
- children = (
45
- 134814201AA4EA6300B7C361 /* libTimezone.a */,
46
- );
47
- name = Products;
48
- sourceTree = "<group>";
49
- };
50
- 58B511D21A9E6C8500147676 = {
51
- isa = PBXGroup;
52
- children = (
53
- B3E7B5881CC2AC0600A0062D /* Timezone.h */,
54
- B3E7B5891CC2AC0600A0062D /* Timezone.m */,
55
- 134814211AA4EA7D00B7C361 /* Products */,
56
- );
57
- sourceTree = "<group>";
58
- };
59
- /* End PBXGroup section */
60
-
61
- /* Begin PBXNativeTarget section */
62
- 58B511DA1A9E6C8500147676 /* Timezone */ = {
63
- isa = PBXNativeTarget;
64
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "Timezone" */;
65
- buildPhases = (
66
- 58B511D71A9E6C8500147676 /* Sources */,
67
- 58B511D81A9E6C8500147676 /* Frameworks */,
68
- 58B511D91A9E6C8500147676 /* CopyFiles */,
69
- );
70
- buildRules = (
71
- );
72
- dependencies = (
73
- );
74
- name = Timezone;
75
- productName = RCTDataManager;
76
- productReference = 134814201AA4EA6300B7C361 /* libTimezone.a */;
77
- productType = "com.apple.product-type.library.static";
78
- };
79
- /* End PBXNativeTarget section */
80
-
81
- /* Begin PBXProject section */
82
- 58B511D31A9E6C8500147676 /* Project object */ = {
83
- isa = PBXProject;
84
- attributes = {
85
- LastUpgradeCheck = 0920;
86
- ORGANIZATIONNAME = Facebook;
87
- TargetAttributes = {
88
- 58B511DA1A9E6C8500147676 = {
89
- CreatedOnToolsVersion = 6.1.1;
90
- };
91
- };
92
- };
93
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "Timezone" */;
94
- compatibilityVersion = "Xcode 3.2";
95
- developmentRegion = English;
96
- hasScannedForEncodings = 0;
97
- knownRegions = (
98
- English,
99
- en,
100
- );
101
- mainGroup = 58B511D21A9E6C8500147676;
102
- productRefGroup = 58B511D21A9E6C8500147676;
103
- projectDirPath = "";
104
- projectRoot = "";
105
- targets = (
106
- 58B511DA1A9E6C8500147676 /* Timezone */,
107
- );
108
- };
109
- /* End PBXProject section */
110
-
111
- /* Begin PBXSourcesBuildPhase section */
112
- 58B511D71A9E6C8500147676 /* Sources */ = {
113
- isa = PBXSourcesBuildPhase;
114
- buildActionMask = 2147483647;
115
- files = (
116
- B3E7B58A1CC2AC0600A0062D /* Timezone.m in Sources */,
117
- );
118
- runOnlyForDeploymentPostprocessing = 0;
119
- };
120
- /* End PBXSourcesBuildPhase section */
121
-
122
- /* Begin XCBuildConfiguration section */
123
- 58B511ED1A9E6C8500147676 /* Debug */ = {
124
- isa = XCBuildConfiguration;
125
- buildSettings = {
126
- ALWAYS_SEARCH_USER_PATHS = NO;
127
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
128
- CLANG_CXX_LIBRARY = "libc++";
129
- CLANG_ENABLE_MODULES = YES;
130
- CLANG_ENABLE_OBJC_ARC = YES;
131
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
132
- CLANG_WARN_BOOL_CONVERSION = YES;
133
- CLANG_WARN_COMMA = YES;
134
- CLANG_WARN_CONSTANT_CONVERSION = YES;
135
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
136
- CLANG_WARN_EMPTY_BODY = YES;
137
- CLANG_WARN_ENUM_CONVERSION = YES;
138
- CLANG_WARN_INFINITE_RECURSION = YES;
139
- CLANG_WARN_INT_CONVERSION = YES;
140
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
141
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
142
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
143
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
144
- CLANG_WARN_STRICT_PROTOTYPES = YES;
145
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
146
- CLANG_WARN_UNREACHABLE_CODE = YES;
147
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
148
- COPY_PHASE_STRIP = NO;
149
- ENABLE_STRICT_OBJC_MSGSEND = YES;
150
- ENABLE_TESTABILITY = YES;
151
- "EXCLUDED_ARCHS[sdk=*]" = arm64;
152
- GCC_C_LANGUAGE_STANDARD = gnu99;
153
- GCC_DYNAMIC_NO_PIC = NO;
154
- GCC_NO_COMMON_BLOCKS = YES;
155
- GCC_OPTIMIZATION_LEVEL = 0;
156
- GCC_PREPROCESSOR_DEFINITIONS = (
157
- "DEBUG=1",
158
- "$(inherited)",
159
- );
160
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
161
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
162
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
163
- GCC_WARN_UNDECLARED_SELECTOR = YES;
164
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
165
- GCC_WARN_UNUSED_FUNCTION = YES;
166
- GCC_WARN_UNUSED_VARIABLE = YES;
167
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
168
- MTL_ENABLE_DEBUG_INFO = YES;
169
- ONLY_ACTIVE_ARCH = YES;
170
- SDKROOT = iphoneos;
171
- };
172
- name = Debug;
173
- };
174
- 58B511EE1A9E6C8500147676 /* Release */ = {
175
- isa = XCBuildConfiguration;
176
- buildSettings = {
177
- ALWAYS_SEARCH_USER_PATHS = NO;
178
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
179
- CLANG_CXX_LIBRARY = "libc++";
180
- CLANG_ENABLE_MODULES = YES;
181
- CLANG_ENABLE_OBJC_ARC = YES;
182
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
183
- CLANG_WARN_BOOL_CONVERSION = YES;
184
- CLANG_WARN_COMMA = YES;
185
- CLANG_WARN_CONSTANT_CONVERSION = YES;
186
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
187
- CLANG_WARN_EMPTY_BODY = YES;
188
- CLANG_WARN_ENUM_CONVERSION = YES;
189
- CLANG_WARN_INFINITE_RECURSION = YES;
190
- CLANG_WARN_INT_CONVERSION = YES;
191
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
192
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
193
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
194
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
195
- CLANG_WARN_STRICT_PROTOTYPES = YES;
196
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
197
- CLANG_WARN_UNREACHABLE_CODE = YES;
198
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
199
- COPY_PHASE_STRIP = YES;
200
- ENABLE_NS_ASSERTIONS = NO;
201
- ENABLE_STRICT_OBJC_MSGSEND = YES;
202
- "EXCLUDED_ARCHS[sdk=*]" = arm64;
203
- GCC_C_LANGUAGE_STANDARD = gnu99;
204
- GCC_NO_COMMON_BLOCKS = YES;
205
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
206
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
207
- GCC_WARN_UNDECLARED_SELECTOR = YES;
208
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
209
- GCC_WARN_UNUSED_FUNCTION = YES;
210
- GCC_WARN_UNUSED_VARIABLE = YES;
211
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
212
- MTL_ENABLE_DEBUG_INFO = NO;
213
- SDKROOT = iphoneos;
214
- VALIDATE_PRODUCT = YES;
215
- };
216
- name = Release;
217
- };
218
- 58B511F01A9E6C8500147676 /* Debug */ = {
219
- isa = XCBuildConfiguration;
220
- buildSettings = {
221
- HEADER_SEARCH_PATHS = (
222
- "$(inherited)",
223
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
224
- "$(SRCROOT)/../../../React/**",
225
- "$(SRCROOT)/../../react-native/React/**",
226
- );
227
- LIBRARY_SEARCH_PATHS = "$(inherited)";
228
- OTHER_LDFLAGS = "-ObjC";
229
- PRODUCT_NAME = Timezone;
230
- SKIP_INSTALL = YES;
231
- };
232
- name = Debug;
233
- };
234
- 58B511F11A9E6C8500147676 /* Release */ = {
235
- isa = XCBuildConfiguration;
236
- buildSettings = {
237
- HEADER_SEARCH_PATHS = (
238
- "$(inherited)",
239
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
240
- "$(SRCROOT)/../../../React/**",
241
- "$(SRCROOT)/../../react-native/React/**",
242
- );
243
- LIBRARY_SEARCH_PATHS = "$(inherited)";
244
- OTHER_LDFLAGS = "-ObjC";
245
- PRODUCT_NAME = Timezone;
246
- SKIP_INSTALL = YES;
247
- };
248
- name = Release;
249
- };
250
- /* End XCBuildConfiguration section */
251
-
252
- /* Begin XCConfigurationList section */
253
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "Timezone" */ = {
254
- isa = XCConfigurationList;
255
- buildConfigurations = (
256
- 58B511ED1A9E6C8500147676 /* Debug */,
257
- 58B511EE1A9E6C8500147676 /* Release */,
258
- );
259
- defaultConfigurationIsVisible = 0;
260
- defaultConfigurationName = Release;
261
- };
262
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "Timezone" */ = {
263
- isa = XCConfigurationList;
264
- buildConfigurations = (
265
- 58B511F01A9E6C8500147676 /* Debug */,
266
- 58B511F11A9E6C8500147676 /* Release */,
267
- );
268
- defaultConfigurationIsVisible = 0;
269
- defaultConfigurationName = Release;
270
- };
271
- /* End XCConfigurationList section */
272
- };
273
- rootObject = 58B511D31A9E6C8500147676 /* Project object */;
274
- }
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- </Workspace>
@@ -1,8 +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>IDEDidComputeMac32BitWarning</key>
6
- <true/>
7
- </dict>
8
- </plist>