Skip to content
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
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ bin/res/*
bin/classes
bin/dexedLibs

.metadata

# Local configuration file (sdk path, etc)
local.properties

.metadata
# Signing
*.jks

# Gradle
.gradle/
build/
11 changes: 4 additions & 7 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.gmail.mugcuposup.android"
android:versionCode="1"
android:versionName="1.0" >
android:versionCode="2"
android:versionName="1.1" >

<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="7" />
<uses-permission android:name="android.permission.CAMERA"/>

<application
Expand All @@ -16,7 +12,8 @@
android:theme="@style/AppTheme" >
<activity
android:name="com.gmail.mugucupsoup.android.LightMeter.MainActivity"
android:label="@string/app_name" >
android:label="@string/app_name"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,23 @@ Simple reflected light meter
Simple reflected light meter application for android.

https://play.google.com/store/apps/details?id=com.gmail.mugcuposup.android

How to build
------------

1. Clone repository
<pre>
git clone https://github.com/ayampolsky/SimpleReflectedLightMeter.git
cd ./SimpleReflectedLightMeter/
</pre>
2. Create keystore. Fill in correct certificate details.
<pre>
keytool -genkeypair -v -keystore keystore.jks -alias lightmeter -keyalg RSA \
-keysize 2048 -validity 10000 -storepass 123456 -keypass 123456 \
-dname "CN=NAME, O=ORGANIZATIONAL_UNIT, L=LOCATION, C=COUNTRY_CODE"
</pre>
3. Generate APK
<pre>
./gradlew assembleRelease
</pre>
The resulting APK will be `./build/output/apk/release/SimpleLightMeter-1.x.apk`.
62 changes: 62 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
plugins {
id 'com.android.application' version '8.7.3'
}

def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
namespace 'com.gmail.mugcuposup.android'
compileSdk 35

signingConfigs {
release {
storeFile file(keystoreProperties['storeFile'] ?: 'keystore.jks')
storePassword keystoreProperties['storePassword'] ?: ''
keyAlias keystoreProperties['keyAlias'] ?: ''
keyPassword keystoreProperties['keyPassword'] ?: ''
}
}

defaultConfig {
applicationId 'com.gmail.mugcuposup.android'
minSdk 7
targetSdk 35
versionCode 3
versionName '1.2'
}

buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project.txt'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

applicationVariants.configureEach { variant ->
variant.outputs.configureEach {
outputFileName = "${project.property('apk.name')}-${variant.versionName}.apk"
}
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org.gradle.jvmargs=-Xmx1536m
android.useAndroidX=false
android.enableJetifier=false
android.nonFinalResIds=false
apk.name=SimpleLightMeter
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
248 changes: 248 additions & 0 deletions gradlew

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

Loading