Is it possible to use the new Android app bundle architecture with RN 0.57?












2















App bundles: https://developer.android.com/guide/app-bundle/ This allows Google Play to manage signing, decrease the app size, and allows for pulling code on demand which is really awesome!



I tried setting this up but Android studio kept telling me I need to update my gradle version?



Here is my build.gradle:



// Top-level build file where you can add configuration options common to all sub-projects/modules.

task wrapper(type: Wrapper) {
gradleVersion = '4.4' //version required
}

buildscript {
repositories {
/**
* Must stay in this order
*/
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
}
}

subprojects {
afterEvaluate { project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 27
}
}
}
}

allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
maven { url "$rootDir/../node_modules/react-native/android" }
mavenCentral()
}
}

ext {
buildToolsVersion = "26.0.3"
minSdkVersion = 16
compileSdkVersion = 26
targetSdkVersion = 26
supportLibVersion = "26.1.0"
}


Is it possible for me to be able to use the app bundles? Or will I have to install wait until the RN community supports it?










share|improve this question



























    2















    App bundles: https://developer.android.com/guide/app-bundle/ This allows Google Play to manage signing, decrease the app size, and allows for pulling code on demand which is really awesome!



    I tried setting this up but Android studio kept telling me I need to update my gradle version?



    Here is my build.gradle:



    // Top-level build file where you can add configuration options common to all sub-projects/modules.

    task wrapper(type: Wrapper) {
    gradleVersion = '4.4' //version required
    }

    buildscript {
    repositories {
    /**
    * Must stay in this order
    */
    google()
    jcenter()
    mavenCentral()
    }
    dependencies {
    classpath 'com.android.tools.build:gradle:3.1.3'
    }
    }

    subprojects {
    afterEvaluate { project ->
    if (project.hasProperty("android")) {
    android {
    compileSdkVersion 27
    }
    }
    }
    }

    allprojects {
    repositories {
    google()
    jcenter()
    maven { url "https://jitpack.io" }
    maven { url "$rootDir/../node_modules/react-native/android" }
    mavenCentral()
    }
    }

    ext {
    buildToolsVersion = "26.0.3"
    minSdkVersion = 16
    compileSdkVersion = 26
    targetSdkVersion = 26
    supportLibVersion = "26.1.0"
    }


    Is it possible for me to be able to use the app bundles? Or will I have to install wait until the RN community supports it?










    share|improve this question

























      2












      2








      2








      App bundles: https://developer.android.com/guide/app-bundle/ This allows Google Play to manage signing, decrease the app size, and allows for pulling code on demand which is really awesome!



      I tried setting this up but Android studio kept telling me I need to update my gradle version?



      Here is my build.gradle:



      // Top-level build file where you can add configuration options common to all sub-projects/modules.

      task wrapper(type: Wrapper) {
      gradleVersion = '4.4' //version required
      }

      buildscript {
      repositories {
      /**
      * Must stay in this order
      */
      google()
      jcenter()
      mavenCentral()
      }
      dependencies {
      classpath 'com.android.tools.build:gradle:3.1.3'
      }
      }

      subprojects {
      afterEvaluate { project ->
      if (project.hasProperty("android")) {
      android {
      compileSdkVersion 27
      }
      }
      }
      }

      allprojects {
      repositories {
      google()
      jcenter()
      maven { url "https://jitpack.io" }
      maven { url "$rootDir/../node_modules/react-native/android" }
      mavenCentral()
      }
      }

      ext {
      buildToolsVersion = "26.0.3"
      minSdkVersion = 16
      compileSdkVersion = 26
      targetSdkVersion = 26
      supportLibVersion = "26.1.0"
      }


      Is it possible for me to be able to use the app bundles? Or will I have to install wait until the RN community supports it?










      share|improve this question














      App bundles: https://developer.android.com/guide/app-bundle/ This allows Google Play to manage signing, decrease the app size, and allows for pulling code on demand which is really awesome!



      I tried setting this up but Android studio kept telling me I need to update my gradle version?



      Here is my build.gradle:



      // Top-level build file where you can add configuration options common to all sub-projects/modules.

      task wrapper(type: Wrapper) {
      gradleVersion = '4.4' //version required
      }

      buildscript {
      repositories {
      /**
      * Must stay in this order
      */
      google()
      jcenter()
      mavenCentral()
      }
      dependencies {
      classpath 'com.android.tools.build:gradle:3.1.3'
      }
      }

      subprojects {
      afterEvaluate { project ->
      if (project.hasProperty("android")) {
      android {
      compileSdkVersion 27
      }
      }
      }
      }

      allprojects {
      repositories {
      google()
      jcenter()
      maven { url "https://jitpack.io" }
      maven { url "$rootDir/../node_modules/react-native/android" }
      mavenCentral()
      }
      }

      ext {
      buildToolsVersion = "26.0.3"
      minSdkVersion = 16
      compileSdkVersion = 26
      targetSdkVersion = 26
      supportLibVersion = "26.1.0"
      }


      Is it possible for me to be able to use the app bundles? Or will I have to install wait until the RN community supports it?







      android react-native react-native-android android-app-bundle






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 23 '18 at 0:22









      James111James111

      6,82783980




      6,82783980
























          1 Answer
          1






          active

          oldest

          votes


















          1














          It's already possible to publish React Native apps with the Android App Bundle. The support is in Android Studio and Gradle since 3.2.0.






          share|improve this answer
























          • Can you elaborate more on this? Is it enabled by default or do we need to configure something on the gradle files? Should we use it with precautions like when using proguard on RN?

            – mjabadilla
            Feb 24 at 13:44











          • Have you managed to set up to get Android App Bundle with RN?

            – Aung Myint Thein
            2 days ago











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439346%2fis-it-possible-to-use-the-new-android-app-bundle-architecture-with-rn-0-57%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          It's already possible to publish React Native apps with the Android App Bundle. The support is in Android Studio and Gradle since 3.2.0.






          share|improve this answer
























          • Can you elaborate more on this? Is it enabled by default or do we need to configure something on the gradle files? Should we use it with precautions like when using proguard on RN?

            – mjabadilla
            Feb 24 at 13:44











          • Have you managed to set up to get Android App Bundle with RN?

            – Aung Myint Thein
            2 days ago
















          1














          It's already possible to publish React Native apps with the Android App Bundle. The support is in Android Studio and Gradle since 3.2.0.






          share|improve this answer
























          • Can you elaborate more on this? Is it enabled by default or do we need to configure something on the gradle files? Should we use it with precautions like when using proguard on RN?

            – mjabadilla
            Feb 24 at 13:44











          • Have you managed to set up to get Android App Bundle with RN?

            – Aung Myint Thein
            2 days ago














          1












          1








          1







          It's already possible to publish React Native apps with the Android App Bundle. The support is in Android Studio and Gradle since 3.2.0.






          share|improve this answer













          It's already possible to publish React Native apps with the Android App Bundle. The support is in Android Studio and Gradle since 3.2.0.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 24 '18 at 12:40









          PierrePierre

          2,1941610




          2,1941610













          • Can you elaborate more on this? Is it enabled by default or do we need to configure something on the gradle files? Should we use it with precautions like when using proguard on RN?

            – mjabadilla
            Feb 24 at 13:44











          • Have you managed to set up to get Android App Bundle with RN?

            – Aung Myint Thein
            2 days ago



















          • Can you elaborate more on this? Is it enabled by default or do we need to configure something on the gradle files? Should we use it with precautions like when using proguard on RN?

            – mjabadilla
            Feb 24 at 13:44











          • Have you managed to set up to get Android App Bundle with RN?

            – Aung Myint Thein
            2 days ago

















          Can you elaborate more on this? Is it enabled by default or do we need to configure something on the gradle files? Should we use it with precautions like when using proguard on RN?

          – mjabadilla
          Feb 24 at 13:44





          Can you elaborate more on this? Is it enabled by default or do we need to configure something on the gradle files? Should we use it with precautions like when using proguard on RN?

          – mjabadilla
          Feb 24 at 13:44













          Have you managed to set up to get Android App Bundle with RN?

          – Aung Myint Thein
          2 days ago





          Have you managed to set up to get Android App Bundle with RN?

          – Aung Myint Thein
          2 days ago




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439346%2fis-it-possible-to-use-the-new-android-app-bundle-architecture-with-rn-0-57%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Xamarin.form Move up view when keyboard appear

          JBPM : POST request for execute process go wrong