Technical Documentation: kickstarter/android-oss
βΉοΈ Provenance: Multi-Tier Ingestion Β· CodeWiki Reference
Overview (`README.md`)
Welcome to Kickstarter's open source Android app! Come on in, take your shoes
off, stay a whileβexplore how Kickstarter's native squad has built and
continues to build the app, discover our implementation of RxJava in logic-
filled view models,
and maybe even create an issue or two.
We've also open sourced our iOS app, written in Swift:
check it out here. Read more about our journey to open source here.
Getting Started
Follow these instructions to build and run the project with mock data..
- Clone this repository.
- Download the appropriate JDK
for your system. We are currently on JDK 8. - Install Android Studio.
cdinto the project repo and runmake bootstrapto bootstrap your Android
development environment. Keep an eye on the output to see if any manual steps
are required.- Import the project. Open Android Studio, click
Open an existing Android Studio projectand select the project. Gradle will build the project. - Run the app. Click
Run > Run 'app'. After the project builds you'll be
prompted to build or launch an emulator.
Documentation
While we're at it, why not share our docs? Check out the
native docs we have written so far
for more documentation.
Contributing
We intend for this project to be an educational resource: we are excited to
share our wins, mistakes, and methodology of Android development as we work
in the open. Our primary focus is to continue improving the app for our users in
line with our roadmap.
The best way to submit feedback and report bugs is to open a Github issue.
Please be sure to include your operating system, device, version number, and
steps to reproduce reported bugs. Keep in mind that all participants will be
expected to follow our code of conduct.
Code of Conduct
We aim to share our knowledge and findings as we work daily to improve our
product, for our community, in a safe and open space. We work as we live, as
kind and considerate human beings who learn and grow from giving and receiving
positive, constructive feedback. We reserve the right to delete or ban any
behavior violating this base foundation of respect.
Find this interesting?
We do too, and weβre hiring!
License
Copyright 2020 Kickstarter, PBC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.Overview (`fastlane/README.md`)
fastlane documentation
Installation
Make sure you have the latest version of the Xcode command line tools installed:
xcode-select --installFor fastlane installation instructions, see Installing fastlane
Available Actions
alpha
[bundle exec] fastlane alphaexternal
[bundle exec] fastlane externalinternal
[bundle exec] fastlane internalThis README.md is auto-generated and will be re-generated every time fastlane is run.
More information about fastlane can be found on fastlane.tools.
The documentation of fastlane can be found on docs.fastlane.tools.
Overview (`app/src/main/java/com/kickstarter/features/socialshare/README.md`)
Social Share
Overview
The Social Share feature lets users share a Kickstarter project with their network directly from within the app. When a user taps the share button on a project a bottom sheet slides up presenting a grid of sharing destinations alongside a preview card of the project.
Supported platforms
| Icon | Destination | Requires app installed? |
|---|---|---|
| X | X (Twitter) | Yes |
| Instagram Feed | Yes | |
| Instagram Stories | Yes | |
| Facebook Feed | Yes | |
| Facebook Stories | Yes | |
| Yes | ||
| Messages | SMS / iMessage | No (native) |
| No (native) | ||
| More | Native system share sheet | No (native) |
| Copy Link | Clipboard | No |
Architecture
The feature is structured as a self-contained package under features/socialshare/:
SocialShareService/AndroidSocialShareServiceβ interface that abstracts all Android framework calls (PackageManager, ClipboardManager, FileProvider, intent construction) so the ViewModel never holds aContext.SocialShareViewModelβ on creation it detects which platform apps are installed and begins caching the project image in the background. ExposesonPlatformSelected,onCopyLinkClicked, andonCopiedToastShown.SocialShareSheetβ aModalBottomSheetcomposable. It reads the ViewModel throughLocalSocialShareViewModel(aCompositionLocalProvider) so the ViewModel is always created by the caller with the correctshareDatarather than inside the composable itself.ShareImageCacheβ downloads the project image and writes it to the app cache as acontent://URI viaFileProvider, which is required to grant read permission to third-party apps.SocialShareIntentBuilderβ constructs the correctIntentper platform.
How to integrate
Create the ViewModel where you have access to shareData, then wrap the sheet in a CompositionLocalProvider:
shareData?.let { data ->
val shareViewModel = remember(data) {
SocialShareViewModel(
shareService = AndroidSocialShareService(context.applicationContext),
shareData = data
)
}
CompositionLocalProvider(LocalSocialShareViewModel provides shareViewModel) {
SocialShareSheet(
shareData = data,
isVisible = true,
onDismiss = { shareData = null },
onIntentReady = { startActivity(it) }
)
}
}Intent Content Summary
This section summarizes the content included in the intents generated by SocialShareIntentBuilder for each platform.
| Platform | Includes Image? | Includes Link? | Includes Text (Name)? | Notes |
|---|---|---|---|---|
| X (Twitter) | β | β | β | Supports both image and text/link via ACTION_SEND. |
| β | β | β | Text is rendered as a caption beneath the image. | |
| Messages (SMS) | β | β | β | Text-only via ACTION_SENDTO for reliability across OEMs. |
| β | β | β | Image as inline attachment; falls back to mailto: if no image. |
|
| Instagram Feed | β | β | β | Uses EXTRA_TEXT; behavior depends on Instagram app version. |
| Facebook Feed | β | β | β | Uses EXTRA_TEXT; behavior depends on Facebook app version. |
| Native Chooser | β | β | β | Universal fallback for any app not listed explicitly. |
| Stories (IG/FB) | β | β | β | Custom ADD_TO_STORY actions do not have a text/link slot. |
--- METRICS ---
- Files Extracted: 3
- Estimated Token Budget: ~2007 tokens
- Canonical Reference: https://codewiki.google/github.com/kickstarter/android-oss