Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Support attribution API
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarbo committed Dec 19, 2022
1 parent 028c095 commit e1edecf
Show file tree
Hide file tree
Showing 13 changed files with 1,714 additions and 1,690 deletions.
27 changes: 12 additions & 15 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ buildscript {
def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['GlassfyModule_kotlinVersion']

repositories {
google()
mavenCentral()
jcenter()
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
// noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

}
}

Expand All @@ -30,7 +28,7 @@ def getExtOrIntegerDefault(name) {
android {
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
defaultConfig {
minSdkVersion 21
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
versionCode 1
versionName "1.0"
Expand All @@ -53,7 +51,6 @@ android {

repositories {
mavenCentral()
jcenter()
google()
maven {
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
Expand All @@ -67,8 +64,8 @@ repositories {
defaultDir = rootProject.ext.get('reactNativeAndroidRoot')
} else {
defaultDir = new File(
projectDir,
'/../../../node_modules/react-native/android'
projectDir,
'/../../../node_modules/react-native/android'
)
}

Expand All @@ -88,13 +85,13 @@ repositories {
parentDir = parentDir.parentFile

def androidSourcesDir = new File(
parentDir,
'node_modules/react-native'
parentDir,
'node_modules/react-native'
)

def androidPrebuiltBinaryDir = new File(
parentDir,
'node_modules/react-native/android'
parentDir,
'node_modules/react-native/android'
)

if (androidPrebuiltBinaryDir.exists()) {
Expand All @@ -119,8 +116,8 @@ repositories {

if (!found) {
throw new GradleException(
"${project.name}: unable to locate React Native android sources. " +
"Ensure you have you installed React Native as a dependency in your project and try again."
"${project.name}: unable to locate React Native android sources. " +
"Ensure you have you installed React Native as a dependency in your project and try again."
)
}
}
Expand All @@ -130,6 +127,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
dependencies {
// noinspection GradleDynamicVersion
api 'com.facebook.react:react-native:+'
implementation("io.glassfy:androidglue:1.3.4")
implementation("io.glassfy:androidglue:1.3.7")
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
1 change: 1 addition & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
GlassfyModule_kotlinVersion=1.6.10
GlassfyModule_minSdkVersion=21
GlassfyModule_compileSdkVersion=31
GlassfyModule_targetSdkVersion=28
android.useAndroidX=true
Binary file modified android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Mar 10 17:21:00 CET 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit e1edecf

Please sign in to comment.