equal
deleted
inserted
replaced
19 * You should have received a copy of the GNU General Public License |
19 * You should have received a copy of the GNU General Public License |
20 * along with Geekdroid. If not, see <http://www.gnu.org/licenses/>. |
20 * along with Geekdroid. If not, see <http://www.gnu.org/licenses/>. |
21 */ |
21 */ |
22 package com.geekorum.build |
22 package com.geekorum.build |
23 |
23 |
24 import com.android.build.gradle.AppExtension |
24 import com.android.build.api.dsl.ApplicationExtension |
25 import com.github.triplet.gradle.play.PlayPublisherExtension |
25 import com.github.triplet.gradle.play.PlayPublisherExtension |
26 import org.gradle.api.NamedDomainObjectContainer |
26 import org.gradle.api.NamedDomainObjectContainer |
27 import org.gradle.api.Project |
27 import org.gradle.api.Project |
28 import org.gradle.api.plugins.ExtensionAware |
28 import org.gradle.api.plugins.ExtensionAware |
29 import org.gradle.kotlin.dsl.apply |
29 import org.gradle.kotlin.dsl.apply |
45 track.set(properties.getOrDefault("PLAY_STORE_TRACK", "internal") as String) |
45 track.set(properties.getOrDefault("PLAY_STORE_TRACK", "internal") as String) |
46 fromTrack.set(properties.getOrDefault("PLAY_STORE_FROM_TRACK", "internal") as String) |
46 fromTrack.set(properties.getOrDefault("PLAY_STORE_FROM_TRACK", "internal") as String) |
47 serviceAccountCredentials.set(file(properties["PLAY_STORE_JSON_KEY_FILE"]!!)) |
47 serviceAccountCredentials.set(file(properties["PLAY_STORE_JSON_KEY_FILE"]!!)) |
48 } |
48 } |
49 |
49 |
50 val android = the<AppExtension>() as ExtensionAware |
50 val android = the<ApplicationExtension>() as ExtensionAware |
51 |
51 |
52 tasks.apply { |
52 tasks.apply { |
53 register("publishToGooglePlayStore") { |
53 register("publishToGooglePlayStore") { |
54 group = "Continuous Delivery" |
54 group = "Continuous Delivery" |
55 description = "Publish project to Google play store" |
55 description = "Publish project to Google play store" |