Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify ToastUtil context cast #109

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# TedImagePicker [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-TedImagePicker-green.svg?style=flat)](https://android-arsenal.com/details/1/7697)

## Instructions
- Set version in settings.gradle
- Run gradle build
- Set GOOGLE_APPLICATION_CREDENTIALS env variable
- Rum gradle publish

TedImagePicker is **simple/beautiful/smart** image picker

- Support Image/Video
Expand Down
10 changes: 0 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ buildscript {
dependencies {
classpath "com.android.tools.build:gradle:${versions.gradle}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

classpath 'com.vanniktech:gradle-maven-publish-plugin:0.15.1'
}
}

Expand All @@ -28,12 +24,6 @@ allprojects {

group = GROUP
version = VERSION_NAME

plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
}
}
}

task clean(type: Delete) {
Expand Down
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ext {
'compileSdkVersion': 30,
'targetSdkVersion' : 30,
'gradle' : '7.0.2',
'kotlin' : '1.5.30',
'kotlin' : '1.6.0',
'supportLibrary' : '25.0.0',
]

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ kotlin.code.style=official

GROUP=io.github.ParkSangGwon
POM_ARTIFACT_ID=tedimagepicker
VERSION_NAME=1.2.8
VERSION_NAME=1.3.0

POM_NAME=TedImagePicker
POM_PACKAGING=aar
Expand Down
29 changes: 28 additions & 1 deletion tedimagepicker/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
plugins {
id "maven-publish"
id "com.google.cloud.artifactregistry.gradle-plugin" version "2.1.4"
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
Expand Down Expand Up @@ -47,4 +52,26 @@ dependencies {
implementation 'com.alexvasilkov:gesture-views:2.5.2'
}

apply plugin: "com.vanniktech.maven.publish"
publishing {
publications {
maven(MavenPublication) {
groupId = 'io.github.ParkSangGwon'
artifactId = 'TedImagePicker'
version = VERSION_NAME
afterEvaluate {
from components.release
}
}
}
repositories {
maven {
url "artifactregistry://europe-west1-maven.pkg.dev/round-runner-126807/mightyfields-maven"
}
}
}

repositories {
maven {
url "artifactregistry://europe-west1-maven.pkg.dev/round-runner-126807/mightyfields-maven"
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package gun0912.tedimagepicker.util

import android.app.Application
import android.content.ContentProvider
import android.content.ContentValues
import android.content.Context
import android.database.Cursor
import android.net.Uri

class TedImagePickerContentProvider : ContentProvider() {
override fun onCreate(): Boolean {
ToastUtil.context = context as Application
ToastUtil.context = context as Context
return true
}

Expand Down