Skip to content

Commit ba206c5

Browse files
author
queue-it
committed
Preparing release 1.2.0
1 parent 023a373 commit ba206c5

File tree

1,345 files changed

+310313
-22946
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,345 files changed

+310313
-22946
lines changed

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jsconfig.json
1111
.vs/
1212

1313
# Xcode
14-
#
1514
build/
1615
*.pbxuser
1716
!default.pbxuser
@@ -31,25 +30,27 @@ DerivedData
3130
project.xcworkspace
3231

3332
# Android/IJ
34-
#
3533
.idea
3634
.gradle
3735
local.properties
3836
android.iml
37+
android/bin/
3938

4039
# Cocoapods
41-
#
42-
example/ios/Pods
40+
exampleApp/ios/Pods
4341
ios/Pods
4442
**/Pods
4543

4644
# node.js
47-
#
4845
node_modules/
4946
npm-debug.log
5047
yarn-debug.log
5148
yarn-error.log
5249

50+
# Generated
51+
**/.cxx/
52+
**/packages/
53+
5354
# BUCK
5455
buck-out/
5556
\.buckd/

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
example
1+
exampleApp
22
.circleci
33
node_modules

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ React Native Module for integrating Queue-it's virtual waiting room into React N
66

77
## Sample app
88

9-
A sample app project to try out functionality in the library can be found in the [example](https://github.com/queueit/react-native-queue-it/tree/master/example) directory.
9+
A sample app project to try out functionality in the library can be found in the [exampleApp](https://github.com/queueit/react-native-queue-it/tree/master/exampleApp) directory.
1010

1111
## Installation
1212

android/.project

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>android_</name>
3+
<name>react-native-queue-it</name>
44
<comment>Project android_ created by Buildship.</comment>
55
<projects>
66
</projects>
@@ -14,4 +14,15 @@
1414
<natures>
1515
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
1616
</natures>
17+
<filteredResources>
18+
<filter>
19+
<id>1751535839006</id>
20+
<name></name>
21+
<type>30</type>
22+
<matcher>
23+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
24+
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
25+
</matcher>
26+
</filter>
27+
</filteredResources>
1728
</projectDescription>
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
arguments=
22
auto.sync=false
33
build.scans.enabled=false
4-
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(6.0))
4+
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
55
connection.project.dir=
66
eclipse.preferences.version=1
77
gradle.user.home=
88
java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
99
jvm.arguments=
1010
offline.mode=false
11-
override.workspace.settings=true
12-
show.console.view=true
13-
show.executions.view=true
11+
override.workspace.settings=true

android/build.gradle

Lines changed: 46 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
buildscript {
2-
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
32
def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['QueueIt_kotlinVersion']
43

54
repositories {
65
mavenCentral()
7-
mavenLocal()
86
google()
7+
maven{
8+
url "https://repo1.maven.org/maven2/"
9+
}
10+
maven {
11+
url "https://maven.google.com"
12+
}
13+
mavenLocal()
914
}
1015

1116
dependencies {
12-
classpath 'com.android.tools.build:gradle:4.1.3'
13-
// noinspection DifferentKotlinGradleVersion
17+
classpath 'com.android.tools.build:gradle:8.3.2'
1418
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1519
}
1620
}
1721

18-
apply plugin: 'com.android.library'
19-
apply plugin: 'kotlin-android'
22+
plugins {
23+
id 'com.android.library'
24+
id 'com.facebook.react'
25+
id 'kotlin-android'
26+
}
2027

2128
def getExtOrDefault(name) {
2229
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['QueueIt_' + name]
@@ -27,16 +34,32 @@ def getExtOrIntegerDefault(name) {
2734
}
2835

2936
android {
37+
namespace "com.reactnativequeueit"
3038
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
31-
buildToolsVersion getExtOrDefault('buildToolsVersion')
39+
buildFeatures {
40+
prefab true
41+
}
3242
defaultConfig {
33-
minSdkVersion 21
43+
minSdkVersion 24
3444
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
3545
versionCode 1
3646
versionName "1.0"
3747

38-
}
48+
externalNativeBuild {
49+
cmake {
50+
cppFlags "-std=c++17"
51+
arguments "-DANDROID_STL=c++_shared",
52+
"-DCMAKE_OBJECT_PATH_MAX=1024",
53+
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
54+
"-DREACT_NATIVE_DIR=${rootProject.projectDir}/../node_modules/react-native",
55+
"-DCODEGEN_DIR=${buildDir}/generated/source/codegen/jni"
56+
}
57+
}
3958

59+
ndk {
60+
abiFilters "armeabi-v7a", "arm64-v8a", "x86_64"
61+
}
62+
}
4063
buildTypes {
4164
release {
4265
minifyEnabled false
@@ -45,92 +68,28 @@ android {
4568
lintOptions {
4669
disable 'GradleCompatible'
4770
}
48-
compileOptions {
49-
sourceCompatibility JavaVersion.VERSION_1_8
50-
targetCompatibility JavaVersion.VERSION_1_8
51-
}
52-
}
53-
54-
repositories {
55-
mavenCentral()
56-
mavenLocal()
57-
google()
58-
59-
def found = false
60-
def defaultDir = null
61-
def androidSourcesName = 'React Native sources'
62-
63-
if (rootProject.ext.has('reactNativeAndroidRoot')) {
64-
defaultDir = rootProject.ext.get('reactNativeAndroidRoot')
65-
} else {
66-
defaultDir = new File(
67-
projectDir,
68-
'/../../../node_modules/react-native/android'
69-
)
70-
}
71-
72-
if (defaultDir.exists()) {
73-
maven {
74-
url defaultDir.toString()
75-
name androidSourcesName
71+
externalNativeBuild {
72+
cmake {
73+
path "src/main/jni/CMakeLists.txt"
7674
}
77-
78-
logger.info(":${project.name}:reactNativeAndroidRoot ${defaultDir.canonicalPath}")
79-
found = true
80-
} else {
81-
def parentDir = rootProject.projectDir
82-
83-
1.upto(5, {
84-
if (found) return true
85-
parentDir = parentDir.parentFile
86-
87-
def androidSourcesDir = new File(
88-
parentDir,
89-
'node_modules/react-native'
90-
)
91-
92-
def androidPrebuiltBinaryDir = new File(
93-
parentDir,
94-
'node_modules/react-native/android'
95-
)
96-
97-
if (androidPrebuiltBinaryDir.exists()) {
98-
maven {
99-
url androidPrebuiltBinaryDir.toString()
100-
name androidSourcesName
101-
}
102-
103-
logger.info(":${project.name}:reactNativeAndroidRoot ${androidPrebuiltBinaryDir.canonicalPath}")
104-
found = true
105-
} else if (androidSourcesDir.exists()) {
106-
maven {
107-
url androidSourcesDir.toString()
108-
name androidSourcesName
109-
}
110-
111-
logger.info(":${project.name}:reactNativeAndroidRoot ${androidSourcesDir.canonicalPath}")
112-
found = true
113-
}
114-
})
11575
}
116-
117-
if (!found) {
118-
throw new GradleException(
119-
"${project.name}: unable to locate React Native android sources. " +
120-
"Ensure you have you installed React Native as a dependency in your project and try again."
121-
)
76+
sourceSets {
77+
main {
78+
java.srcDirs += "$buildDir/generated/source/codegen/java"
79+
jniLibs.srcDirs += "$buildDir/generated/source/codegen/jni"
80+
}
12281
}
12382
}
12483

12584
def kotlin_version = getExtOrDefault('kotlinVersion')
126-
12785
dependencies {
128-
// noinspection GradleDynamicVersion
129-
api 'com.facebook.react:react-native:+'
13086
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
13187

88+
implementation(libs.react.android)
89+
implementation(libs.fbjni)
90+
13291
//App dependencies
133-
implementation 'com.queue-it.androidsdk:library:2.0.36'
134-
implementation 'com.android.support:appcompat-v7:28.0.0'
135-
implementation 'com.android.support:design:28.0.0'
92+
implementation('com.queue-it.androidsdk:library:2.0.36')
93+
implementation('com.android.support:appcompat-v7:28.0.0')
94+
implementation('com.android.support:design:28.0.0')
13695
}

android/gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
QueueIt_kotlinVersion=1.4.10
2-
QueueIt_compileSdkVersion=31
3-
QueueIt_buildToolsVersion=28.0.3
4-
QueueIt_targetSdkVersion=31
1+
QueueIt_kotlinVersion=1.9.24
2+
QueueIt_compileSdkVersion=34
3+
QueueIt_targetSdkVersion=34
54
android.useAndroidX=true
65
android.enableJetifier=true
6+
newArchEnabled=true
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Feb 05 15:12:32 CET 2021
2-
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
4-
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
6-
zipStoreBase=GRADLE_USER_HOME
1+
#Fri Feb 05 15:12:32 CET 2021
2+
distributionBase=GRADLE_USER_HOME
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
4+
distributionPath=wrapper/dists
5+
zipStorePath=wrapper/dists
6+
zipStoreBase=GRADLE_USER_HOME

android/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.reactnativequeueit">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32

43
</manifest>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#pragma once
2+
#define FOLLY_USE_LIBCPP 1

0 commit comments

Comments
 (0)