[
  {
    "path": ".gitignore",
    "content": ".DS_Store\n**/.DS_Store"
  },
  {
    "path": "README.md",
    "content": "## Gaga Miner Android SDK integration Tutorial\n\n- This document is a simple example of SDK integration.\n- For official stable running application reference please go to [Gaga Android](https://github.com/gaganode/gaga_android).\n\n### 1. Go to GitHub to download the latest version .jar SDK\n\n[https://github.com/gaganode/gaga_android_sdk](https://github.com/gaganode/gaga_android_sdk)\n\n### 2. Add the SDK.jar file to your libs folder and Add as library\n\n![](https://user-images.githubusercontent.com/46369948/206830317-a9d801d1-c35a-4f64-80b4-616efa5d77cb.jpg)\n\n### 3. Add the SDK.jar file to your libs folder and Add as library\n\n```java\n<uses-permission android:name=\"android.permission.INTERNET\" >\n<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" />\n```\n\n### 4. In your Activity start the sdk\n\n```java\nString token= \"{your token}\";\nSharedPreferences miner_sdk_sp= getSharedPreferences(\"miner_sdk\",MODE_PRIVATE);\nlong node_id=miner_sdk_sp.getLong(\"node_id\", Math.abs(new Random().nextLong()));\nminer_sdk_sp.edit().putLong(\"node_id\",node_id).apply();\n\n//MinerSdk.setProduct(Build.BRAND+\":\"+Build.MODEL); //optional:for better optimization\nMinerSdk.init(node_id,token);\nMinerSdk.start();\n```"
  }
]