Last active
          February 1, 2019 02:13 
        
      - 
      
- 
        Save yshrsmz/733a44f9a9779f68b4b14fbfdc4a1ad1 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | plugins { | |
| id 'kotlin-multiplatform' | |
| id 'com.codingfeline.buildkonfig' | |
| } | |
| buildkonfig { | |
| packageName = "com.codingfeline.githubdata" | |
| defaultConfigs { | |
| buildConfigField 'STRING', 'GITHUB_TOKEN', 'hogehoge' | |
| } | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // androidMain/BuildKonfig.kt | |
| package com.codingfeline.githubdata | |
| import kotlin.String | |
| actual object BuildKonfig { | |
| actual val GITHUB_TOKEN: String = "hogehoge" | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // commonMain/BuildKonfig.kt | |
| package com.codingfeline.githubdata | |
| import kotlin.String | |
| expect object BuildKonfig { | |
| val GITHUB_TOKEN: String | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment