Compare commits

..

20 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
amauri e68fdb2bc7 new build 2024-03-28 10:32:45 +01:00
amauri b4e57dced5 new build 2024-03-28 09:28:46 +01:00
amauri ccc73618d7 new build 2024-03-28 08:49:09 +01:00
amauri 07850883ab new build 2024-03-21 10:03:51 +01:00
amauri ed002f42cb new build 2024-03-21 09:47:43 +01:00
61 changed files with 97 additions and 58 deletions

View File

@ -46,13 +46,6 @@ buildscript {
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 {
@ -64,6 +57,13 @@ allprojects {
maven {
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 | |
| **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 |
| 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 |
| playBillingVersion | 5.0.0 | react-native-iap for google |
| amazonSdkVersion | 3.0.3 | react-native-iap for amazon |
```java
ext {
compileSdk 34
androidxVersion "1.4.0"
compileSdk = 34
androidxVersion = "1.4.0"
...
}
```
@ -158,6 +158,7 @@ dependencies{
## Add fragment to activity
```java
public class YourActivity extends AppCompatActivity {
private TaFragment taFragment;
...
@Override
@ -165,11 +166,12 @@ public class YourActivity extends AppCompatActivity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TaFragment fragment = new TaFragment()
if(taFragment == null) {
taFragment = new TaFragment()
.setDelegate(new TaFragmentDelegate() {
@Override
public void recreate() {
recreate();
YourActivity.this.recreate();
}
@Override
@ -194,12 +196,21 @@ public class YourActivity extends AppCompatActivity {
//TODO implement it and return true if you consume the event
return false;
}
@Override
public boolean handleTokenExpired(){
//TODO implement it and return true if you consume the event
return false;
}
})
.setBuildProps(getBuildProps());
} else {
taFragment = (TaFragment) getSupportFragmentManager().findFragmentByTag("TA_FRAGMENT");
}
getSupportFragmentManager()
.beginTransaction()
.add(R.id.rnFragment, fragment)
.replace(R.id.rnFragment, taFragment, "TA_FRAGMENT")
.commit();
}
@ -208,6 +219,7 @@ public class YourActivity extends AppCompatActivity {
bundle.putString(TaConstants.TA_PSETUP, "replace_with_psetup");
bundle.putString(TaConstants.TA_MACHINE, "replace_with_server");
bundle.putString(TaConstants.TA_LOCALE, "en");
bundle.putString(TaConstants.TA_TOKEN, "replace with a valid token");
//the value inside R.string will be avilable after first build
bundle.putString(TaConstants.TA_APP_VERSION_NAME, getString(com.tecnavia.sdk.R.string.APP_VERSION_NAME));
bundle.putString(TaConstants.TA_APP_VERSION_CODE, getString(com.tecnavia.sdk.R.string.APP_VERSION_CODE));
@ -216,6 +228,12 @@ public class YourActivity extends AppCompatActivity {
//must be true otherwise the module doesn't work in SDK mode
bundle.putBoolean(TaConstants.TA_IS_ADDON, true);
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;
}
}
@ -254,8 +272,10 @@ public class YourActivity extends TaActivity {
}
```
## Troubleshooting
1. if you have some build issues related to google play services versions you could add the following setting to build.gradle
## Troubleshooting Guide
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
android {
...
@ -265,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
```
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
Nicolò Aquilini, iOS Software developer, Tecnavia
Andrea Mauri, Android Software developer, Tecnavia

View File

@ -55,7 +55,7 @@ publishing {
tareactnativeasyncstorageasyncstorage(MavenPublication) {
groupId 'tecnavia'
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")
}
@ -157,18 +157,11 @@ publishing {
artifact("$libsDirName/react-native-gesture-handler-release.aar")
}
tareactnativeiapplay(MavenPublication) {
tareactnativehtmltopdf(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")
artifactId 'react-native-html-to-pdf'
version '0.12.0'
artifact("$libsDirName/react-native-html-to-pdf-release.aar")
}
tareactnativeidletimer(MavenPublication) {
@ -265,7 +258,7 @@ publishing {
tareactnativetecnaviautils(MavenPublication) {
groupId 'tecnavia'
artifactId 'react-native-tecnavia-utils'
version '1.1.0'
version '1.2.0'
artifact("$libsDirName/react-native-tecnavia-utils-release.aar")
}
@ -328,7 +321,7 @@ publishing {
tatecnaviareactnativebridge(MavenPublication) {
groupId 'tecnavia'
artifactId 'tecnavia_react-native-bridge'
version '1.2.12'
version '1.3.2'
artifact("$libsDirName/tecnavia_react-native-bridge-release.aar")
}
@ -342,7 +335,7 @@ publishing {
tatecnaviareactnativedfp(MavenPublication) {
groupId 'tecnavia'
artifactId 'tecnavia_react-native-dfp'
version '1.3.1'
version '1.5.0'
artifact("$libsDirName/tecnavia_react-native-dfp-release.aar")
}
@ -363,7 +356,7 @@ publishing {
tatecnaviareactnativepdf(MavenPublication) {
groupId 'tecnavia'
artifactId 'tecnavia_react-native-pdf'
version '5.1.6'
version '5.1.7'
artifact("$libsDirName/tecnavia_react-native-pdf-release.aar")
}
@ -374,6 +367,20 @@ publishing {
artifact("$libsDirName/tecnavia_react-native-print-release.aar")
}
tatecnaviareactnativewebanalytics(MavenPublication) {
groupId 'tecnavia'
artifactId 'tecnavia_react-native-web-analytics'
version '1.0.2'
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) {
groupId 'tecnavia'
artifactId 'tecnavia_react-native-zip-archive'
@ -486,7 +493,7 @@ def amazonSdkVersion = safeExtGet("amazonSdkVersion", "3.0.3")
dependencies {
implementation "tecnavia:react-native-android-open-settings:1.3.0"
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-community_art:1.2.0"
implementation "tecnavia:react-native-community_datetimepicker:6.7.5"
@ -501,8 +508,7 @@ dependencies {
implementation "tecnavia:react-native-fast-image:8.5.11"
implementation "tecnavia:react-native-fs:2.20.0"
implementation "tecnavia:react-native-gesture-handler:1.10.3"
playImplementation "tecnavia:react-native-iap-play:12.4.0"
amazonImplementation "tecnavia:react-native-iap-amazon:12.4.0"
implementation "tecnavia:react-native-html-to-pdf:0.12.0"
implementation "tecnavia:react-native-idle-timer:2.1.6"
implementation "tecnavia:react-native-image-marker:0.9.2"
implementation "tecnavia:react-native-linear-gradient:2.8.3"
@ -516,7 +522,7 @@ dependencies {
implementation "tecnavia:react-native-splash-screen:3.2.0"
implementation "tecnavia:react-native-sqlite-storage:3.3.10"
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-tts:4.1.0"
implementation "tecnavia:react-native-uuid-generator:6.1.1"
@ -525,18 +531,19 @@ dependencies {
implementation "tecnavia:react-native-volume-control:1.0.1"
implementation "tecnavia:react-native-webview:11.17.2"
implementation "tecnavia:rn-fetch-blob:0.11.2"
api "tecnavia:tecnavia_react-native-bridge:1.2.12"
api "tecnavia:tecnavia_react-native-bridge:1.3.2"
implementation "tecnavia:tecnavia_react-native-default-preference:1.5.0"
implementation "tecnavia:tecnavia_react-native-dfp:1.3.1"
implementation "tecnavia:tecnavia_react-native-dfp:1.5.0"
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-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-web-analytics:1.0.2"
implementation "tecnavia:tecnavia_react-native-workaround:0.0.2"
implementation "tecnavia:tecnavia_react-native-zip-archive:5.2.0"
api "tecnavia:react-native:0.67.5"
implementation "tecnavia:hermes:1.0.0"
//the below dependencies works, if you change the versions something could not work well
implementation "org.webkit:android-jsc:+"
//androidx dependencies
@ -577,25 +584,12 @@ dependencies {
implementation "com.google.android.gms:play-services-base:$playServiceBaseVersion"
//used by react-native-google-analytics-bridge ga3
//try to use the same version of firebase-core
//use the same version of play-services-analytics
//used by react-native-prebid, react-native-admob and react-native-dfp packages
implementation "com.google.android.gms:play-services-ads:$playServiceAdsVersion"
//used by react-native-maps package
//used by @firebase/app
implementation "com.android.billingclient:billing-ktx:$playBillingVersion"
implementation "com.amazon.device:amazon-appstore-sdk:$amazonSdkVersion"
//firebase
//okhttp
implementation "com.squareup.okhttp3:okhttp:$okHttpVersion"
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okHttpVersion"

View File

@ -1,7 +1,7 @@
android.useAndroidX=true
APP_NAME=Android SDK
APP_VERSION_NAME=3.11.00
APP_VERSION_CODE=1709827221114
APP_VERSION_NAME=3.15.01
APP_VERSION_CODE=1724848144010
ANDROID_APP_ID=com.tecnaviaapplication
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.

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

@ -18,6 +18,7 @@ com.reactnativecommunity.netinfo.NetInfoPackage
com.reactnativecommunity.slider.ReactSliderPackage
com.reactnativecommunity.cookies.CookieManagerPackage
com.tecnavia.firebaseanalytics.FirebaseAnalyticsPackage
com.tecnavia.webanalytics.WebAnalyticsPackage
com.tecnavia.firebase.crashlytics.ReactNativeFirebaseCrashlyticsPackage
io.invertase.firebase.admob.ReactNativeFirebaseAdmobPackage
co.work.rnadbmobile.RNADBMobilePackage
@ -56,3 +57,6 @@ com.brentvatne.react.ReactVideoPackage
com.wenkesj.voice.VoicePackage
com.reactnativecommunity.webview.RNCWebViewPackage
com.RNFetchBlob.RNFetchBlobPackage
com.blueconic.reactnative.BlueConicClientPackage
com.tecnavia.chartbeat.ChartBeatPackage
com.tecnavia.workaround.WorkaroundPackage