Comments (4)
@dennispost99 For Gradle 7.0 you can now do :
npm install "https://github.com/jackbayliss/react-native-nfc-card-reader.git#gradle7.0" --save
I had same problem using Gradle 7.2 with compileSDK=30
. This solution alone did not work for me. In addition to this I edited the build.gradle
file within the package folder to add:
configurations { customConfig.extendsFrom implementation }
then add this in the afterEvaluate
function:
tasks.withType(Javadoc) { failOnError false options.addStringOption('Xdoclint:none', '-quiet') options.addStringOption('encoding', 'UTF-8') options.addStringOption('charSet', 'UTF-8') }
then replace classpath += files(project.getConfigurations().getByName('compile').asList())
with classpath += files(project.getConfigurations().getByName('customConfig').asList())
:
You need to also add this line to AndroidManifest.xml
:
<activity android:name="com.jackbayliss.nfcreader.NfcCardReaderActivity" android:label="Preferences" > </activity>
from react-native-nfc-card-reader.
@dennispost99 I believe it's a case of changing:
apply plugin: 'maven'
to apply plugin: 'maven-publish
I'm not sure how to handle multiple Gradle versions, though I can create a new branch for Gradle 7
from react-native-nfc-card-reader.
@dennispost99 For Gradle 7.0 you can now do :
npm install "https://github.com/jackbayliss/react-native-nfc-card-reader.git#gradle7.0" --save
from react-native-nfc-card-reader.
@VictorOdede Thanks for your feedback, if this is specifically for gradle greater than 7 it would be useful to create a new branch to prevent this from occuring.
from react-native-nfc-card-reader.
Related Issues (13)
- null is not an object (evaluating '_reactNativeNfcCardReader.default.startNfc') HOT 2
- Execution failed for task ':app:checkDebugDuplicateClasses'. HOT 6
- Support Gradle 8.0 HOT 11
- cvv read HOT 5
- read magnetic card HOT 1
- Build error in react-native 0.7 HOT 18
- startNfc() not returning firstname and lastname HOT 3
- startNfc() not found error HOT 4
- Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. HOT 1
- names came out wrong
- use case for gradle 7.2< HOT 1
- Build errors after installing the package HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-nfc-card-reader.