BuildConfig + gradle.properties used in conjunction with

Add rely on the use of gradle

1, a new project gradle

You can see build.gradle

 

 2, write gradle.properties

 

 3, modify build.gradle compiled jar

Using the value $ {key} to obtain the key

 

 4. Wait for the automatic introduction gradle

 

 We can see that the import is complete, start playing. . .

Guess you like

Origin www.cnblogs.com/hoo334/p/12165980.html