Compare commits

...

15 Commits

Author SHA1 Message Date
naquilini bbed22fe99 new build 2024-08-28 14:29:04 +02:00
Nick cd48a9966c Revert "new build"
This reverts commit 318fa4b7bf.
2024-08-28 08:15:35 +02:00
Nick 318fa4b7bf new build 2024-08-28 08:12:35 +02:00
Nick Aquilini d39de0465f new version 3.15.00 2024-07-30 12:33:34 +02:00
amauri fe9306c3a1 new version 3.13.08 2024-06-21 08:50:00 +02:00
amauri c5d5ef9a71 new version 3.13.07 2024-06-13 16:39:28 +02:00
amauri 1c8efac85d Version 3.13.02 2024-05-17 15:29:15 +02:00
amauri e9a50d6655 Version 3.13.01 2024-05-03 09:10:30 +02:00
amauri cb999d87cc Version 3.13.00 2024-04-25 16:32:53 +02:00
Nick b0ace6e70e new build 2024-04-25 15:02:22 +02:00
amauri f562317749 Fix Fragment lifecycle when rotation change, fix crash caused by conflict between input field and androidx.appcompat:1.4.0 2024-04-17 17:19:20 +02:00
amauri cb094228c6 update readme 2024-04-10 10:52:02 +02:00
amauri 935eec2a4b update readme 2024-04-10 10:49:31 +02:00
amauri 01092b8adc Update README.md 2024-04-08 14:07:35 +00:00
amauri ae44078e7a Update README.md 2024-03-29 07:48:12 +00:00
61 changed files with 75 additions and 62 deletions

View File

@ -46,13 +46,6 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0"
} }
//If photodraweeview:1.1.3 for some reason is not available from Maven force this version
configurations.all {
resolutionStrategy {
force "me.relex:photodraweeview:2.1.0"
}
}
} }
allprojects { allprojects {
@ -64,6 +57,13 @@ allprojects {
maven { maven {
url "https://jitpack.io" url "https://jitpack.io"
} }
//If photodraweeview:1.1.3 for some reason is not available from Maven force this version
configurations.all {
resolutionStrategy {
force "me.relex:photodraweeview:2.1.0"
}
}
} }
} }
``` ```
@ -104,15 +104,15 @@ maven {
| playServiceBaseVersion | 18.0.1 | | | playServiceBaseVersion | 18.0.1 | |
| **The following variables are used if you include on of the optional library listed in description** | | **The following variables are used if you include on of the optional library listed in description** |
| playServiceAnalyticsVersion | 18.0.1 | react-native-google-analytics-bridge | | playServiceAnalyticsVersion | 18.0.1 | react-native-google-analytics-bridge |
| playServiceAdsVersion | 20.2.0 | react-native-prebid, react-native-dfp, react-native-admob | | playServiceAdsVersion | 20.6.0 | react-native-prebid, react-native-dfp, react-native-admob |
| playServiceMapsVersion | 17.0.0 | react-native-maps | | playServiceMapsVersion | 17.0.0 | react-native-maps |
| playBillingVersion | 5.0.0 | react-native-iap for google | | playBillingVersion | 5.0.0 | react-native-iap for google |
| amazonSdkVersion | 3.0.3 | react-native-iap for amazon | | amazonSdkVersion | 3.0.3 | react-native-iap for amazon |
```java ```java
ext { ext {
compileSdk 34 compileSdk = 34
androidxVersion "1.4.0" androidxVersion = "1.4.0"
... ...
} }
``` ```
@ -158,6 +158,7 @@ dependencies{
## Add fragment to activity ## Add fragment to activity
```java ```java
public class YourActivity extends AppCompatActivity { public class YourActivity extends AppCompatActivity {
private TaFragment taFragment;
... ...
@Override @Override
@ -165,11 +166,12 @@ public class YourActivity extends AppCompatActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main); setContentView(R.layout.activity_main);
TaFragment fragment = new TaFragment() if(taFragment == null) {
taFragment = new TaFragment()
.setDelegate(new TaFragmentDelegate() { .setDelegate(new TaFragmentDelegate() {
@Override @Override
public void recreate() { public void recreate() {
recreate(); YourActivity.this.recreate();
} }
@Override @Override
@ -202,10 +204,13 @@ public class YourActivity extends AppCompatActivity {
} }
}) })
.setBuildProps(getBuildProps()); .setBuildProps(getBuildProps());
} else {
taFragment = (TaFragment) getSupportFragmentManager().findFragmentByTag("TA_FRAGMENT");
}
getSupportFragmentManager() getSupportFragmentManager()
.beginTransaction() .beginTransaction()
.add(R.id.rnFragment, fragment) .replace(R.id.rnFragment, taFragment, "TA_FRAGMENT")
.commit(); .commit();
} }
@ -223,6 +228,12 @@ public class YourActivity extends AppCompatActivity {
//must be true otherwise the module doesn't work in SDK mode //must be true otherwise the module doesn't work in SDK mode
bundle.putBoolean(TaConstants.TA_IS_ADDON, true); bundle.putBoolean(TaConstants.TA_IS_ADDON, true);
bundle.putString(TaConstants.TA_API_KEY, "Required to be authorized"); bundle.putString(TaConstants.TA_API_KEY, "Required to be authorized");
// Specify the device type for the TA_LOCKED_ORIENTATION. If not provided, all devices will use TA_LOCKED_ORIENTATION.
bundle.putString(TaConstants.TA_LOCKED_ORIENTATION_DEVICE, "tablet|phone");
// Define the orientation for the app. If not specified, the app will use its default behavior.
bundle.putString(TaConstants.TA_LOCKED_ORIENTATION, "portrait|landscape");
return bundle; return bundle;
} }
} }
@ -261,8 +272,10 @@ public class YourActivity extends TaActivity {
} }
``` ```
## Troubleshooting ## Troubleshooting Guide
1. if you have some build issues related to google play services versions you could add the following setting to build.gradle
1. **Google Play Services Build Issues**: If you encounter build issues related to Google Play Services versions, consider adding the following setting to your `build.gradle` file:
```java ```java
android { android {
... ...
@ -272,11 +285,32 @@ android {
... ...
} }
``` ```
2. if you have the following error during the build `Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module`
add `--add-opens=java.base/java.io=ALL-UNNAMED` option to `org.gradle.jvmargs` entry in `gradle.properties` 2. **Java Base Access Error**: If you receive an error during the build process that reads `Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module`, add the `--add-opens=java.base/java.io=ALL-UNNAMED` option to the `org.gradle.jvmargs` entry in your `gradle.properties` file:
```
```plaintext
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 --add-opens=java.base/java.io=ALL-UNNAMED org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 --add-opens=java.base/java.io=ALL-UNNAMED
``` ```
3. **Orientation Change Crash**: If your application crashes when the orientation changes, add the following attributes to your activity in the Android manifest:
```plaintext
configChanges="...|screenLayout|screenSize|smallestScreenSize"
```
For more information, refer to this [GitHub issue comment](https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-923950313).
4. **Background or Awakening Crash**: If your application crashes when it moves to the background or wakes up, try adding the following to your activity:
```java
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(null);
}
```
For more information, refer to this [GitHub issue comment](https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-424704067).
## Authors ## Authors
Nicolò Aquilini, iOS Software developer, Tecnavia Nicolò Aquilini, iOS Software developer, Tecnavia
Andrea Mauri, Android Software developer, Tecnavia Andrea Mauri, Android Software developer, Tecnavia

View File

@ -55,7 +55,7 @@ publishing {
tareactnativeasyncstorageasyncstorage(MavenPublication) { tareactnativeasyncstorageasyncstorage(MavenPublication) {
groupId 'tecnavia' groupId 'tecnavia'
artifactId 'react-native-async-storage_async-storage' artifactId 'react-native-async-storage_async-storage'
version '1.17.9' version '1.23.1'
artifact("$libsDirName/react-native-async-storage_async-storage-release.aar") artifact("$libsDirName/react-native-async-storage_async-storage-release.aar")
} }
@ -164,20 +164,6 @@ publishing {
artifact("$libsDirName/react-native-html-to-pdf-release.aar") artifact("$libsDirName/react-native-html-to-pdf-release.aar")
} }
tareactnativeiapplay(MavenPublication) {
groupId 'tecnavia'
artifactId 'react-native-iap-play'
version '12.4.0'
artifact("$libsDirName/react-native-iap-play-release.aar")
}
tareactnativeiapamazon(MavenPublication) {
groupId 'tecnavia'
artifactId 'react-native-iap-amazon'
version '12.4.0'
artifact("$libsDirName/react-native-iap-amazon-release.aar")
}
tareactnativeidletimer(MavenPublication) { tareactnativeidletimer(MavenPublication) {
groupId 'tecnavia' groupId 'tecnavia'
artifactId 'react-native-idle-timer' artifactId 'react-native-idle-timer'
@ -272,7 +258,7 @@ publishing {
tareactnativetecnaviautils(MavenPublication) { tareactnativetecnaviautils(MavenPublication) {
groupId 'tecnavia' groupId 'tecnavia'
artifactId 'react-native-tecnavia-utils' artifactId 'react-native-tecnavia-utils'
version '1.1.0' version '1.2.0'
artifact("$libsDirName/react-native-tecnavia-utils-release.aar") artifact("$libsDirName/react-native-tecnavia-utils-release.aar")
} }
@ -335,7 +321,7 @@ publishing {
tatecnaviareactnativebridge(MavenPublication) { tatecnaviareactnativebridge(MavenPublication) {
groupId 'tecnavia' groupId 'tecnavia'
artifactId 'tecnavia_react-native-bridge' artifactId 'tecnavia_react-native-bridge'
version '1.2.15' version '1.3.2'
artifact("$libsDirName/tecnavia_react-native-bridge-release.aar") artifact("$libsDirName/tecnavia_react-native-bridge-release.aar")
} }
@ -370,7 +356,7 @@ publishing {
tatecnaviareactnativepdf(MavenPublication) { tatecnaviareactnativepdf(MavenPublication) {
groupId 'tecnavia' groupId 'tecnavia'
artifactId 'tecnavia_react-native-pdf' artifactId 'tecnavia_react-native-pdf'
version '5.1.6' version '5.1.7'
artifact("$libsDirName/tecnavia_react-native-pdf-release.aar") artifact("$libsDirName/tecnavia_react-native-pdf-release.aar")
} }
@ -384,10 +370,17 @@ publishing {
tatecnaviareactnativewebanalytics(MavenPublication) { tatecnaviareactnativewebanalytics(MavenPublication) {
groupId 'tecnavia' groupId 'tecnavia'
artifactId 'tecnavia_react-native-web-analytics' artifactId 'tecnavia_react-native-web-analytics'
version '1.0.0' version '1.0.2'
artifact("$libsDirName/tecnavia_react-native-web-analytics-release.aar") artifact("$libsDirName/tecnavia_react-native-web-analytics-release.aar")
} }
tatecnaviareactnativeworkaround(MavenPublication) {
groupId 'tecnavia'
artifactId 'tecnavia_react-native-workaround'
version '0.0.2'
artifact("$libsDirName/tecnavia_react-native-workaround-release.aar")
}
tatecnaviareactnativeziparchive(MavenPublication) { tatecnaviareactnativeziparchive(MavenPublication) {
groupId 'tecnavia' groupId 'tecnavia'
artifactId 'tecnavia_react-native-zip-archive' artifactId 'tecnavia_react-native-zip-archive'
@ -500,7 +493,7 @@ def amazonSdkVersion = safeExtGet("amazonSdkVersion", "3.0.3")
dependencies { dependencies {
implementation "tecnavia:react-native-android-open-settings:1.3.0" implementation "tecnavia:react-native-android-open-settings:1.3.0"
implementation "tecnavia:react-native-app-settings:2.0.1" implementation "tecnavia:react-native-app-settings:2.0.1"
implementation "tecnavia:react-native-async-storage_async-storage:1.17.9" implementation "tecnavia:react-native-async-storage_async-storage:1.23.1"
implementation "tecnavia:react-native-color-matrix-image-filters:5.2.10" implementation "tecnavia:react-native-color-matrix-image-filters:5.2.10"
implementation "tecnavia:react-native-community_art:1.2.0" implementation "tecnavia:react-native-community_art:1.2.0"
implementation "tecnavia:react-native-community_datetimepicker:6.7.5" implementation "tecnavia:react-native-community_datetimepicker:6.7.5"
@ -516,8 +509,6 @@ dependencies {
implementation "tecnavia:react-native-fs:2.20.0" implementation "tecnavia:react-native-fs:2.20.0"
implementation "tecnavia:react-native-gesture-handler:1.10.3" implementation "tecnavia:react-native-gesture-handler:1.10.3"
implementation "tecnavia:react-native-html-to-pdf:0.12.0" implementation "tecnavia:react-native-html-to-pdf:0.12.0"
playImplementation "tecnavia:react-native-iap-play:12.4.0"
amazonImplementation "tecnavia:react-native-iap-amazon:12.4.0"
implementation "tecnavia:react-native-idle-timer:2.1.6" implementation "tecnavia:react-native-idle-timer:2.1.6"
implementation "tecnavia:react-native-image-marker:0.9.2" implementation "tecnavia:react-native-image-marker:0.9.2"
implementation "tecnavia:react-native-linear-gradient:2.8.3" implementation "tecnavia:react-native-linear-gradient:2.8.3"
@ -531,7 +522,7 @@ dependencies {
implementation "tecnavia:react-native-splash-screen:3.2.0" implementation "tecnavia:react-native-splash-screen:3.2.0"
implementation "tecnavia:react-native-sqlite-storage:3.3.10" implementation "tecnavia:react-native-sqlite-storage:3.3.10"
implementation "tecnavia:react-native-svg:12.1.0" implementation "tecnavia:react-native-svg:12.1.0"
implementation "tecnavia:react-native-tecnavia-utils:1.1.0" implementation "tecnavia:react-native-tecnavia-utils:1.2.0"
implementation "tecnavia:react-native-text-size:3.0.0" implementation "tecnavia:react-native-text-size:3.0.0"
implementation "tecnavia:react-native-tts:4.1.0" implementation "tecnavia:react-native-tts:4.1.0"
implementation "tecnavia:react-native-uuid-generator:6.1.1" implementation "tecnavia:react-native-uuid-generator:6.1.1"
@ -540,19 +531,19 @@ dependencies {
implementation "tecnavia:react-native-volume-control:1.0.1" implementation "tecnavia:react-native-volume-control:1.0.1"
implementation "tecnavia:react-native-webview:11.17.2" implementation "tecnavia:react-native-webview:11.17.2"
implementation "tecnavia:rn-fetch-blob:0.11.2" implementation "tecnavia:rn-fetch-blob:0.11.2"
api "tecnavia:tecnavia_react-native-bridge:1.2.15" api "tecnavia:tecnavia_react-native-bridge:1.3.2"
implementation "tecnavia:tecnavia_react-native-default-preference:1.5.0" implementation "tecnavia:tecnavia_react-native-default-preference:1.5.0"
implementation "tecnavia:tecnavia_react-native-dfp:1.5.0" implementation "tecnavia:tecnavia_react-native-dfp:1.5.0"
implementation "tecnavia:tecnavia_react-native-geolocation:3.0.1" implementation "tecnavia:tecnavia_react-native-geolocation:3.0.1"
implementation "tecnavia:tecnavia_react-native-navigation-bar-color:2.0.2" implementation "tecnavia:tecnavia_react-native-navigation-bar-color:2.0.2"
implementation "tecnavia:tecnavia_react-native-pdf:5.1.6" implementation "tecnavia:tecnavia_react-native-pdf:5.1.7"
implementation "tecnavia:tecnavia_react-native-print:0.6.1" implementation "tecnavia:tecnavia_react-native-print:0.6.1"
implementation "tecnavia:tecnavia_react-native-web-analytics:1.0.0" implementation "tecnavia:tecnavia_react-native-web-analytics:1.0.2"
implementation "tecnavia:tecnavia_react-native-workaround:0.0.2"
implementation "tecnavia:tecnavia_react-native-zip-archive:5.2.0" implementation "tecnavia:tecnavia_react-native-zip-archive:5.2.0"
api "tecnavia:react-native:0.67.5" api "tecnavia:react-native:0.67.5"
implementation "tecnavia:hermes:1.0.0" implementation "tecnavia:hermes:1.0.0"
//the below dependencies works, if you change the versions something could not work well //the below dependencies works, if you change the versions something could not work well
implementation "org.webkit:android-jsc:+" implementation "org.webkit:android-jsc:+"
//androidx dependencies //androidx dependencies
@ -593,25 +584,12 @@ dependencies {
implementation "com.google.android.gms:play-services-base:$playServiceBaseVersion" implementation "com.google.android.gms:play-services-base:$playServiceBaseVersion"
//used by react-native-google-analytics-bridge ga3 //used by react-native-google-analytics-bridge ga3
//try to use the same version of firebase-core //try to use the same version of firebase-core
//use the same version of play-services-analytics //use the same version of play-services-analytics
//used by react-native-prebid, react-native-admob and react-native-dfp packages //used by react-native-prebid, react-native-admob and react-native-dfp packages
implementation "com.google.android.gms:play-services-ads:$playServiceAdsVersion" implementation "com.google.android.gms:play-services-ads:$playServiceAdsVersion"
//used by react-native-maps package //used by react-native-maps package
//used by @firebase/app //used by @firebase/app
implementation "com.android.billingclient:billing-ktx:$playBillingVersion"
implementation "com.amazon.device:amazon-appstore-sdk:$amazonSdkVersion"
//firebase //firebase
//okhttp //okhttp
implementation "com.squareup.okhttp3:okhttp:$okHttpVersion" implementation "com.squareup.okhttp3:okhttp:$okHttpVersion"
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okHttpVersion" implementation "com.squareup.okhttp3:okhttp-urlconnection:$okHttpVersion"

View File

@ -1,7 +1,7 @@
android.useAndroidX=true android.useAndroidX=true
APP_NAME=Android SDK APP_NAME=Android SDK
APP_VERSION_NAME=3.12.01 APP_VERSION_NAME=3.15.01
APP_VERSION_CODE=1711618364614 APP_VERSION_CODE=1724848144010
ANDROID_APP_ID=com.tecnaviaapplication ANDROID_APP_ID=com.tecnaviaapplication
IS_ADDON=true IS_ADDON=true

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

0
src/main/assets/fonts/Fontisto.ttf Normal file → Executable file
View File

0
src/main/assets/fonts/Nunito-Bold.ttf Normal file → Executable file
View File

0
src/main/assets/fonts/Nunito-Medium.ttf Normal file → Executable file
View File

0
src/main/assets/fonts/Nunito-Regular.ttf Normal file → Executable file
View File

Binary file not shown.

View File

@ -58,4 +58,5 @@ com.wenkesj.voice.VoicePackage
com.reactnativecommunity.webview.RNCWebViewPackage com.reactnativecommunity.webview.RNCWebViewPackage
com.RNFetchBlob.RNFetchBlobPackage com.RNFetchBlob.RNFetchBlobPackage
com.blueconic.reactnative.BlueConicClientPackage com.blueconic.reactnative.BlueConicClientPackage
com.tecnavia.chartbeat.ChartBeatPackage com.tecnavia.chartbeat.ChartBeatPackage
com.tecnavia.workaround.WorkaroundPackage