diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index 6e42fec..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: 🐛 Bug report -description: Report a reproducible bug or regression in this library. -labels: [bug] -body: - - type: markdown - attributes: - value: | - # Bug report - - 👋 Hi! - - **Please fill the following carefully before opening a new issue ❗** - *(Your issue may be closed if it doesn't provide the required pieces of information)* - - type: checkboxes - attributes: - label: Before submitting a new issue - description: Please perform simple checks first. - options: - - label: I tested using the latest version of the library, as the bug might be already fixed. - required: true - - label: I tested using a [supported version](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) of react native. - required: true - - label: I checked for possible duplicate issues, with possible answers. - required: true - - type: textarea - id: summary - attributes: - label: Bug summary - description: | - Provide a clear and concise description of what the bug is. - If needed, you can also provide other samples: error messages / stack traces, screenshots, gifs, etc. - validations: - required: true - - type: input - id: library-version - attributes: - label: Library version - description: What version of the library are you using? - placeholder: "x.x.x" - validations: - required: true - - type: textarea - id: react-native-info - attributes: - label: Environment info - description: Run `react-native info` in your terminal and paste the results here. - render: shell - validations: - required: true - - type: textarea - id: steps-to-reproduce - attributes: - label: Steps to reproduce - description: | - You must provide a clear list of steps and code to reproduce the problem. - value: | - 1. … - 2. … - validations: - required: true - - type: input - id: reproducible-example - attributes: - label: Reproducible example repository - description: Please provide a link to a repository on GitHub with a reproducible example. - validations: - required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index b1def59..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,8 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: Feature Request 💡 - url: https://gitea.jzitnik.dev/jzitnik/react-native-jecnaapi/discussions/new?category=ideas - about: If you have a feature request, please create a new discussion on GitHub. - - name: Discussions on GitHub 💬 - url: https://gitea.jzitnik.dev/jzitnik/react-native-jecnaapi/discussions - about: If this library works as promised but you need help, please ask questions there. diff --git a/Jecnaapi.podspec b/Jecnaapi.podspec index 7ff8f72..edc0596 100644 --- a/Jecnaapi.podspec +++ b/Jecnaapi.podspec @@ -1,6 +1,7 @@ require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) +JECNA_API_VERSION = package["jecnaApiVersion"] Pod::Spec.new do |s| s.name = "Jecnaapi" @@ -19,6 +20,14 @@ Pod::Spec.new do |s| "cpp/**/*.{hpp,cpp}", ] + s.prepare_command = <<-CMD + curl -sL "https://github.com/tomhula/JecnaAPI/releases/download/v#{JECNA_API_VERSION}/JecnaapiIOS-v#{JECNA_API_VERSION}-xcframework.zip" -o JecnaAPI.xcframework.zip + unzip -o JecnaAPI.xcframework.zip + rm JecnaAPI.xcframework.zip + CMD + s.vendored_frameworks = "JecnaAPI.xcframework" + s.preserve_paths = "JecnaAPI.xcframework" + s.dependency 'React-jsi' s.dependency 'React-callinvoker' diff --git a/android/build.gradle b/android/build.gradle index 4b1df60..3785308 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,8 +1,10 @@ buildscript { + def packageJson = new groovy.json.JsonSlurper().parse(file('../package.json')) ext.Jecnaapi = [ kotlinVersion: "2.0.21", minSdkVersion: 24, - compileSdkVersion: 36 + compileSdkVersion: 36, + jecnaApiVersion: packageJson.jecnaApiVersion ] ext.getExtOrDefault = { prop -> @@ -37,7 +39,7 @@ apply from: '../nitrogen/generated/android/jecnaapi+autolinking.gradle' apply plugin: "com.facebook.react" android { - namespace "com.margelo.nitro.jecnaapi" + namespace "cz.jzitnik.jecnaapi_react_native" compileSdkVersion getExtOrDefault("compileSdkVersion") @@ -109,4 +111,5 @@ android { dependencies { implementation "com.facebook.react:react-android" implementation project(":react-native-nitro-modules") + implementation "io.github.tomhula:jecnaapi-core:${getExtOrDefault('jecnaApiVersion')}" } diff --git a/android/src/main/java/com/margelo/nitro/jecnaapi/Jecnaapi.kt b/android/src/main/java/cz/jzitnik/jecnaapi_react_native/Jecnaapi.kt similarity index 82% rename from android/src/main/java/com/margelo/nitro/jecnaapi/Jecnaapi.kt rename to android/src/main/java/cz/jzitnik/jecnaapi_react_native/Jecnaapi.kt index 2d01109..27f91ef 100644 --- a/android/src/main/java/com/margelo/nitro/jecnaapi/Jecnaapi.kt +++ b/android/src/main/java/cz/jzitnik/jecnaapi_react_native/Jecnaapi.kt @@ -1,4 +1,4 @@ -package com.margelo.nitro.jecnaapi +package cz.jzitnik.jecnaapi_react_native import com.facebook.proguard.annotations.DoNotStrip diff --git a/android/src/main/java/com/margelo/nitro/jecnaapi/JecnaapiPackage.kt b/android/src/main/java/cz/jzitnik/jecnaapi_react_native/JecnaapiPackage.kt similarity index 93% rename from android/src/main/java/com/margelo/nitro/jecnaapi/JecnaapiPackage.kt rename to android/src/main/java/cz/jzitnik/jecnaapi_react_native/JecnaapiPackage.kt index e016b67..30676ae 100644 --- a/android/src/main/java/com/margelo/nitro/jecnaapi/JecnaapiPackage.kt +++ b/android/src/main/java/cz/jzitnik/jecnaapi_react_native/JecnaapiPackage.kt @@ -1,4 +1,4 @@ -package com.margelo.nitro.jecnaapi +package cz.jzitnik.jecnaapi_react_native import com.facebook.react.BaseReactPackage import com.facebook.react.bridge.NativeModule diff --git a/package.json b/package.json index f1acac4..009fc21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "react-native-jecnaapi", "version": "0.1.0", + "jecnaApiVersion": "10.3.5", "description": "JecnaAPI bridge for React Native", "main": "./lib/module/index.js", "types": "./lib/typescript/src/index.d.ts",