@react-native-vector-icons/feather 4.29.2 → 12.0.0-alpha.21

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/README.md CHANGED
@@ -20,6 +20,17 @@ import Feather from '@react-native-vector-icons/feather';
20
20
  <Feather name="house" color="#ff0000" size={20} />
21
21
  ```
22
22
 
23
+
24
+ ## Versions
25
+
26
+ Prior to version 12, the version of this font package tracked the upstream version.
27
+
28
+ The table below tracks which font version is included in each package version.
29
+
30
+ | RNVI version | Upstream version |
31
+ | ------------ | ---------------- |
32
+ | &lt;= 12.0.0 | 4.29.2 |
33
+
23
34
  ## Contributing
24
35
 
25
36
  See the [contributing guide](../../CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
@@ -0,0 +1,57 @@
1
+ def isNewArchitectureEnabled() {
2
+ return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
3
+ }
4
+
5
+ apply plugin: "com.android.library"
6
+ apply plugin: "kotlin-android"
7
+
8
+ if (isNewArchitectureEnabled()) {
9
+ apply plugin: "com.facebook.react"
10
+ }
11
+
12
+ def supportsNamespace() {
13
+ def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
14
+ def major = parsed[0].toInteger()
15
+ def minor = parsed[1].toInteger()
16
+
17
+ // Namespace support was added in 7.3.0
18
+ return (major == 7 && minor >= 3) || major >= 8
19
+ }
20
+
21
+ android {
22
+ if (supportsNamespace()) {
23
+ namespace "com.reactnativevectoricons.feather"
24
+
25
+ sourceSets {
26
+ main {
27
+ manifest.srcFile "src/main/AndroidManifestNew.xml"
28
+ }
29
+ }
30
+ }
31
+
32
+ compileSdkVersion 31
33
+ }
34
+
35
+ dependencies {
36
+ implementation "com.facebook.react:react-native:+"
37
+ }
38
+
39
+ if (isNewArchitectureEnabled()) {
40
+ react {
41
+ jsRootDir = file("../src/")
42
+ libraryName = "VectorIconsFeather"
43
+ codegenJavaPackageName = "com.reactnativevectoricons.feather"
44
+ }
45
+ }
46
+
47
+ android.sourceSets.main.assets.srcDirs += file("$buildDir/intermediates/RNVI-feather")
48
+
49
+ task copyFonts(type: Copy) {
50
+ from "../fonts"
51
+ include "*.ttf"
52
+
53
+ into "${buildDir}/intermediates/RNVI-feather/fonts"
54
+ eachFile { println "(RNVI:feather) Copying font ${it.file}" }
55
+ }
56
+
57
+ preBuild.dependsOn(copyFonts)
@@ -0,0 +1,3 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ package="com.reactnativevectoricons.feather">
3
+ </manifest>
@@ -0,0 +1,2 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
+ </manifest>
@@ -0,0 +1,13 @@
1
+ package com.reactnativevectoricons.feather
2
+
3
+ import com.facebook.react.bridge.ReactApplicationContext
4
+
5
+ class VectorIconsModule internal constructor(
6
+ context: ReactApplicationContext,
7
+ ) : VectorIconsSpec(context) {
8
+ override fun getName(): String = NAME
9
+
10
+ companion object {
11
+ const val NAME = "VectorIconsFeather"
12
+ }
13
+ }
@@ -0,0 +1,36 @@
1
+ package com.reactnativevectoricons.feather
2
+
3
+ import com.facebook.react.TurboReactPackage
4
+ import com.facebook.react.bridge.NativeModule
5
+ import com.facebook.react.bridge.ReactApplicationContext
6
+ import com.facebook.react.module.model.ReactModuleInfo
7
+ import com.facebook.react.module.model.ReactModuleInfoProvider
8
+
9
+ class VectorIconsFeatherPackage : TurboReactPackage() {
10
+ override fun getModule(
11
+ name: String,
12
+ reactContext: ReactApplicationContext,
13
+ ): NativeModule? =
14
+ if (name == VectorIconsModule.NAME) {
15
+ VectorIconsModule(reactContext)
16
+ } else {
17
+ null
18
+ }
19
+
20
+ override fun getReactModuleInfoProvider(): ReactModuleInfoProvider =
21
+ ReactModuleInfoProvider {
22
+ val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
23
+ // val isTurboModule: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
24
+ moduleInfos[VectorIconsModule.NAME] =
25
+ ReactModuleInfo(
26
+ VectorIconsModule.NAME, // name
27
+ VectorIconsModule.NAME, // className
28
+ false, // canOverrideExistingModule
29
+ false, // needsEagerInit
30
+ false, // hasConstants NOTE: This is deprecated but we need it to keep compatability with RN <= 0.72
31
+ false, // isCxxModule
32
+ false, // isTurboModule,
33
+ )
34
+ moduleInfos
35
+ }
36
+ }
@@ -0,0 +1,14 @@
1
+ package com.reactnativevectoricons.feather
2
+
3
+ import com.facebook.react.bridge.ReactApplicationContext
4
+ import com.facebook.react.bridge.ReactContextBaseJavaModule
5
+
6
+ abstract class VectorIconsSpec internal constructor(
7
+ context: ReactApplicationContext,
8
+ ) : ReactContextBaseJavaModule(context) {
9
+ companion object {
10
+ const val NAME = "VectorIconsFeather"
11
+ }
12
+
13
+ override fun getName(): String = NAME
14
+ }
package/fonts/Feather.ttf CHANGED
Binary file
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
9
+ var _default = exports.default = _reactNative.TurboModuleRegistry.get('VectorIconsFeather') || {};
10
+ //# sourceMappingURL=NativeVectorIconsFeather.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../src","sources":["NativeVectorIconsFeather.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAEA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAGeC,gCAAmB,CAACC,GAAG,CAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ import { TurboModuleRegistry } from 'react-native';
4
+
5
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
6
+
7
+ export default TurboModuleRegistry.get('VectorIconsFeather') || {};
8
+ //# sourceMappingURL=NativeVectorIconsFeather.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["TurboModuleRegistry","get"],"sourceRoot":"../../src","sources":["NativeVectorIconsFeather.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,cAAc;;AAElD;;AAGA,eAAeA,mBAAmB,CAACC,GAAG,CAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ import type { TurboModule } from 'react-native';
2
+ export interface Spec extends TurboModule {
3
+ }
4
+ declare const _default: Spec;
5
+ export default _default;
6
+ //# sourceMappingURL=NativeVectorIconsFeather.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeVectorIconsFeather.d.ts","sourceRoot":"","sources":["../../../../src/NativeVectorIconsFeather.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhD,MAAM,WAAW,IAAK,SAAQ,WAAW;CAAG;;AAE5C,wBAAyE"}
@@ -0,0 +1,6 @@
1
+ import type { TurboModule } from 'react-native';
2
+ export interface Spec extends TurboModule {
3
+ }
4
+ declare const _default: Spec;
5
+ export default _default;
6
+ //# sourceMappingURL=NativeVectorIconsFeather.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeVectorIconsFeather.d.ts","sourceRoot":"","sources":["../../../../src/NativeVectorIconsFeather.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhD,MAAM,WAAW,IAAK,SAAQ,WAAW;CAAG;;AAE5C,wBAAyE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-vector-icons/feather",
3
- "version": "4.29.2",
3
+ "version": "12.0.0-alpha.21",
4
4
  "description": "Feather font for react native vector icons",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/commonjs/index.js",
@@ -38,11 +38,6 @@
38
38
  "!**/__mocks__",
39
39
  "!**/.*"
40
40
  ],
41
- "scripts": {
42
- "clean": "del-cli android/build ios/build lib",
43
- "prepare": "bob build && ../../scripts/fix-glyphmaps.sh",
44
- "watch": "onchange 'src/**' --initial -- yarn run prepare"
45
- },
46
41
  "keywords": [
47
42
  "react-native",
48
43
  "ios",
@@ -64,8 +59,8 @@
64
59
  "feather"
65
60
  ],
66
61
  "repository": {
67
- "url": "https://github.com/oblador/react-native-vector-icons",
68
62
  "type": "git",
63
+ "url": "https://github.com/oblador/react-native-vector-icons.git",
69
64
  "directory": "packages/feather"
70
65
  },
71
66
  "author": {
@@ -81,14 +76,14 @@
81
76
  "registry": "https://registry.npmjs.org/"
82
77
  },
83
78
  "dependencies": {
84
- "@react-native-vector-icons/common": "^11.0.0"
79
+ "@react-native-vector-icons/common": "12.0.0-alpha.21"
85
80
  },
86
81
  "devDependencies": {
87
82
  "del-cli": "^6.0.0",
88
83
  "feather-icons": "4.29.2",
89
84
  "onchange": "^7.1.0",
90
- "react-native-builder-bob": "^0.31.0",
91
- "typescript": "^5.6.3"
85
+ "react-native-builder-bob": "^0.35.2",
86
+ "typescript": "^5.7.2"
92
87
  },
93
88
  "peerDependencies": {
94
89
  "react": "*",
@@ -126,5 +121,8 @@
126
121
  "type": "library",
127
122
  "version": "0.41.2"
128
123
  },
129
- "gitHead": "1651392734fd93ad09e833ab0c3c93f44b918439"
130
- }
124
+ "scripts": {
125
+ "clean": "del-cli android/build ios/build lib",
126
+ "watch": "onchange 'src/**' --initial -- pnpm run prepare"
127
+ }
128
+ }
@@ -0,0 +1,17 @@
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = 'react-native-vector-icons-feather'
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.homepage = package['homepage']
10
+ s.license = package['license']
11
+ s.authors = package['author']
12
+
13
+ s.platforms = { ios: min_ios_version_supported, tvos: '9.0', visionos: '1.0' }
14
+ s.source = { git: package['repository']['url'], tag: "v#{s.version}" }
15
+
16
+ s.resources = 'fonts/*.ttf'
17
+ end
@@ -0,0 +1,7 @@
1
+ import type { TurboModule } from 'react-native';
2
+ import { TurboModuleRegistry } from 'react-native';
3
+
4
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
5
+ export interface Spec extends TurboModule {}
6
+
7
+ export default TurboModuleRegistry.get<Spec>('VectorIconsFeather') || {};