diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/README.md b/README.md index d34ab01..d95dbbd 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ buildscript { classpath "com.google.gms:google-services:4.3.4" //add crashlytics only if the aar file is included classpath "com.google.firebase:firebase-crashlytics-gradle:2.3.0" - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0" } } @@ -86,10 +86,10 @@ maven { | soLoaderVersion | 0.10.1 | used to load needed system native libraries | | okHttpVersion | 4.9.2 | | | glideVersion | 4.12.0 | | -| kotlinGradleVersion | 1.5.0 | | -| kotlinVersion | 1.4.0 | | +| kotlinGradleVersion | 1.9.0 | | +| kotlinVersion | 1.9.0 | | | webkitVersion | 1.4.0 | | -| androidxVersion | 1.5.0 | | +| androidxVersion | 1.8.0 | | | androidxWorkRuntimeVersion | 1.5.0 | | | androidxAnnotationVersion | 1.4.0 | | | androidxViewpager2Version | 1.0.0 | | @@ -105,14 +105,14 @@ maven { | **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 | -| playServiceMapsVersion | 17.0.0 | react-native-maps | +| playServiceMapsVersion | 18.0.2 | 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" + androidxVersion = "1.8.0" ... } ``` @@ -253,6 +253,11 @@ the following constants are required by SDK otherwise there will be some inconsi bundle.putBoolean(TaConstants.TA_IS_ADDON, true); ``` +the following constant can be used for debug builds ONLY, to monitor the load time performances +```java + bundle.putBoolean(TaConstants.TA_ENABLE_DEBUGGER_KEY, true); +``` + 1. The activity that load TaFragment must implement the following interface *DefaultHardwareBackBtnHandler* ```java public class YourActivity extends AppCompatActivity implements DefaultHardwareBackBtnHandler { @@ -308,9 +313,22 @@ 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). +4. **Duplicate class**: If build fails due to `java.lang.RuntimeException: Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt ...`: + +Add the following line to you `app/build.gradle` + +```java +dependencies { + ... + + // Fix Duplicate class + implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0")) +} +``` +For more information, refer to this [GitHub issue comment](https://gist.github.com/danielcshn/7aa57155d766d46c043fde015f054d40). + ## Authors Nicolò Aquilini, iOS Software developer, Tecnavia Andrea Mauri, Android Software developer, Tecnavia diff --git a/build.gradle b/build.gradle index d98c2d9..5cd265a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ buildscript { - def kotlinGradleVersion = rootProject.ext.has("kotlinGradleVersion") ? rootProject.ext.get("kotlinGradleVersion") : "1.5.0" + def kotlinGradleVersion = rootProject.ext.has("kotlinGradleVersion") ? rootProject.ext.get("kotlinGradleVersion") : "1.9.0" if(rootProject == project) { repositories { @@ -55,14 +55,14 @@ publishing { tareactnativeasyncstorageasyncstorage(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-async-storage_async-storage' - version '1.23.1' + version '2.0.0' artifact("$libsDirName/react-native-async-storage_async-storage-release.aar") } tareactnativecolormatriximagefilters(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-color-matrix-image-filters' - version '5.2.10' + version '6.0.9' artifact("$libsDirName/react-native-color-matrix-image-filters-release.aar") } @@ -115,13 +115,6 @@ publishing { artifact("$libsDirName/react-native-cookies_cookies-release.aar") } - tareactnativedarkmode(MavenPublication) { - groupId 'tecnavia' - artifactId 'react-native-dark-mode' - version '0.2.2' - artifact("$libsDirName/react-native-dark-mode-release.aar") - } - tareactnativedeviceinfo(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-device-info' @@ -157,13 +150,6 @@ publishing { artifact("$libsDirName/react-native-gesture-handler-release.aar") } - tareactnativehtmltopdf(MavenPublication) { - groupId 'tecnavia' - artifactId 'react-native-html-to-pdf' - version '0.12.0' - artifact("$libsDirName/react-native-html-to-pdf-release.aar") - } - tareactnativeidletimer(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-idle-timer' @@ -209,7 +195,7 @@ publishing { tareactnativereanimated(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-reanimated' - version '1.13.3' + version '2.17.0' artifact("$libsDirName/react-native-reanimated-release.aar") } @@ -223,14 +209,14 @@ publishing { tareactnativescreens(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-screens' - version '3.13.1' + version '3.32.0' artifact("$libsDirName/react-native-screens-release.aar") } tareactnativeshare(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-share' - version '7.9.1' + version '10.2.1' artifact("$libsDirName/react-native-share-release.aar") } @@ -258,7 +244,7 @@ publishing { tareactnativetecnaviautils(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-tecnavia-utils' - version '1.2.0' + version '1.2.1' artifact("$libsDirName/react-native-tecnavia-utils-release.aar") } @@ -293,7 +279,7 @@ publishing { tareactnativevideo(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-video' - version '5.1.1' + version '5.2.1' artifact("$libsDirName/react-native-video-release.aar") } @@ -321,7 +307,7 @@ publishing { tatecnaviareactnativebridge(MavenPublication) { groupId 'tecnavia' artifactId 'tecnavia_react-native-bridge' - version '1.3.2' + version '1.3.6' artifact("$libsDirName/tecnavia_react-native-bridge-release.aar") } @@ -356,7 +342,7 @@ publishing { tatecnaviareactnativepdf(MavenPublication) { groupId 'tecnavia' artifactId 'tecnavia_react-native-pdf' - version '5.1.7' + version '5.1.8' artifact("$libsDirName/tecnavia_react-native-pdf-release.aar") } @@ -374,13 +360,6 @@ publishing { 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' @@ -391,15 +370,15 @@ publishing { tareactnative(MavenPublication) { groupId 'tecnavia' artifactId 'react-native' - version '0.67.5' + version '0.70.15' artifact("$libsDirName/react-native-release.aar") } - tahermes(MavenPublication) { + taandroidjsc(MavenPublication) { groupId 'tecnavia' - artifactId 'hermes' + artifactId 'android-jsc' version '1.0.0' - artifact("$libsDirName/hermes-release.aar") + artifact("$libsDirName/android-jsc-release.aar") } } @@ -453,11 +432,6 @@ android { it.resValue 'string', 'IS_ADDON', IS_ADDON } } - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } } repositories { @@ -469,9 +443,9 @@ def frescoVersion = safeExtGet("frescoVersion", "2.5.0") def soLoaderVersion = safeExtGet("soLoaderVersion","0.10.1") def okHttpVersion = safeExtGet("okHttpVersion", "4.9.2") def glideVersion = safeExtGet("glideVersion", "4.12.0") -def kotlinVersion = safeExtGet("kotlinVersion", "1.4.0") +def kotlinVersion = safeExtGet("kotlinVersion", "1.9.0") def webkitVersion = safeExtGet("webkitVersion", "1.4.0") -def androidxVersion = safeExtGet("androidxVersion", "1.5.0") +def androidxVersion = safeExtGet("androidxVersion", "1.8.0") def androidxWorkRuntimeVersion = safeExtGet("androidxWorkRuntimeVersion", "2.7.0") def androidxAnnotationVersion = safeExtGet("androidxAnnotationVersion", "1.4.0") def androidxViewpager2Version = safeExtGet("androidxViewpager2Version", "1.0.0") @@ -486,15 +460,15 @@ def playServiceiidVersion = safeExtGet("playServiceiidVersion", "17.0.0") def playServiceBaseVersion = safeExtGet("playServiceBaseVersion", "18.0.1") def playServiceAnalyticsVersion = safeExtGet("playServiceAnalyticsVersion", "18.0.1") def playServiceAdsVersion = safeExtGet("playServiceAdsVersion", "20.2.0") -def playServiceMapsVersion = safeExtGet("playServiceMapsVersion", "17.0.0") +def playServiceMapsVersion = safeExtGet("playServiceMapsVersion", "18.0.2") def playBillingVersion = safeExtGet("playBillingVersion", "5.0.0") 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-color-matrix-image-filters:5.2.10" + implementation "tecnavia:react-native-async-storage_async-storage:2.0.0" + implementation "tecnavia:react-native-color-matrix-image-filters:6.0.9" implementation "tecnavia:react-native-community_art:1.2.0" implementation "tecnavia:react-native-community_datetimepicker:6.7.5" implementation "tecnavia:react-native-community_image-editor:2.3.0" @@ -502,50 +476,45 @@ dependencies { implementation "tecnavia:react-native-community_slider:2.0.9" implementation "tecnavia:react-native-config:1.4.11" implementation "tecnavia:react-native-cookies_cookies:6.2.0" - implementation "tecnavia:react-native-dark-mode:0.2.2" implementation "tecnavia:react-native-device-info:8.7.1" implementation "tecnavia:react-native-dynamic-fonts:0.3.2" 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" 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" implementation "tecnavia:react-native-mail:6.1.1" implementation "tecnavia:react-native-pager-view:6.1.4" implementation "tecnavia:react-native-photo-view-ex:1.1.0" - implementation "tecnavia:react-native-reanimated:1.13.3" + implementation "tecnavia:react-native-reanimated:2.17.0" implementation "tecnavia:react-native-safe-area-context:3.3.2" - implementation "tecnavia:react-native-screens:3.13.1" - implementation "tecnavia:react-native-share:7.9.1" + implementation "tecnavia:react-native-screens:3.32.0" + implementation "tecnavia:react-native-share:10.2.1" 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.2.1" 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" implementation "tecnavia:react-native-vector-icons:8.1.0" - implementation "tecnavia:react-native-video:5.1.1" + implementation "tecnavia:react-native-video:5.2.1" 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.3.6" implementation "tecnavia:tecnavia_react-native-default-preference: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-navigation-bar-color:2.0.2" - implementation "tecnavia:tecnavia_react-native-pdf:5.1.7" + implementation "tecnavia:tecnavia_react-native-pdf:5.1.8" 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" + api "tecnavia:react-native:0.70.15" + implementation "tecnavia:android-jsc:1.0.0" - //the below dependencies works, if you change the versions something could not work well - implementation "org.webkit:android-jsc:+" //androidx dependencies implementation "javax.inject:javax.inject:1" implementation "androidx.autofill:autofill:1.1.0" @@ -603,5 +572,5 @@ dependencies { implementation "net.lingala:zip4j:1.3.3" implementation "com.jakewharton.timber:timber:4.7.1" implementation "me.relex:photodraweeview:1.1.3" - implementation "com.yqritc:android-scalablevideoview:1.0.4" + implementation 'com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b' } diff --git a/gradle.properties b/gradle.properties index b0d144f..88dd4c2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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.16.08 +APP_VERSION_CODE=1729492829858 ANDROID_APP_ID=com.tecnaviaapplication IS_ADDON=true diff --git a/libs/android-jsc-release.aar b/libs/android-jsc-release.aar new file mode 100644 index 0000000..d19e253 Binary files /dev/null and b/libs/android-jsc-release.aar differ diff --git a/libs/hermes-release.aar b/libs/hermes-release.aar deleted file mode 100644 index bda9f98..0000000 Binary files a/libs/hermes-release.aar and /dev/null differ diff --git a/libs/react-native-async-storage_async-storage-release.aar b/libs/react-native-async-storage_async-storage-release.aar index dad0c98..c311edc 100644 Binary files a/libs/react-native-async-storage_async-storage-release.aar and b/libs/react-native-async-storage_async-storage-release.aar differ diff --git a/libs/react-native-color-matrix-image-filters-release.aar b/libs/react-native-color-matrix-image-filters-release.aar index 82e750b..d3a2962 100644 Binary files a/libs/react-native-color-matrix-image-filters-release.aar and b/libs/react-native-color-matrix-image-filters-release.aar differ diff --git a/libs/react-native-dark-mode-release.aar b/libs/react-native-dark-mode-release.aar deleted file mode 100644 index 40ef055..0000000 Binary files a/libs/react-native-dark-mode-release.aar and /dev/null differ diff --git a/libs/react-native-html-to-pdf-release.aar b/libs/react-native-html-to-pdf-release.aar deleted file mode 100644 index 629bb44..0000000 Binary files a/libs/react-native-html-to-pdf-release.aar and /dev/null differ diff --git a/libs/react-native-reanimated-release.aar b/libs/react-native-reanimated-release.aar index b979a00..75f1d62 100644 Binary files a/libs/react-native-reanimated-release.aar and b/libs/react-native-reanimated-release.aar differ diff --git a/libs/react-native-release.aar b/libs/react-native-release.aar index 3051c96..32e440c 100644 Binary files a/libs/react-native-release.aar and b/libs/react-native-release.aar differ diff --git a/libs/react-native-screens-release.aar b/libs/react-native-screens-release.aar index c91ea79..c1b7ff1 100644 Binary files a/libs/react-native-screens-release.aar and b/libs/react-native-screens-release.aar differ diff --git a/libs/react-native-share-release.aar b/libs/react-native-share-release.aar index 43846fd..d805293 100644 Binary files a/libs/react-native-share-release.aar and b/libs/react-native-share-release.aar differ diff --git a/libs/react-native-tecnavia-utils-release.aar b/libs/react-native-tecnavia-utils-release.aar index cb899d9..0c13259 100644 Binary files a/libs/react-native-tecnavia-utils-release.aar and b/libs/react-native-tecnavia-utils-release.aar differ diff --git a/libs/react-native-video-release.aar b/libs/react-native-video-release.aar index 2b9bed3..93e4c10 100644 Binary files a/libs/react-native-video-release.aar and b/libs/react-native-video-release.aar differ diff --git a/libs/tecnavia_react-native-bridge-release.aar b/libs/tecnavia_react-native-bridge-release.aar index 8e9aba8..fea9b8c 100644 Binary files a/libs/tecnavia_react-native-bridge-release.aar and b/libs/tecnavia_react-native-bridge-release.aar differ diff --git a/libs/tecnavia_react-native-pdf-release.aar b/libs/tecnavia_react-native-pdf-release.aar index 8779052..95c45c9 100644 Binary files a/libs/tecnavia_react-native-pdf-release.aar and b/libs/tecnavia_react-native-pdf-release.aar differ diff --git a/libs/tecnavia_react-native-workaround-release.aar b/libs/tecnavia_react-native-workaround-release.aar deleted file mode 100644 index 71ade8b..0000000 Binary files a/libs/tecnavia_react-native-workaround-release.aar and /dev/null differ diff --git a/src/main/assets/index.android.bundle b/src/main/assets/index.android.bundle index 9994f6a..57b98a2 100644 Binary files a/src/main/assets/index.android.bundle and b/src/main/assets/index.android.bundle differ diff --git a/src/main/assets/packages.txt b/src/main/assets/packages.txt index 491cb91..1fecfb0 100644 --- a/src/main/assets/packages.txt +++ b/src/main/assets/packages.txt @@ -29,12 +29,11 @@ com.tecnavia.push.PushPackage com.tecnavialibrary.comscore.ComscorePackage com.tecnavia.dailymotion.sdk.ReactNativeDailymotionSdkPackage iyegoroff.RNColorMatrixImageFilters.ColorMatrixImageFiltersPackage -com.codemotionapps.reactnativedarkmode.DarkModePackage com.dfplibrary.RNDfpPackage com.dylanvann.fastimage.FastImageViewPackage com.facebook.reactnative.androidsdk.FBSDKPackage com.christopherdro.htmltopdf.RNHTMLtoPDFPackage -com.dooboolab.RNIap.RNIapPackage +com.dooboolab.rniap.RNIapPackage com.marcshilling.idletimer.IdleTimerPackage com.BV.LinearGradient.LinearGradientPackage com.airbnb.android.react.maps.MapsPackage @@ -58,5 +57,4 @@ com.wenkesj.voice.VoicePackage com.reactnativecommunity.webview.RNCWebViewPackage com.RNFetchBlob.RNFetchBlobPackage com.blueconic.reactnative.BlueConicClientPackage -com.tecnavia.chartbeat.ChartBeatPackage -com.tecnavia.workaround.WorkaroundPackage \ No newline at end of file +com.tecnavia.chartbeat.ChartBeatPackage \ No newline at end of file