-
Notifications
You must be signed in to change notification settings - Fork 3
docs, fixes & improvements #18
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
base: master
Are you sure you want to change the base?
Changes from all commits
3b596b6
b26b48f
0b8bddf
3816feb
24d81e2
39c743c
69e1ada
23a5f90
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,26 +8,48 @@ apply plugin: 'com.mikepenz.aboutlibraries.plugin' | |
| android { | ||
| compileSdk 35 | ||
|
|
||
| def localPropertiesFile = rootProject.file('local.properties') | ||
| def localProperties = new Properties() | ||
| if (localPropertiesFile.exists()) { | ||
| localProperties.load(localPropertiesFile.newDataInputStream()) | ||
| } | ||
|
|
||
| def posthogApiKey = localProperties.getProperty("POSTHOG_API_KEY", POSTHOG_API_KEY) | ||
| def host = localProperties.getProperty("HOST", HOST) | ||
| def serverPosthog = localProperties.getProperty("SERVER_POSTHOG", SERVER_POSTHOG) | ||
| def serverRoot = localProperties.getProperty("SERVER_ROOT", SERVER_ROOT) | ||
| def serverMelior = localProperties.getProperty("SERVER_MELIOR", SERVER_MELIOR) | ||
| def serverS3 = localProperties.getProperty("SERVER_S3", SERVER_S3) | ||
| def appId = localProperties.getProperty("APP_ID", APP_ID) | ||
| def appName = localProperties.getProperty("APP_NAME", APP_NAME) | ||
|
|
||
| defaultConfig { | ||
| minSdkVersion 23 | ||
| targetSdk 35 | ||
| versionCode 4_12_01 | ||
| versionName "4.12.1" | ||
| applicationId "sh.sit.bonfire" | ||
| applicationId appId | ||
|
Comment on lines
-16
to
+31
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Не совсем понимаю смысл делать кастомный ID приложения, если в дебаг сборке и так добавляется в конец |
||
|
|
||
| buildConfigField "String", "POSTHOG_API_KEY", "\"$posthogApiKey\"" | ||
|
|
||
| buildConfigField "String", "POSTHOG_API_KEY", "\"$POSTHOG_API_KEY\"" | ||
| buildConfigField "String", "POSTHOG_HOST", "\"$POSTHOG_HOST\"" | ||
| buildConfigField "String", "HOST", "\"$host\"" | ||
| buildConfigField "String", "SERVER_POSTHOG", "\"$serverPosthog\"" | ||
| buildConfigField "String", "SERVER_ROOT", "\"$serverRoot\"" | ||
| buildConfigField "String", "SERVER_MELIOR", "\"$serverMelior\"" | ||
| buildConfigField "String", "SERVER_S3", "\"$serverS3\"" | ||
| } | ||
|
|
||
| buildTypes { | ||
| release { | ||
| manifestPlaceholders = [crashlyticsEnabled: false] | ||
| resValue "string", "app_name", appName | ||
| manifestPlaceholders = [crashlyticsEnabled: false, usesCleartextTraffic: false, host: HOST] | ||
| minifyEnabled true | ||
| shrinkResources true | ||
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
| } | ||
| debug { | ||
| manifestPlaceholders = [crashlyticsEnabled: false] | ||
| resValue "string", "app_name", appName | ||
| manifestPlaceholders = [crashlyticsEnabled: false, usesCleartextTraffic: true, host: HOST] | ||
| applicationIdSuffix ".debug" | ||
| } | ||
| } | ||
|
|
||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| <resources> | ||
| <string name="app_name" translatable="false">Bonfire</string> | ||
| </resources> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -471,4 +471,14 @@ object ApiResources { | |
| QUEST_NEW_YEAR_9, | ||
| QUEST_NEW_YEAR_10 | ||
| ) | ||
|
|
||
| val REACTIONS = arrayOf( | ||
| ApiResources.EMOJI_1, | ||
| ApiResources.EMOJI_2, | ||
| ApiResources.EMOJI_3, | ||
| ApiResources.EMOJI_4, | ||
| ApiResources.EMOJI_5, | ||
| ApiResources.EMOJI_6, | ||
| ApiResources.EMOJI_7 | ||
|
Comment on lines
+476
to
+482
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| ) | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| package com.dzen.campfire.api.models.publications.history | ||
|
|
||
| import com.dzen.campfire.api.API | ||
| import com.sup.dev.java.libs.json.Json | ||
|
|
||
| class HistoryPending : History { | ||
| var pendingTime = 0L | ||
|
|
||
| override fun getType() = API.HISTORY_PUBLICATION_TYPE_PENDING | ||
|
|
||
| override fun json(inp: Boolean, json: Json): Json { | ||
| pendingTime = json.m(inp, "pendingTime", pendingTime) | ||
| return super.json(inp, json) | ||
| } | ||
|
|
||
| constructor() | ||
|
|
||
| constructor( | ||
| userId: Long, | ||
| userImageId: Long, | ||
| userName: String, | ||
| pendingTime: Long | ||
| ) : super(userId, userImageId, userName, "") { | ||
| this.pendingTime = pendingTime | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Стрим надо надо закрыть. В котлине я делал так, в Groovy надо посмотреть: