Giter Club home page Giter Club logo

Comments (8)

SupriyaKalghatgi avatar SupriyaKalghatgi commented on June 1, 2024

@basequatro For detailed implementation of CodePush, you can refer its ReadMe
You can follow steps mentioned here for iOS key deployment

There are no issues with background images. NSK has been updated with pure NativeBase components with least usage of external styles.

from native-starter-kit.

basequatro avatar basequatro commented on June 1, 2024

I can't compile this project for Android.
Any idea what i've missed?

screen shot 2016-09-29 at 10 50 42 pm

from native-starter-kit.

SupriyaKalghatgi avatar SupriyaKalghatgi commented on June 1, 2024

@basequatro Can you list down the steps you followed to set up NSK for Android?

from native-starter-kit.

basequatro avatar basequatro commented on June 1, 2024
  1. Made it work with IOS first.
  2. Link with with react-native link

Set in build.gradle app

        release {
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
            buildConfigField "String", "CODEPUSH_KEY", "XXXX"
        }
        debug {
            buildConfigField "String", "CODEPUSH_KEY", "YYYY"
        }
  1. Set in java file
new CodePush("XXXX", MainApplication.this, BuildConfig.DEBUG)

from native-starter-kit.

basequatro avatar basequatro commented on June 1, 2024

This happens when i set debug key.

        debug {
            buildConfigField "String", "CODEPUSH_KEY", "MYSTAGINGKEY"
        }

If i remove debug { ...} the project builds fine

screen shot 2016-09-30 at 4 06 03 am

  // Fields from build type: debug
  public static final String CODEPUSH_KEY = MYSTAGINGKEY;

from native-starter-kit.

basequatro avatar basequatro commented on June 1, 2024

I\ve added also this to strings.xml

<string moduleConfig="true" name="reactNativeCodePush_androidDeploymentKey">MYPRODKEY</string>

from native-starter-kit.

SupriyaKalghatgi avatar SupriyaKalghatgi commented on June 1, 2024

@basequatro Its very simple

  1. react-native link react-native-code-push
  2. Enter codepush keys
    This automatically adds key to android/app/src/main/res/values/strings.xml
    Also no need of adding keys in MainApplication.java
  3. Go to android/app/build.gradle and add this
buildTypes {
    debug {
         buildConfigField "String", "CODEPUSH_KEY", '"codepush_staging_key"'
    }
    release {
        buildConfigField "String", "CODEPUSH_KEY", '"codepush_production_key"'
    }
}

from native-starter-kit.

SupriyaKalghatgi avatar SupriyaKalghatgi commented on June 1, 2024

@basequatro Still facing issues?

Check the latest release of NSK

from native-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.