Compare commits
15 Commits
Author | SHA1 | Date |
---|---|---|
naquilini | bbed22fe99 | |
Nick | cd48a9966c | |
Nick | 318fa4b7bf | |
Nick Aquilini | d39de0465f | |
amauri | fe9306c3a1 | |
amauri | c5d5ef9a71 | |
amauri | 1c8efac85d | |
amauri | e9a50d6655 | |
amauri | cb999d87cc | |
Nick | b0ace6e70e | |
amauri | f562317749 | |
amauri | cb094228c6 | |
amauri | 935eec2a4b | |
amauri | 01092b8adc | |
amauri | ae44078e7a |
70
README.md
70
README.md
|
@ -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
|
||||
|
@ -202,10 +204,13 @@ public class YourActivity extends AppCompatActivity {
|
|||
}
|
||||
})
|
||||
.setBuildProps(getBuildProps());
|
||||
} else {
|
||||
taFragment = (TaFragment) getSupportFragmentManager().findFragmentByTag("TA_FRAGMENT");
|
||||
}
|
||||
|
||||
getSupportFragmentManager()
|
||||
.beginTransaction()
|
||||
.add(R.id.rnFragment, fragment)
|
||||
.replace(R.id.rnFragment, taFragment, "TA_FRAGMENT")
|
||||
.commit();
|
||||
}
|
||||
|
||||
|
@ -223,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;
|
||||
}
|
||||
}
|
||||
|
@ -261,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 {
|
||||
...
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
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
|
||||
|
|
58
build.gradle
58
build.gradle
|
@ -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")
|
||||
}
|
||||
|
||||
|
@ -164,20 +164,6 @@ publishing {
|
|||
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) {
|
||||
groupId 'tecnavia'
|
||||
artifactId 'react-native-idle-timer'
|
||||
|
@ -272,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")
|
||||
}
|
||||
|
||||
|
@ -335,7 +321,7 @@ publishing {
|
|||
tatecnaviareactnativebridge(MavenPublication) {
|
||||
groupId 'tecnavia'
|
||||
artifactId 'tecnavia_react-native-bridge'
|
||||
version '1.2.15'
|
||||
version '1.3.2'
|
||||
artifact("$libsDirName/tecnavia_react-native-bridge-release.aar")
|
||||
}
|
||||
|
||||
|
@ -370,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")
|
||||
}
|
||||
|
||||
|
@ -384,10 +370,17 @@ publishing {
|
|||
tatecnaviareactnativewebanalytics(MavenPublication) {
|
||||
groupId 'tecnavia'
|
||||
artifactId 'tecnavia_react-native-web-analytics'
|
||||
version '1.0.0'
|
||||
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'
|
||||
|
@ -500,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"
|
||||
|
@ -516,8 +509,6 @@ dependencies {
|
|||
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"
|
||||
|
@ -531,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"
|
||||
|
@ -540,19 +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.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-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.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"
|
||||
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
|
||||
|
@ -593,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"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
android.useAndroidX=true
|
||||
|
||||
APP_NAME=Android SDK
|
||||
APP_VERSION_NAME=3.12.01
|
||||
APP_VERSION_CODE=1711618364614
|
||||
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.
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.
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.
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.
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.
|
@ -59,3 +59,4 @@ com.reactnativecommunity.webview.RNCWebViewPackage
|
|||
com.RNFetchBlob.RNFetchBlobPackage
|
||||
com.blueconic.reactnative.BlueConicClientPackage
|
||||
com.tecnavia.chartbeat.ChartBeatPackage
|
||||
com.tecnavia.workaround.WorkaroundPackage
|
Loading…
Reference in New Issue