Compare commits

..

No commits in common. "main" and "3.11.00" have entirely different histories.

61 changed files with 58 additions and 97 deletions

View File

@ -46,6 +46,13 @@ 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 {
@ -57,13 +64,6 @@ 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.6.0 | react-native-prebid, react-native-dfp, react-native-admob |
| playServiceAdsVersion | 20.2.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,7 +158,6 @@ dependencies{
## Add fragment to activity
```java
public class YourActivity extends AppCompatActivity {
private TaFragment taFragment;
...
@Override
@ -166,12 +165,11 @@ public class YourActivity extends AppCompatActivity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if(taFragment == null) {
taFragment = new TaFragment()
TaFragment fragment = new TaFragment()
.setDelegate(new TaFragmentDelegate() {
@Override
public void recreate() {
YourActivity.this.recreate();
recreate();
}
@Override
@ -196,21 +194,12 @@ 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()
.replace(R.id.rnFragment, taFragment, "TA_FRAGMENT")
.add(R.id.rnFragment, fragment)
.commit();
}
@ -219,7 +208,6 @@ 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));
@ -228,12 +216,6 @@ 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;
}
}
@ -272,10 +254,8 @@ public class YourActivity extends TaActivity {
}
```
## 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:
## Troubleshooting
1. if you have some build issues related to google play services versions you could add the following setting to build.gradle
```java
android {
...
@ -285,32 +265,11 @@ android {
...
}
```
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
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`
```
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.23.1'
version '1.17.9'
artifact("$libsDirName/react-native-async-storage_async-storage-release.aar")
}
@ -157,11 +157,18 @@ publishing {
artifact("$libsDirName/react-native-gesture-handler-release.aar")
}
tareactnativehtmltopdf(MavenPublication) {
tareactnativeiapplay(MavenPublication) {
groupId 'tecnavia'
artifactId 'react-native-html-to-pdf'
version '0.12.0'
artifact("$libsDirName/react-native-html-to-pdf-release.aar")
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) {
@ -258,7 +265,7 @@ publishing {
tareactnativetecnaviautils(MavenPublication) {
groupId 'tecnavia'
artifactId 'react-native-tecnavia-utils'
version '1.2.0'
version '1.1.0'
artifact("$libsDirName/react-native-tecnavia-utils-release.aar")
}
@ -321,7 +328,7 @@ publishing {
tatecnaviareactnativebridge(MavenPublication) {
groupId 'tecnavia'
artifactId 'tecnavia_react-native-bridge'
version '1.3.2'
version '1.2.12'
artifact("$libsDirName/tecnavia_react-native-bridge-release.aar")
}
@ -335,7 +342,7 @@ publishing {
tatecnaviareactnativedfp(MavenPublication) {
groupId 'tecnavia'
artifactId 'tecnavia_react-native-dfp'
version '1.5.0'
version '1.3.1'
artifact("$libsDirName/tecnavia_react-native-dfp-release.aar")
}
@ -356,7 +363,7 @@ publishing {
tatecnaviareactnativepdf(MavenPublication) {
groupId 'tecnavia'
artifactId 'tecnavia_react-native-pdf'
version '5.1.7'
version '5.1.6'
artifact("$libsDirName/tecnavia_react-native-pdf-release.aar")
}
@ -367,20 +374,6 @@ 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'
@ -493,7 +486,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.23.1"
implementation "tecnavia:react-native-async-storage_async-storage:1.17.9"
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"
@ -508,7 +501,8 @@ 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"
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-image-marker:0.9.2"
implementation "tecnavia:react-native-linear-gradient:2.8.3"
@ -522,7 +516,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.2.0"
implementation "tecnavia:react-native-tecnavia-utils:1.1.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"
@ -531,19 +525,18 @@ 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.3.2"
api "tecnavia:tecnavia_react-native-bridge:1.2.12"
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.3.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-pdf:5.1.7"
implementation "tecnavia:tecnavia_react-native-pdf:5.1.6"
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
@ -584,12 +577,25 @@ 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.15.01
APP_VERSION_CODE=1724848144010
APP_VERSION_NAME=3.11.00
APP_VERSION_CODE=1709827221114
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.

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

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

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

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

Binary file not shown.

View File

@ -18,7 +18,6 @@ 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
@ -57,6 +56,3 @@ 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