Code Monkey home page Code Monkey logo

Comments (6)

pboos avatar pboos commented on July 30, 2024

I can integrate that easily and quickly. The only question is what e-mail we would use for the account. And the problem that the api key would be in the source and with that visible to everyone. Any suggestions?

from mobile-android.

jmathai avatar jmathai commented on July 30, 2024

Is it possible to include the API key optionally in a file that's ignored by git so it doesn't make it into the repository but included in the APKs?

from mobile-android.

pboos avatar pboos commented on July 30, 2024

Yes that can be done. I could put it into a resources file like values/apikeys.xml and have .gitignore ignore that one. Then if somebody tries to compile the app it will show them missing string values. would that be okay?
Or maybe i should commit that file once (with empty api keys) before putting it into gitignore.

from mobile-android.

patricksan avatar patricksan commented on July 30, 2024

API key created. Let me know when it is needed.

If API Key not defined in the project, we should not use it .

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState); 
        setContentView(R.layout.main);          

        if (BUG_SENSE_API_KEY != null){
           BugSenseHandler.setup(this, BUG_SENSE_API_KEY);
        }       

    // The rest of your code goes here
}

from mobile-android.

patricksan avatar patricksan commented on July 30, 2024

Key will not be stored in github.

from mobile-android.

patricksan avatar patricksan commented on July 30, 2024

Working

from mobile-android.

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.