Skip to content

Use project-wide SDK versions instead of hardcoded values in build.gradle #8

@hublo-official

Description

@hublo-official

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-install-referrer@1.0.1 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-install-referrer/android/build.gradle b/node_modules/react-native-install-referrer/android/build.gradle
index f4f1319..1ff4484 100644
--- a/node_modules/react-native-install-referrer/android/build.gradle
+++ b/node_modules/react-native-install-referrer/android/build.gradle
@@ -12,7 +12,7 @@ buildscript {
 apply plugin: 'com.android.library'
 
 android {
-    compileSdkVersion 23
+   compileSdkVersion rootProject.ext.compileSdkVersion
     buildToolsVersion "23.0.1"
 
     defaultConfig {

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions