This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resolvers += "Gamlor-Repo" at "https://github.com/gamlerhart/gamlor-mvn/raw/master/snapshots" | |
| libraryDependencies += "com.typesafe.akka" % "akka-actor" % "2.0" | |
| libraryDependencies += "info.gamlor.akkaasync" %% "akka-webclient" % "1.0-SNAPSHOT" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case class LineItem(number: Int, content: String) | |
| val parser = for { | |
| numberOfItem <- IO.takeUntil(ByteString(":")) | |
| lineContent <- IO.takeUntil(ByteString("\n")) | |
| } yield LineItem(Integer.parseInt(numberOfItem.utf8String), lineContent.utf8String) | |
| // will close the file when returned future has finished | |
| val onlyCoolLines = FileIO.withFile(Paths.get("aFile.txt")) { | |
| file => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Caused by: com.versant.jpa.enhancer.exceptions.MissingIdException: missing ID annotation or mapping for info.gamlor.vjpa.model.MyStoredData | |
| at com.versant.jpa.enhancer.JpaClassEnhancer.enhance(JpaClassEnhancer.java:123) | |
| at com.versant.jpa.enhancer.JpaClassEnhancer.enhance(JpaClassEnhancer.java:50) | |
| at com.versant.jpa.enhancer.JpaClassTransformer.transform(JpaClassTransformer.java:51) | |
| at sun.instrument.TransformerManager.transform(TransformerManager.java:169) | |
| at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:365) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| database withSession { | |
| ApiKeys.ddl.create | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## No Finate State Machines Support needed | |
| -dontwarn akka.actor.FSM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Example | |
| { | |
| // Stuff like transactions, run in contexts, binding methods etc etc. | |
| public T WithSomeContext<T>(Func<T> runInContext) | |
| { | |
| // do magic and stuff | |
| var result = runInContext(); | |
| // do other stuff | |
| return result; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="info.gamlor.akkamobile" | |
| android:versionCode="1" | |
| android:versionName="1.0" | |
| android:debuggable="true"> | |
| <uses-sdk android:minSdkVersion="10"/> | |
| <permission android:name="info.gamlor.akkamobile.permission.C2D_MESSAGE" android:protectionLevel="signature"/> | |
| <uses-permission android:name="info.gamlor.akkamobile.permission.C2D_MESSAGE"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AkkaDroidActivity extends Activity with ActivityActor { | |
| override def onCreate(savedInstanceState: Bundle) { | |
| super.onCreate(savedInstanceState) | |
| setContentView(R.layout.main) | |
| actorOf[DoSomeWork].start() | |
| } | |
| protected def receive = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scalac.addparams=-deprecation | |
| proguard.dir=./tools/proguard | |
| manifest.package=info.gamlor.akkamobile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <target name="debug-install" depends="debug"> | |
| <copy file="./bin/AkkaDroidApp-debug.apk" | |
| tofile="./out/production/AkkaDroidApp/AkkaDroidApp.apk"/> | |
| </target> |