Skip to content

Commit

Permalink
update url and name
Browse files Browse the repository at this point in the history
  • Loading branch information
kengoon committed Dec 4, 2023
1 parent ad4ecbf commit 55ae842
Show file tree
Hide file tree
Showing 14 changed files with 199 additions and 7 deletions.
45 changes: 45 additions & 0 deletions .idea/appInsightsSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions buildSrc/src/main/kotlin/publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ publishing {
version = "$version-SNAPSHOT"
}
description.set("A template for Kotlin Android projects")
url.set("https://github.com/cortinico/kotlin-android-template/")
url.set("https://github.com/SimpleJnius/sj-firebase-java/")

licenses {
license {
Expand All @@ -71,18 +71,18 @@ publishing {
}
developers {
developer {
id.set("cortinico")
name.set("Nicola Corti")
id.set("kengoon")
name.set("Kenechukwu Akubue")
}
}
scm {
connection.set("scm:git:git://github.com/cortinico/kotlin-android-template.git")
developerConnection.set("scm:git:ssh://github.com/cortinico/kotlin-android-template.git")
url.set("https://github.com/cortinico/kotlin-android-template/")
connection.set("scm:git:git://github.com/SimpleJnius/sj-firebase-java.git")
developerConnection.set("scm:git:ssh://github.com/SimpleJnius/sj-firebase-java.git")
url.set("https://github.com/SimpleJnius/sj-firebase-java/")
}
issueManagement {
system.set("GitHub Issues")
url.set("https://github.com/cortinico/kotlin-android-template/issues")
url.set("https://github.com/SimpleJnius/sj-firebase-java/issues")
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ kotlin = "1.9.20"
min_sdk_version = "21"
target_sdk_version = "34"
benmanesversion = "0.50.0"
agp2 = "8.2.0"
material = "1.9.0"

[libraries]
junit = { module = "junit:junit", version.ref = "junit" }
Expand All @@ -37,7 +39,9 @@ detekt_formatting = { module = "io.gitlab.arturbosch.detekt:detekt-formatting",
espresso_core = { module = "androidx.test.espresso:espresso-core", version.ref = "espresso.core" }
agp = { module = "com.android.tools.build:gradle", version.ref = "agp" }
kgp = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }

[plugins]
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
versions = { id = "com.github.ben-manes.versions", version.ref = "benmanesversion" }
androidLibrary = { id = "com.android.library", version.ref = "agp2" }
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ include(
"library-compose",
"library-kotlin"
)
include(":sjfirebase")
1 change: 1 addition & 0 deletions sjfirebase/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
47 changes: 47 additions & 0 deletions sjfirebase/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
plugins {
id("com.android.library")
id("maven-publish")
publish
}

android {
namespace = "com.simplejnius.sjfirebase"
compileSdk = 34

defaultConfig {
minSdk = 21

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}

dependencies {

implementation(libs.androidx.appcompat)
implementation(libs.material)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.espresso.core)
}
Empty file added sjfirebase/consumer-rules.pro
Empty file.
21 changes: 21 additions & 0 deletions sjfirebase/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.simplejnius.sjfirebase;

import android.content.Context;

import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.simplejnius.sjfirebase.test", appContext.getPackageName());
}
}
4 changes: 4 additions & 0 deletions sjfirebase/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.simplejnius.sjfirebase;

import org.junit.Test;

import static org.junit.Assert.*;

/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}

0 comments on commit 55ae842

Please sign in to comment.